Server State

admin.v3.ServerInfo

[admin.v3.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. "hot_restart_version": "...",
  7. "command_line_options": "{...}"
  8. }

version

(string) Server version.

state

(admin.v3.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.

hot_restart_version

(string) Hot restart version.

command_line_options

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

Enum admin.v3.ServerInfo.State

[admin.v3.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.v3.CommandLineOptions

[admin.v3.CommandLineOptions proto]

  1. {
  2. "base_id": "...",
  3. "use_dynamic_base_id": "...",
  4. "base_id_path": "...",
  5. "concurrency": "...",
  6. "config_path": "...",
  7. "config_yaml": "...",
  8. "allow_unknown_static_fields": "...",
  9. "reject_unknown_dynamic_fields": "...",
  10. "ignore_unknown_dynamic_fields": "...",
  11. "admin_address_path": "...",
  12. "local_address_ip_version": "...",
  13. "log_level": "...",
  14. "component_log_level": "...",
  15. "log_format": "...",
  16. "log_format_escaped": "...",
  17. "log_path": "...",
  18. "service_cluster": "...",
  19. "service_node": "...",
  20. "service_zone": "...",
  21. "file_flush_interval": "{...}",
  22. "drain_time": "{...}",
  23. "drain_strategy": "...",
  24. "parent_shutdown_time": "{...}",
  25. "mode": "...",
  26. "disable_hot_restart": "...",
  27. "enable_mutex_tracing": "...",
  28. "restart_epoch": "...",
  29. "cpuset_threads": "...",
  30. "disabled_extensions": [],
  31. "bootstrap_version": "..."
  32. }

base_id

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

use_dynamic_base_id

(bool) See --use-dynamic-base-id for details.

base_id_path

(string) See --base-id-path 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_static_fields

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

reject_unknown_dynamic_fields

(bool) See --reject-unknown-dynamic-fields for details.

ignore_unknown_dynamic_fields

(bool) See --ignore-unknown-dynamic-fields for details.

admin_address_path

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

local_address_ip_version

(admin.v3.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_format_escaped

(bool) See --log-format-escaped for details.

log_path

(string) See --log-path 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.

drain_strategy

(admin.v3.CommandLineOptions.DrainStrategy) See --drain-strategy for details.

parent_shutdown_time

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

mode

(admin.v3.CommandLineOptions.Mode) See --mode 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.

disabled_extensions

(string) See --disable-extensions for details.

bootstrap_version

(uint32) See --bootstrap-version for details.

Enum admin.v3.CommandLineOptions.IpVersion

[admin.v3.CommandLineOptions.IpVersion proto]

v4

(DEFAULT)

v6

Enum admin.v3.CommandLineOptions.Mode

[admin.v3.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.

Enum admin.v3.CommandLineOptions.DrainStrategy

[admin.v3.CommandLineOptions.DrainStrategy proto]

Gradual

(DEFAULT) ⁣Gradually discourage connections over the course of the drain period.

Immediate

⁣Discourage all connections for the duration of the drain sequence.