server_info.proto 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. syntax = "proto3";
  2. package envoy.admin.v3;
  3. import "envoy/config/core/v3/base.proto";
  4. import "google/protobuf/duration.proto";
  5. import "udpa/annotations/status.proto";
  6. import "udpa/annotations/versioning.proto";
  7. option java_package = "io.envoyproxy.envoy.admin.v3";
  8. option java_outer_classname = "ServerInfoProto";
  9. option java_multiple_files = true;
  10. option go_package = "github.com/envoyproxy/go-control-plane/envoy/admin/v3;adminv3";
  11. option (udpa.annotations.file_status).package_version_status = ACTIVE;
  12. // [#protodoc-title: Server State]
  13. // Proto representation of the value returned by /server_info, containing
  14. // server version/server status information.
  15. // [#next-free-field: 8]
  16. message ServerInfo {
  17. option (udpa.annotations.versioning).previous_message_type = "envoy.admin.v2alpha.ServerInfo";
  18. enum State {
  19. // Server is live and serving traffic.
  20. LIVE = 0;
  21. // Server is draining listeners in response to external health checks failing.
  22. DRAINING = 1;
  23. // Server has not yet completed cluster manager initialization.
  24. PRE_INITIALIZING = 2;
  25. // Server is running the cluster manager initialization callbacks (e.g., RDS).
  26. INITIALIZING = 3;
  27. }
  28. // Server version.
  29. string version = 1;
  30. // State of the server.
  31. State state = 2;
  32. // Uptime since current epoch was started.
  33. google.protobuf.Duration uptime_current_epoch = 3;
  34. // Uptime since the start of the first epoch.
  35. google.protobuf.Duration uptime_all_epochs = 4;
  36. // Hot restart version.
  37. string hot_restart_version = 5;
  38. // Command line options the server is currently running with.
  39. CommandLineOptions command_line_options = 6;
  40. // Populated node identity of this server.
  41. config.core.v3.Node node = 7;
  42. }
  43. // [#next-free-field: 39]
  44. message CommandLineOptions {
  45. option (udpa.annotations.versioning).previous_message_type =
  46. "envoy.admin.v2alpha.CommandLineOptions";
  47. enum IpVersion {
  48. v4 = 0;
  49. v6 = 1;
  50. }
  51. enum Mode {
  52. // Validate configs and then serve traffic normally.
  53. Serve = 0;
  54. // Validate configs and exit.
  55. Validate = 1;
  56. // Completely load and initialize the config, and then exit without running the listener loop.
  57. InitOnly = 2;
  58. }
  59. enum DrainStrategy {
  60. // Gradually discourage connections over the course of the drain period.
  61. Gradual = 0;
  62. // Discourage all connections for the duration of the drain sequence.
  63. Immediate = 1;
  64. }
  65. reserved 12, 20, 21, 29;
  66. reserved "max_stats", "max_obj_name_len", "bootstrap_version";
  67. // See :option:`--base-id` for details.
  68. uint64 base_id = 1;
  69. // See :option:`--use-dynamic-base-id` for details.
  70. bool use_dynamic_base_id = 31;
  71. // See :option:`--base-id-path` for details.
  72. string base_id_path = 32;
  73. // See :option:`--concurrency` for details.
  74. uint32 concurrency = 2;
  75. // See :option:`--config-path` for details.
  76. string config_path = 3;
  77. // See :option:`--config-yaml` for details.
  78. string config_yaml = 4;
  79. // See :option:`--allow-unknown-static-fields` for details.
  80. bool allow_unknown_static_fields = 5;
  81. // See :option:`--reject-unknown-dynamic-fields` for details.
  82. bool reject_unknown_dynamic_fields = 26;
  83. // See :option:`--ignore-unknown-dynamic-fields` for details.
  84. bool ignore_unknown_dynamic_fields = 30;
  85. // See :option:`--admin-address-path` for details.
  86. string admin_address_path = 6;
  87. // See :option:`--local-address-ip-version` for details.
  88. IpVersion local_address_ip_version = 7;
  89. // See :option:`--log-level` for details.
  90. string log_level = 8;
  91. // See :option:`--component-log-level` for details.
  92. string component_log_level = 9;
  93. // See :option:`--log-format` for details.
  94. string log_format = 10;
  95. // See :option:`--log-format-escaped` for details.
  96. bool log_format_escaped = 27;
  97. // See :option:`--log-path` for details.
  98. string log_path = 11;
  99. // See :option:`--service-cluster` for details.
  100. string service_cluster = 13;
  101. // See :option:`--service-node` for details.
  102. string service_node = 14;
  103. // See :option:`--service-zone` for details.
  104. string service_zone = 15;
  105. // See :option:`--file-flush-interval-msec` for details.
  106. google.protobuf.Duration file_flush_interval = 16;
  107. // See :option:`--drain-time-s` for details.
  108. google.protobuf.Duration drain_time = 17;
  109. // See :option:`--drain-strategy` for details.
  110. DrainStrategy drain_strategy = 33;
  111. // See :option:`--parent-shutdown-time-s` for details.
  112. google.protobuf.Duration parent_shutdown_time = 18;
  113. // See :option:`--mode` for details.
  114. Mode mode = 19;
  115. // See :option:`--disable-hot-restart` for details.
  116. bool disable_hot_restart = 22;
  117. // See :option:`--enable-mutex-tracing` for details.
  118. bool enable_mutex_tracing = 23;
  119. // See :option:`--restart-epoch` for details.
  120. uint32 restart_epoch = 24;
  121. // See :option:`--cpuset-threads` for details.
  122. bool cpuset_threads = 25;
  123. // See :option:`--disable-extensions` for details.
  124. repeated string disabled_extensions = 28;
  125. // See :option:`--enable-fine-grain-logging` for details.
  126. bool enable_fine_grain_logging = 34;
  127. // See :option:`--socket-path` for details.
  128. string socket_path = 35;
  129. // See :option:`--socket-mode` for details.
  130. uint32 socket_mode = 36;
  131. // See :option:`--enable-core-dump` for details.
  132. bool enable_core_dump = 37;
  133. // See :option:`--stats-tag` for details.
  134. repeated string stats_tag = 38;
  135. }