Documentation ¶
Overview ¶
Package settings is used for managing internal parameters that can be set at compile time by expert level users.
Index ¶
Constants ¶
View Source
const ( // SnapshotHeaderSize defines the snapshot header size in number of bytes. SnapshotHeaderSize uint64 = 1024 // MaxProposalPayloadSize is the max size allowed for a proposal payload. MaxProposalPayloadSize uint64 = 32 * 1024 * 1024 // MaxMessageSize is the max size for a single gRPC message sent between // raft nodes. It must be greater than MaxProposalPayloadSize and smaller // than the current default of max gRPC send/receive size (4MBytes). MaxMessageSize uint64 = 2*MaxProposalPayloadSize + 2*1024*1024 // SnapshotChunkSize is the snapshot chunk size sent by the gRPC transport // module. SnapshotChunkSize uint64 = 2 * 1024 * 1024 // LaunchDeadlineTick defines the number of ticks allowed for the bootstrap // process to complete. LaunchDeadlineTick uint64 = 24 )
Variables ¶
View Source
var Hard = getHardSettings()
Hard is the hard settings that can not be changed after the system has been deployed.
View Source
var Soft = getSoftSettings()
Soft is the soft settings that can be changed after the deployment of a system.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.