Server State

admin.v2alpha.ServerInfo

[admin.v2alpha.ServerInfo proto]

Proto representation of the value returned by /server_info, containing server version/server status information.

  1. {
  2. "version": "...",
  3. "state": "...",
  4. "uptime_current_epoch": "{...}",
  5. "uptime_all_epochs": "{...}",
  6. "command_line_options": "{...}"
  7. }

version

(string) Server version.

state

(admin.v2alpha.ServerInfo.State) State of the server.

uptime_current_epoch

(Duration) Uptime since current epoch was started.

uptime_all_epochs

(Duration) Uptime since the start of the first epoch.

command_line_options

(admin.v2alpha.CommandLineOptions) Command line options the server is currently running with.

Enum admin.v2alpha.ServerInfo.State

[admin.v2alpha.ServerInfo.State proto]

LIVE

(DEFAULT) ⁣Server is live and serving traffic.

DRAINING

⁣Server is draining listeners in response to external health checks failing.

PRE_INITIALIZING

⁣Server has not yet completed cluster manager initialization.

INITIALIZING

⁣Server is running the cluster manager initialization callbacks (e.g., RDS).

admin.v2alpha.CommandLineOptions

[admin.v2alpha.CommandLineOptions proto]

  1. {
  2. "base_id": "...",
  3. "concurrency": "...",
  4. "config_path": "...",
  5. "config_yaml": "...",
  6. "allow_unknown_fields": "...",
  7. "admin_address_path": "...",
  8. "local_address_ip_version": "...",
  9. "log_level": "...",
  10. "component_log_level": "...",
  11. "log_format": "...",
  12. "log_path": "...",
  13. "hot_restart_version": "...",
  14. "service_cluster": "...",
  15. "service_node": "...",
  16. "service_zone": "...",
  17. "file_flush_interval": "{...}",
  18. "drain_time": "{...}",
  19. "parent_shutdown_time": "{...}",
  20. "mode": "...",
  21. "max_stats": "...",
  22. "max_obj_name_len": "...",
  23. "disable_hot_restart": "...",
  24. "enable_mutex_tracing": "...",
  25. "restart_epoch": "...",
  26. "cpuset_threads": "..."
  27. }

base_id

(uint64) See --base-id for details.

concurrency

(uint32) See --concurrency for details.

config_path

(string) See --config-path for details.

config_yaml

(string) See --config-yaml for details.

allow_unknown_fields

(bool) See --allow-unknown-fields for details.

admin_address_path

(string) See --admin-address-path for details.

local_address_ip_version

(admin.v2alpha.CommandLineOptions.IpVersion) See --local-address-ip-version for details.

log_level

(string) See --log-level for details.

component_log_level

(string) See --component-log-level for details.

log_format

(string) See --log-format for details.

log_path

(string) See --log-path for details.

hot_restart_version

(bool) See --hot-restart-version for details.

service_cluster

(string) See --service-cluster for details.

service_node

(string) See --service-node for details.

service_zone

(string) See --service-zone for details.

file_flush_interval

(Duration) See --file-flush-interval-msec for details.

drain_time

(Duration) See --drain-time-s for details.

parent_shutdown_time

(Duration) See --parent-shutdown-time-s for details.

mode

(admin.v2alpha.CommandLineOptions.Mode) See --mode for details.

max_stats

(uint64) See --max-stats for details.

max_obj_name_len

(uint64) See --max-obj-name-len for details.

disable_hot_restart

(bool) See --disable-hot-restart for details.

enable_mutex_tracing

(bool) See --enable-mutex-tracing for details.

restart_epoch

(uint32) See --restart-epoch for details.

cpuset_threads

(bool) See --cpuset-threads for details.

Enum admin.v2alpha.CommandLineOptions.IpVersion

[admin.v2alpha.CommandLineOptions.IpVersion proto]

v4

(DEFAULT)

v6

Enum admin.v2alpha.CommandLineOptions.Mode

[admin.v2alpha.CommandLineOptions.Mode proto]

Serve

(DEFAULT) ⁣Validate configs and then serve traffic normally.

Validate

⁣Validate configs and exit.

InitOnly

⁣Completely load and initialize the config, and then exit without running the listener loop.