Module distributed_time_constants

Module distributed_time_constants 

Source

Structs§

DistributedTimeConstants
The distributed time constants.

Constants§

BASE_HEARTBEAT_INTERVAL
HEARTBEAT_CHANNEL_KEEP_ALIVE_INTERVAL_SECS
The keep-alive interval of the heartbeat channel.
HEARTBEAT_CHANNEL_KEEP_ALIVE_TIMEOUT_SECS
The keep-alive timeout of the heartbeat channel.
HEARTBEAT_TIMEOUT
The timeout of the heartbeat request.
MAILBOX_RTT_SECS
The default mailbox round-trip timeout.
META_KEEP_ALIVE_INTERVAL_SECS
In a lease, there are two opportunities for renewal.
META_LEASE_SECS
The lease seconds of metasrv leader.
POSTGRES_KEEP_ALIVE_SECS
The keep-alive interval of the Postgres connection.
TOPIC_STATS_REPORT_INTERVAL_SECS
The interval of reporting topic stats.
TOPIC_STATS_RETENTION_SECS
The retention seconds of topic stats.

Statics§

DEFAULT_DISTRIBUTED_TIME_CONSTANTS 🔒

Functions§

default_distributed_time_constants
Get the default distributed time constants.
frontend_heartbeat_interval
The frontend heartbeat interval is 6 times of the base heartbeat interval.
init_distributed_time_constants
Initialize the default distributed time constants.