steemit / steem

The blockchain for Smart Media Tokens (SMTs) and decentralized applications.
https://steem.com
Other
1.95k stars 793 forks source link

DP: Answer the question: When enabling which SteemD plugins require a chain replay #2909

Open relativityboy opened 6 years ago

relativityboy commented 6 years ago

As a developer I want to know which combinations of SteemD plugins are inter-compatible in-terms of their shared memory files.

examples:

  1. Plugins a & b are run from when the node was first created. The node is stopped, and plugin c is enabled on restart. No problems. The node is stopped and plugin d is enabled. Problems.
  2. Plugin d is run from when the node was first created. The node is stopped, and plugin a is enabled on restart. Problems.
  3. Plugin c is run from when the node was first created. The node is stopped, and any of plugins a, b, or are enabled on restart. Problems.
  4. Plugins a & d are run from when the node was first created. The node is stopped, and plugins c & b are enabled on restart. No Problems.

Supporting Definitions (names can be changed)

AC

inertia186 commented 6 years ago

For example, I have an intel skull canyon nuc with 32 GB RAM, ubuntu 16.04. Doing a replay with the following plugins is super slow (greater than 24 hours on --replay-blockchain):

plugin = chain p2p webserver block_api database_api network_broadcast_api condenser_api market_history_api tags_api follow_api

However, if I drop the last three plugins, the reply is less than 8 hours:

plugin = chain p2p webserver block_api database_api network_broadcast_api condenser_api

Once the replay is complete, if I add market_history_api tags_api follow_api, startup slows down a little, but it doesn't require a replay.