config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxCellsPerChunk   = 4
	BytesPerChunk      = uint64(8192)
	MaxBytesPerCell    = BytesPerChunk / MaxCellsPerChunk
	DBName             = "master.db"
	SheetMetaCellRow   = uint32(math.MaxUint32)
	SheetMetaCellCol   = uint32(math.MaxUint32)
	ElectionZnode      = "/master_election"
	ElectionAck        = "/master_election_ack"
	ElectionPrefix     = "a20ffeb5-319a-4e0b-b54d-646fb93d3158-n_"
	ElectionTimeout    = 1 * time.Second
	CheckpointInterval = 1 * time.Minute
)

Variables

View Source
var ElectionServers = []string{
	"127.0.0.1:2181",
	"127.0.0.1:2182",
	"127.0.0.1:2183",
}
View Source
var KafkaServer = "127.0.0.1:9093"
View Source
var KafkaTopic = "master_journal"
View Source
var SheetMetaCellID = int64(0)

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