Magickbase / ckb-explorer-public-issues

CKB Explorer Issues
https://explorer.nervos.org/
3 stars 2 forks source link

The pending transaction's rate limit of CKB node websocket push from pool #704

Open zmcNotafraid opened 1 month ago

zmcNotafraid commented 1 month ago

In explorer infra, we have a websocket process to subscribe pending tx from ckb node. And another process to sync latest block. In our latest test we push about 10k transaction to the pending tx pool, but from explorer's websocket process, we only receive about 3k transaction and save them to our database. Others were direct synced with latest block. So does websocket can push all pending transactions in realtime and before these transaction merge into committed tx?

Keith-CY commented 1 month ago

Issue opened at https://talk.nervos.org/t/performance-issue-about-websocket-of-ckb-node/8248

zmcNotafraid commented 3 weeks ago

use https://github.com/faye/faye-websocket-ruby replace current websocket client

zmcNotafraid commented 3 weeks ago

After test, the ckb node cpu has recached limit.So the pool syner only receiver 20k+ transactions then hang out.It is no relation with websocket gem.