58 lines
4.2 KiB
TOML
58 lines
4.2 KiB
TOML
[raft]
|
|
batch_timeout = "0.3s" # Block packaging time period.
|
|
check_interval = "3m" # Node check interval to check if there exist txs to be rebroadcast
|
|
tick_timeout = "0.1s" # TickTimeout is the internal logical clock for the Node by a single tick, Election timeouts and heartbeat timeouts are in units of ticks.
|
|
election_tick = 10 # ElectionTick is the number of Node.Tick invocations that must pass between elections.
|
|
heartbeat_tick = 1 # HeartbeatTick is the number of Node.Tick invocations that must pass between heartbeats.
|
|
max_size_per_msg = 1048576 # 1024*1024, MaxSizePerMsg limits the max size of each append message.
|
|
max_inflight_msgs = 500 # MaxInflightMsgs limits the max number of in-flight append messages during optimistic replication phase.
|
|
check_quorum = true # Leader steps down when quorum is not active for an electionTimeout.
|
|
pre_vote = true # PreVote prevents reconnected node from disturbing network.
|
|
disable_proposal_forwarding = true # This prevents blocks from being accidentally proposed by followers.
|
|
|
|
[raft.mempool]
|
|
batch_size = 200 # How many transactions should the primary pack.
|
|
pool_size = 50000 # How many transactions could the txPool stores in total.
|
|
tx_slice_size = 10 # How many transactions should the node broadcast at once
|
|
tx_slice_timeout = "0.1s" # Node broadcasts transactions if there are cached transactions, although set_size isn't reached yet
|
|
|
|
[raft.syncer]
|
|
sync_blocks = 1 # How many blocks should the behind node fetch at once
|
|
snapshot_count = 1000 # How many apply index(blocks) should the node trigger at once
|
|
|
|
[rbft] #RBFT configurations
|
|
set_size = 25 # How many transactions should the node broadcast at once
|
|
batch_size = 500 # How many transactions should the primary pack before sending pre-prepare
|
|
pool_size = 50000 # How many transactions could the txPool stores in total
|
|
vc_period = 0 # After how many checkpoint periods( Blocks = 10 * vcperiod ) the primary gets cycled automatically. ( Set 0 to disable )
|
|
check_interval = "3m" # interval of the check loop
|
|
tolerance_time = "5m" # The max tolerance time duration (in seconds) of out-of-date
|
|
batch_mem_limit = false # Indicates whether limit batch mem size or not
|
|
batch_max_mem = 10000 # The max memory size of one batch
|
|
|
|
[rbft.timeout]
|
|
sync_state = "3s" # How long to wait quorum sync state response
|
|
sync_interval = "1m" # How long to restart sync state process
|
|
recovery = "15s" # How long to wait before recovery finished(This is for release1.2)
|
|
first_request = "30s" # How long to wait before first request should come
|
|
batch = "0.5s"# Primary send a pre-prepare if there are pending requests, although batchsize isn't reached yet,
|
|
request = "6s" # How long may a request(transaction batch) take between reception and execution, must be greater than the batch timeout
|
|
null_request = "9s" # Primary send it to inform aliveness, must be greater than request timeout
|
|
viewchange = "8s" # How long may a view change take
|
|
resend_viewchange = "10s" # How long to wait for a view change quorum before resending (the same) view change
|
|
clean_viewchange = "60s" # How long to clean out-of-data view change message
|
|
update = "4s" # How long may a update-n take
|
|
set = "0.1s" # Node broadcasts transactions if there are cached transactions, although set_size isn't reached yet
|
|
|
|
[rbft.syncer]
|
|
sync_blocks = 1 # How many blocks should the behind node fetch at once
|
|
|
|
[solo]
|
|
batch_timeout = "0.3s" # Block packaging time period.
|
|
|
|
[solo.mempool]
|
|
batch_size = 200 # How many transactions should the primary pack.
|
|
pool_size = 50000 # How many transactions could the txPool stores in total.
|
|
tx_slice_size = 10 # How many transactions should the node broadcast at once
|
|
tx_slice_timeout = "0.1s" # Node broadcasts transactions if there are cached transactions, although set_size isn't reached yet
|