Documentation ¶
Overview ¶
Package settings is used for managing internal parameters that can be set at compile time by expert level users. Most of those parameters can also be overwritten by using the json mechanism described below.
Index ¶
Constants ¶
View Source
const ( // SnapshotHeaderSize defines the snapshot header size in number of bytes. SnapshotHeaderSize uint64 = 1024 // UnmanagedDeploymentID is the special deployment ID value used when no user // deployment ID is specified. UnmanagedDeploymentID uint64 = 1 // MaxMessageBatchSize is the max size for a single message batch sent between // nodehosts. MaxMessageBatchSize uint64 = LargeEntitySize // SnapshotChunkSize is the snapshot chunk size. SnapshotChunkSize uint64 = 2 * 1024 * 1024 )
View Source
const ( // EntryNonCmdFieldsSize defines the upper limit of the non-cmd field // length in pb.Entry. EntryNonCmdFieldsSize = 16 * 8 // LargeEntitySize defines what is considered as a large entity for per node // entities. LargeEntitySize uint64 = 64 * 1024 * 1024 )
Variables ¶
View Source
var BlockFileMagicNumber = []byte{0x3F, 0x5B, 0xCB, 0xF1, 0xFA, 0xBA, 0x81, 0x9F}
BlockFileMagicNumber is the magic number used in block based snapshot files.
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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.