Skip to content

Commit d580031

Browse files
authored
feat: Turn on canary health check by default (#4368)
Signed-off-by: [email protected] <[email protected]>
1 parent 37d0fc8 commit d580031

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/runtime/src/config.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ pub struct RuntimeConfig {
162162

163163
/// Enable active health checking with payloads
164164
/// Set this at runtime with environment variable DYN_HEALTH_CHECK_ENABLED
165-
#[builder(default = "false")]
165+
#[builder(default = "true")]
166166
#[builder_field_attr(serde(skip_serializing_if = "Option::is_none"))]
167167
pub health_check_enabled: bool,
168168

@@ -358,7 +358,7 @@ impl RuntimeConfig {
358358
compute_threads: Some(1),
359359
compute_stack_size: Some(2 * 1024 * 1024),
360360
compute_thread_prefix: "compute".to_string(),
361-
health_check_enabled: false,
361+
health_check_enabled: true,
362362
canary_wait_time_secs: DEFAULT_CANARY_WAIT_TIME_SECS,
363363
health_check_request_timeout_secs: DEFAULT_HEALTH_CHECK_REQUEST_TIMEOUT_SECS,
364364
}
@@ -394,7 +394,7 @@ impl Default for RuntimeConfig {
394394
compute_threads: None,
395395
compute_stack_size: Some(2 * 1024 * 1024),
396396
compute_thread_prefix: "compute".to_string(),
397-
health_check_enabled: false,
397+
health_check_enabled: true,
398398
canary_wait_time_secs: DEFAULT_CANARY_WAIT_TIME_SECS,
399399
health_check_request_timeout_secs: DEFAULT_HEALTH_CHECK_REQUEST_TIMEOUT_SECS,
400400
}

0 commit comments

Comments
 (0)