Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Envoy container health check for Envoy v1.9 #115

Merged
merged 1 commit into from
Apr 2, 2019
Merged

Update Envoy container health check for Envoy v1.9 #115

merged 1 commit into from
Apr 2, 2019

Conversation

bcelenza
Copy link
Contributor

@bcelenza bcelenza commented Apr 2, 2019

Issue #, if available: N/A

Description of changes:

Update health check for Envoy v1.9

In Envoy 1.8.0.2, the output of :9901/server_info was:

envoy c74766d7261bd56f8ffa1a06ebb9325f66fe6263/1.8.0/Clean/DEBUG live 12 12 0

However, in Envoy 1.9, the output was changed to JSON:

{
 "version": "ae8c8aa036e58e39b3d2fba81f5bdc4683a30682/1.9.0/Clean/DEBUG/BoringSSL",
 "state": "LIVE",
 "command_line_options": {
  "base_id": "0",
  "concurrency": 16,
  "config_path": "/envoys/egress-all.yaml",
  "config_yaml": "",
  "allow_unknown_fields": false,
  "admin_address_path": "",
  "local_address_ip_version": "v4",
  "log_level": "debug",
  "component_log_level": "",
  "log_format": "[%Y-%m-%d %T.%e][%t][%l][%n] %v",
  "log_path": "",
  "hot_restart_version": false,
  "service_cluster": "",
  "service_node": "",
  "service_zone": "",
  "mode": "Serve",
  "max_stats": "16384",
  "max_obj_name_len": "60",
  "disable_hot_restart": false,
  "enable_mutex_tracing": false,
  "restart_epoch": 0,
  "file_flush_interval": "10s",
  "drain_time": "600s",
  "parent_shutdown_time": "900s"
 },
 "uptime_current_epoch": "3s",
 "uptime_all_epochs": "3s"
}

The published Envoy container does not currently have jq installed, so this check will first search for the state line, followed by the LIVE value within that line.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants