daemonenv

package
v3.0.0-rc39 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ListenerNameUX is the listener serving the unix socket.
	ListenerNameUX = "api.ux"

	// ListenerNameInet is the listener serving the tcp port.
	ListenerNameInet = "api.inet"

	// ListenerNameFamily is the parent of both, for a client selecting
	// the whole api rather than one of its listeners.
	ListenerNameFamily = "api"
)

The listeners are named the same wherever they are named: the audit subsystem a client selects with "om daemon audit --sub", the label the listener subscribes to daemon control messages with, and the name the api takes in the path of the listener actions. They used to differ, so an action addressed to the name the audit taxonomy uses was accepted, queued, and matched by no subscriber.

Variables

View Source
var (
	HTTPPort = 1215

	DrainChanDuration = 40 * time.Millisecond

	// ImonDelayDuration is the minimum for new imon publication
	ImonDelayDuration = 250 * time.Millisecond

	// ReadyDuration define the minimum time to wait during the startup of an instance object by imon
	// The ready duration impacts the durations involved during daemon cluster split analyse (see nmon spit
	// detection details).
	ReadyDuration = 5 * time.Second

	// Username is the current username, or "root" if user.Current has error
	Username string

	// Groupname is the current group name from user.Current, or "root" if user.LookupGroupId has error
	Groupname string

	// HTTPUnixFileBasename is the basename of http listener unix socket
	HTTPUnixFileBasename = "http.sock"

	// HeartbeatStatusRefreshMaximumInterval is the maximum interval for refreshing daemon heartbeat statistics
	HeartbeatStatusRefreshMaximumInterval = 60 * time.Second
)
View Source
var (
	// SubQSSmall is the daemon subscription small queue size
	SubQSSmall uint64 = 200
	// SubQSSmall is the daemon subscription medium queue size
	SubQSMedium uint64 = 1000
	// SubQSSmall is the daemon subscription large queue size
	SubQSLarge uint64 = 20000
	// SubQSHuge is the daemon subscription huge queue size
	SubQSHuge uint64 = 40000
)
View Source
var LifecycleListenerNames = []string{ListenerNameInet}

LifecycleListenerNames are the listeners a start, stop or restart may be addressed to.

The unix socket listener is not one of them: it lives as long as the daemon does, and the request asking for its restart travels through it. It used to accept the three actions, log that it ignored them, and answer the caller that they were queued.

ListenerNames are the listeners an api action may be addressed to.

Functions

func CACertChainFile

func CACertChainFile() string

func CAKeyFile

func CAKeyFile() string

func CAsCertFile

func CAsCertFile() string

func CertChainFile

func CertChainFile() string

func CertFile

func CertFile() string

func HTTPLocalURL

func HTTPLocalURL() string

func HTTPNodeAndPortURL

func HTTPNodeAndPortURL(node, port string) string

func HTTPNodeURL

func HTTPNodeURL(node string) string

func HTTPUnixFile

func HTTPUnixFile() string

func HTTPUnixURL

func HTTPUnixURL() string

func KeyFile

func KeyFile() string

func ProfileUnixFile

func ProfileUnixFile() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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