Skip to content

feat: support to disable txindexer;#3141

Merged
zzzckck merged 2 commits intobnb-chain:developfrom
galaio:opt-txindexer
Jun 3, 2025
Merged

feat: support to disable txindexer;#3141
zzzckck merged 2 commits intobnb-chain:developfrom
galaio:opt-txindexer

Conversation

@galaio
Copy link
Contributor

@galaio galaio commented Jun 3, 2025

Description

In BSC, txindexer consumes considerable CPU and io resources in the background, and txindex data is mainly used for API to query transactions or receipt services based on txhash. Currently, it is of little use to roles such as validators, and an optional configuration can be provided to disable it.

After disabling txindexer, performance has improved to a certain extent.

Note that it is currently only recommended for validators to use this function. When txindexer is disabled and then re-enabled, a large number of missing txindexes will be built in the background, which will have a very large impact on performance.

image

Example

image

In a 5-day observation of mainnet traffic, when txindexer is disabled, the insert time is reduced by ~7%.

Node1, 10.213.32.90:
--cache 18000
Use disable txindexer version

Node1, 10.213.32.78:
--cache18000
v1.5.12

Changes

Notable changes:

  • feat: support to disable txindexer;
  • ...

@galaio galaio requested review from buddh0 and zzzckck June 3, 2025 07:55
zzzckck
zzzckck previously approved these changes Jun 3, 2025
buddh0
buddh0 previously approved these changes Jun 3, 2025
@zzzckck zzzckck changed the base branch from master to develop June 3, 2025 08:51
@zzzckck zzzckck dismissed stale reviews from buddh0 and themself June 3, 2025 08:51

The base branch was changed.

@zzzckck zzzckck merged commit 4f4d688 into bnb-chain:develop Jun 3, 2025
7 checks passed
sysvm pushed a commit to sysvm/bsc that referenced this pull request Jun 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants