Unverified Commit d5800311 authored by Tzu-Ling Kan's avatar Tzu-Ling Kan Committed by GitHub
Browse files

feat: Turn on canary health check by default (#4368)


Signed-off-by: default avatartzulingk@nvidia.com <tzulingk@nvidia.com>
parent 37d0fc88
...@@ -162,7 +162,7 @@ pub struct RuntimeConfig { ...@@ -162,7 +162,7 @@ pub struct RuntimeConfig {
/// Enable active health checking with payloads /// Enable active health checking with payloads
/// Set this at runtime with environment variable DYN_HEALTH_CHECK_ENABLED /// Set this at runtime with environment variable DYN_HEALTH_CHECK_ENABLED
#[builder(default = "false")] #[builder(default = "true")]
#[builder_field_attr(serde(skip_serializing_if = "Option::is_none"))] #[builder_field_attr(serde(skip_serializing_if = "Option::is_none"))]
pub health_check_enabled: bool, pub health_check_enabled: bool,
...@@ -358,7 +358,7 @@ impl RuntimeConfig { ...@@ -358,7 +358,7 @@ impl RuntimeConfig {
compute_threads: Some(1), compute_threads: Some(1),
compute_stack_size: Some(2 * 1024 * 1024), compute_stack_size: Some(2 * 1024 * 1024),
compute_thread_prefix: "compute".to_string(), compute_thread_prefix: "compute".to_string(),
health_check_enabled: false, health_check_enabled: true,
canary_wait_time_secs: DEFAULT_CANARY_WAIT_TIME_SECS, canary_wait_time_secs: DEFAULT_CANARY_WAIT_TIME_SECS,
health_check_request_timeout_secs: DEFAULT_HEALTH_CHECK_REQUEST_TIMEOUT_SECS, health_check_request_timeout_secs: DEFAULT_HEALTH_CHECK_REQUEST_TIMEOUT_SECS,
} }
...@@ -394,7 +394,7 @@ impl Default for RuntimeConfig { ...@@ -394,7 +394,7 @@ impl Default for RuntimeConfig {
compute_threads: None, compute_threads: None,
compute_stack_size: Some(2 * 1024 * 1024), compute_stack_size: Some(2 * 1024 * 1024),
compute_thread_prefix: "compute".to_string(), compute_thread_prefix: "compute".to_string(),
health_check_enabled: false, health_check_enabled: true,
canary_wait_time_secs: DEFAULT_CANARY_WAIT_TIME_SECS, canary_wait_time_secs: DEFAULT_CANARY_WAIT_TIME_SECS,
health_check_request_timeout_secs: DEFAULT_HEALTH_CHECK_REQUEST_TIMEOUT_SECS, health_check_request_timeout_secs: DEFAULT_HEALTH_CHECK_REQUEST_TIMEOUT_SECS,
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment