Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TraceAPI: Remove sync() to improve performance #2377

Merged
merged 1 commit into from
Apr 5, 2024
Merged

Conversation

heifner
Copy link
Member

@heifner heifner commented Apr 4, 2024

It has been reported a few times, for example: EOSIO/eos#10690 that the trace_api_plugin performance suffers greatly from the sync() call in storing to disk. This has recently caused slow down in ci/cd as well causing tests to fail do to taking so long to write to the trace api log.

We do not sync() for the block log or SHiP logs. Seems the trade off of performance for small possibility of corrupted trace api logs is worth it.

Resolves #2331

@heifner heifner requested review from spoonincode and arhag April 4, 2024 14:51
@heifner heifner added the OCI Work exclusive to OCI team label Apr 4, 2024
@heifner heifner linked an issue Apr 4, 2024 that may be closed by this pull request
@heifner heifner merged commit 3dee355 into main Apr 5, 2024
36 checks passed
@heifner heifner deleted the trace-api-no-sync branch April 5, 2024 02:40
@ericpassmore
Copy link
Contributor

Note:start
group: STABILITY
category: PERFORMACE
summary: TraceAPI: Remove sync() to improve performance
Note:end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCI Work exclusive to OCI team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test: nodeos_forked_chain_lr_test failure
4 participants