package
2.2.0-alpha.20190114+incompatible
Repository: https://github.com/ortery/cockroach.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
Package serverpb is a reverse proxy.
No description provided by the author
Package telemetry contains helpers for capturing diagnostics information.
# Functions
EncodeSessionCookie encodes a SessionCookie proto into an http.Cookie.
ExpectedInitialRangeCount returns the expected number of ranges that should be on the server after bootstrap.
ExpectedInitialUserRangeCount returns the expected number of user ranges that should be on the server after initial (asynchronous) splits have been completed, assuming no additional information is added outside of the normal bootstrap process.
GetBootstrapSchema returns the schema which will be used to bootstrap a new server.
IsWaitingForInit checks whether the provided error is because the node is still waiting for initialization.
MakeConfig returns a Context with default values.
NewNode returns a new instance of Node.
NewServer creates a Server from a server.Config.
SetOpenFileLimitForOneStore sets the soft limit for open file descriptors when there is only one store.
WaitingForInitError indicates that the server cannot run the specified method until the node has been initialized.
# Constants
128 MB.
Context defaults.
NB: this can't easily become a variable as the UI hard-codes it to 10s.
FirstNodeID is the node ID of the first node in a new cluster.
TempDirPrefix is the filename prefix of any temporary subdirectory created.
TempDirsRecordFilename is the filename for the record file that keeps track of the paths of the temporary directories created.
TestUser is a fixed user used in unittests.
# Variables
GracefulDrainModes is the standard succession of drain modes entered for a graceful shutdown.
TestServerFactory can be passed to serverutils.InitTestServerFactory.
# Structs
Config holds parameters needed to setup a server.
ListenError is returned from Start when we fail to start listening on either the main Cockroach port or the HTTP port, so that the CLI can instruct the user on what might have gone wrong.
A Node manages a map of stores (by store ID) for which it serves traffic.
NodeStatusWithLiveness combines a NodeStatus with a NodeLivenessStatus.
Server is the cockroach server node.
A TestServer encapsulates an in-memory instantiation of a cockroach node with a single store.
UpgradeTestingKnobs is a part of the context used to control whether cluster version upgrade should happen automatically or not.
# Type aliases
Engines is a container of engines, allowing convenient closing.
MaxOffsetType stores the configured MaxOffset.