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

Split ship log #599

Closed

Conversation

huangminghuang
Copy link
Contributor

This PR backports EOSIO/eos#9277 and EOSIO/eos#9821 to support supports the trace and chain state log spliting in state history plugin.

Some new options for state history plugin are added:

  • state-history-stride: split the state history log files when the block number is the multiple of the stride. When the stride is reached, the current history log and index will be renamed '*-history--.log/index' and a new current history log and index will be created with the most recent blocks. All files following this format will be used to construct an extended history log.
  • max-retained-history-files: the maximum number of state history log file groups to retain so that the blocks in those files can be queried. When the number is reached, the oldest log files would be moved to archive dir or deleted if the archive dir is empty. The retained log files should not be manipulated by users.
  • state-history-retained-dir: the location of the state history retained directory (absolute path or relative to state-history dir).
  • state-history-archive-dir: the location of the state history archive directory (absolute path or relative to state-history dir). If the value is empty string, log files beyond the retained limit will be deleted. All files in the archive directory are completely under user's control, i.e. they won't be accessed by nodeos anymore.

# Conflicts:
#	libraries/state_history/include/eosio/state_history/log.hpp
#	plugins/state_history_plugin/include/eosio/state_history_plugin/session.hpp
#	plugins/state_history_plugin/tests/session_test.cpp
@huangminghuang huangminghuang marked this pull request as ready for review December 26, 2022 19:57
@heifner heifner added the OCI Work exclusive to OCI team label Dec 28, 2022
@huangminghuang huangminghuang force-pushed the huangminghuang/split-ship-log branch from c589b90 to a9cea07 Compare December 29, 2022 22:24
cmadh pushed a commit to cmadh/leap that referenced this pull request Jan 2, 2023
cmadh pushed a commit to cmadh/leap that referenced this pull request Jan 2, 2023
cmadh pushed a commit to cmadh/leap that referenced this pull request Jan 2, 2023
cmadh pushed a commit to cmadh/leap that referenced this pull request Jan 2, 2023
cmadh pushed a commit to cmadh/leap that referenced this pull request Jan 2, 2023
cmadh pushed a commit to cmadh/leap that referenced this pull request Jan 2, 2023
cmadh pushed a commit to cmadh/leap that referenced this pull request Jan 2, 2023
@heifner
Copy link
Member

heifner commented Jan 20, 2023

Conflicts resolved in #628 which is probably the best place to start/continue review of these changes.

@huangminghuang
Copy link
Contributor Author

Superseded by PR #628

@huangminghuang huangminghuang deleted the huangminghuang/split-ship-log branch March 9, 2023 17:40
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.

2 participants