settings

package
v3.3.8 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 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

	// 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

func HardHash added in v3.3.0

func HardHash(execShards uint64,
	logDBShards uint64, sessionCount uint64, batchSize uint64) uint64

HardHash returns the hash value of the Hard setting.

Types

This section is empty.

Jump to

Keyboard shortcuts

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