settings

package
v3.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

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

	// MaxMessageBatchSize is the max size for a single message batch sent between
	// nodehosts.
	MaxMessageBatchSize uint64 = LargeEntitySize
	// 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
)
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

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL