|
|
@ -63,23 +63,15 @@ TEST_P(OutlierDetectionTest, SuccessRateEjectionAndUnejection) { |
|
|
|
// Setup outlier failure percentage parameters.
|
|
|
|
// Setup outlier failure percentage parameters.
|
|
|
|
// Any failure will cause an potential ejection with the probability of 100%
|
|
|
|
// Any failure will cause an potential ejection with the probability of 100%
|
|
|
|
// (to eliminate flakiness of the test).
|
|
|
|
// (to eliminate flakiness of the test).
|
|
|
|
auto* interval = cluster.mutable_outlier_detection()->mutable_interval(); |
|
|
|
auto* outlier_detection = cluster.mutable_outlier_detection(); |
|
|
|
auto* base_time = |
|
|
|
SetProtoDuration(grpc_core::Duration::Seconds(1), |
|
|
|
cluster.mutable_outlier_detection()->mutable_base_ejection_time(); |
|
|
|
outlier_detection->mutable_interval()); |
|
|
|
interval->set_seconds(1 * grpc_test_slowdown_factor()); |
|
|
|
SetProtoDuration(grpc_core::Duration::Seconds(1), |
|
|
|
base_time->set_seconds(1 * grpc_test_slowdown_factor()); |
|
|
|
outlier_detection->mutable_base_ejection_time()); |
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
outlier_detection->mutable_success_rate_stdev_factor()->set_value(100); |
|
|
|
->mutable_success_rate_stdev_factor() |
|
|
|
outlier_detection->mutable_enforcing_success_rate()->set_value(100); |
|
|
|
->set_value(100); |
|
|
|
outlier_detection->mutable_success_rate_minimum_hosts()->set_value(1); |
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
outlier_detection->mutable_success_rate_request_volume()->set_value(1); |
|
|
|
->mutable_enforcing_success_rate() |
|
|
|
|
|
|
|
->set_value(100); |
|
|
|
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
|
|
|
|
->mutable_success_rate_minimum_hosts() |
|
|
|
|
|
|
|
->set_value(1); |
|
|
|
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
|
|
|
|
->mutable_success_rate_request_volume() |
|
|
|
|
|
|
|
->set_value(1); |
|
|
|
|
|
|
|
balancer_->ads_service()->SetCdsResource(cluster); |
|
|
|
balancer_->ads_service()->SetCdsResource(cluster); |
|
|
|
auto new_route_config = default_route_config_; |
|
|
|
auto new_route_config = default_route_config_; |
|
|
|
auto* route = new_route_config.mutable_virtual_hosts(0)->mutable_routes(0); |
|
|
|
auto* route = new_route_config.mutable_virtual_hosts(0)->mutable_routes(0); |
|
|
@ -135,20 +127,13 @@ TEST_P(OutlierDetectionTest, SuccessRateMaxPercent) { |
|
|
|
// Setup outlier failure percentage parameters.
|
|
|
|
// Setup outlier failure percentage parameters.
|
|
|
|
// Any failure will cause an potential ejection with the probability of 100%
|
|
|
|
// Any failure will cause an potential ejection with the probability of 100%
|
|
|
|
// (to eliminate flakiness of the test).
|
|
|
|
// (to eliminate flakiness of the test).
|
|
|
|
auto* interval = cluster.mutable_outlier_detection()->mutable_interval(); |
|
|
|
auto* outlier_detection = cluster.mutable_outlier_detection(); |
|
|
|
interval->set_seconds(1 * grpc_test_slowdown_factor()); |
|
|
|
SetProtoDuration(grpc_core::Duration::Seconds(1), |
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
outlier_detection->mutable_interval()); |
|
|
|
->mutable_success_rate_stdev_factor() |
|
|
|
outlier_detection->mutable_success_rate_stdev_factor()->set_value(100); |
|
|
|
->set_value(100); |
|
|
|
outlier_detection->mutable_enforcing_success_rate()->set_value(100); |
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
outlier_detection->mutable_success_rate_minimum_hosts()->set_value(1); |
|
|
|
->mutable_enforcing_success_rate() |
|
|
|
outlier_detection->mutable_success_rate_request_volume()->set_value(1); |
|
|
|
->set_value(100); |
|
|
|
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
|
|
|
|
->mutable_success_rate_minimum_hosts() |
|
|
|
|
|
|
|
->set_value(1); |
|
|
|
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
|
|
|
|
->mutable_success_rate_request_volume() |
|
|
|
|
|
|
|
->set_value(1); |
|
|
|
|
|
|
|
balancer_->ads_service()->SetCdsResource(cluster); |
|
|
|
balancer_->ads_service()->SetCdsResource(cluster); |
|
|
|
auto new_route_config = default_route_config_; |
|
|
|
auto new_route_config = default_route_config_; |
|
|
|
auto* route = new_route_config.mutable_virtual_hosts(0)->mutable_routes(0); |
|
|
|
auto* route = new_route_config.mutable_virtual_hosts(0)->mutable_routes(0); |
|
|
@ -239,29 +224,21 @@ TEST_P(OutlierDetectionTest, SuccessRateStdevFactor) { |
|
|
|
// Setup outlier failure percentage parameters.
|
|
|
|
// Setup outlier failure percentage parameters.
|
|
|
|
// Any failure will cause an potential ejection with the probability of 100%
|
|
|
|
// Any failure will cause an potential ejection with the probability of 100%
|
|
|
|
// (to eliminate flakiness of the test).
|
|
|
|
// (to eliminate flakiness of the test).
|
|
|
|
auto* interval = cluster.mutable_outlier_detection()->mutable_interval(); |
|
|
|
auto* outlier_detection = cluster.mutable_outlier_detection(); |
|
|
|
auto* base_time = |
|
|
|
SetProtoDuration(grpc_core::Duration::Seconds(1), |
|
|
|
cluster.mutable_outlier_detection()->mutable_base_ejection_time(); |
|
|
|
outlier_detection->mutable_interval()); |
|
|
|
interval->set_seconds(1 * grpc_test_slowdown_factor()); |
|
|
|
SetProtoDuration(grpc_core::Duration::Seconds(1), |
|
|
|
base_time->set_seconds(1 * grpc_test_slowdown_factor()); |
|
|
|
outlier_detection->mutable_base_ejection_time()); |
|
|
|
// We know a stdev factor of 100 will ensure the ejection occurs, so setting
|
|
|
|
// We know a stdev factor of 100 will ensure the ejection occurs, so setting
|
|
|
|
// it to something higher like 1000 to test that ejection will not occur.
|
|
|
|
// it to something higher like 1000 to test that ejection will not occur.
|
|
|
|
// Note this parameter is the only difference between this test and
|
|
|
|
// Note this parameter is the only difference between this test and
|
|
|
|
// SuccessRateEjectionAndUnejection (ejection portion, value set to 100) and
|
|
|
|
// SuccessRateEjectionAndUnejection (ejection portion, value set to 100) and
|
|
|
|
// this one value changes means the difference between not ejecting in this
|
|
|
|
// this one value changes means the difference between not ejecting in this
|
|
|
|
// test and ejecting in the other test.
|
|
|
|
// test and ejecting in the other test.
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
outlier_detection->mutable_success_rate_stdev_factor()->set_value(1000); |
|
|
|
->mutable_success_rate_stdev_factor() |
|
|
|
outlier_detection->mutable_enforcing_success_rate()->set_value(100); |
|
|
|
->set_value(1000); |
|
|
|
outlier_detection->mutable_success_rate_minimum_hosts()->set_value(1); |
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
outlier_detection->mutable_success_rate_request_volume()->set_value(1); |
|
|
|
->mutable_enforcing_success_rate() |
|
|
|
|
|
|
|
->set_value(100); |
|
|
|
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
|
|
|
|
->mutable_success_rate_minimum_hosts() |
|
|
|
|
|
|
|
->set_value(1); |
|
|
|
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
|
|
|
|
->mutable_success_rate_request_volume() |
|
|
|
|
|
|
|
->set_value(1); |
|
|
|
|
|
|
|
balancer_->ads_service()->SetCdsResource(cluster); |
|
|
|
balancer_->ads_service()->SetCdsResource(cluster); |
|
|
|
auto new_route_config = default_route_config_; |
|
|
|
auto new_route_config = default_route_config_; |
|
|
|
auto* route = new_route_config.mutable_virtual_hosts(0)->mutable_routes(0); |
|
|
|
auto* route = new_route_config.mutable_virtual_hosts(0)->mutable_routes(0); |
|
|
@ -310,28 +287,20 @@ TEST_P(OutlierDetectionTest, SuccessRateEnforcementPercentage) { |
|
|
|
CreateAndStartBackends(2); |
|
|
|
CreateAndStartBackends(2); |
|
|
|
auto cluster = default_cluster_; |
|
|
|
auto cluster = default_cluster_; |
|
|
|
cluster.set_lb_policy(Cluster::RING_HASH); |
|
|
|
cluster.set_lb_policy(Cluster::RING_HASH); |
|
|
|
auto* interval = cluster.mutable_outlier_detection()->mutable_interval(); |
|
|
|
auto* outlier_detection = cluster.mutable_outlier_detection(); |
|
|
|
auto* base_time = |
|
|
|
SetProtoDuration(grpc_core::Duration::Seconds(1), |
|
|
|
cluster.mutable_outlier_detection()->mutable_base_ejection_time(); |
|
|
|
outlier_detection->mutable_interval()); |
|
|
|
interval->set_seconds(1 * grpc_test_slowdown_factor()); |
|
|
|
SetProtoDuration(grpc_core::Duration::Seconds(1), |
|
|
|
base_time->set_seconds(1 * grpc_test_slowdown_factor()); |
|
|
|
outlier_detection->mutable_base_ejection_time()); |
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
outlier_detection->mutable_success_rate_stdev_factor()->set_value(100); |
|
|
|
->mutable_success_rate_stdev_factor() |
|
|
|
|
|
|
|
->set_value(100); |
|
|
|
|
|
|
|
// Setting enforcing_success_rate to 0 to ensure we will never eject.
|
|
|
|
// Setting enforcing_success_rate to 0 to ensure we will never eject.
|
|
|
|
// Note this parameter is the only difference between this test and
|
|
|
|
// Note this parameter is the only difference between this test and
|
|
|
|
// SuccessRateEjectionAndUnejection (ejection portion, value set to 100) and
|
|
|
|
// SuccessRateEjectionAndUnejection (ejection portion, value set to 100) and
|
|
|
|
// this one value changes means the difference between guaranteed not ejecting
|
|
|
|
// this one value changes means the difference between guaranteed not ejecting
|
|
|
|
// in this test and guaranteed ejecting in the other test.
|
|
|
|
// in this test and guaranteed ejecting in the other test.
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
outlier_detection->mutable_enforcing_success_rate()->set_value(0); |
|
|
|
->mutable_enforcing_success_rate() |
|
|
|
outlier_detection->mutable_success_rate_minimum_hosts()->set_value(1); |
|
|
|
->set_value(0); |
|
|
|
outlier_detection->mutable_success_rate_request_volume()->set_value(1); |
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
|
|
|
|
->mutable_success_rate_minimum_hosts() |
|
|
|
|
|
|
|
->set_value(1); |
|
|
|
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
|
|
|
|
->mutable_success_rate_request_volume() |
|
|
|
|
|
|
|
->set_value(1); |
|
|
|
|
|
|
|
balancer_->ads_service()->SetCdsResource(cluster); |
|
|
|
balancer_->ads_service()->SetCdsResource(cluster); |
|
|
|
auto new_route_config = default_route_config_; |
|
|
|
auto new_route_config = default_route_config_; |
|
|
|
auto* route = new_route_config.mutable_virtual_hosts(0)->mutable_routes(0); |
|
|
|
auto* route = new_route_config.mutable_virtual_hosts(0)->mutable_routes(0); |
|
|
@ -382,25 +351,18 @@ TEST_P(OutlierDetectionTest, SuccessRateMinimumHosts) { |
|
|
|
// Setup outlier failure percentage parameters.
|
|
|
|
// Setup outlier failure percentage parameters.
|
|
|
|
// Any failure will cause an potential ejection with the probability of 100%
|
|
|
|
// Any failure will cause an potential ejection with the probability of 100%
|
|
|
|
// (to eliminate flakiness of the test).
|
|
|
|
// (to eliminate flakiness of the test).
|
|
|
|
auto* interval = cluster.mutable_outlier_detection()->mutable_interval(); |
|
|
|
auto* outlier_detection = cluster.mutable_outlier_detection(); |
|
|
|
interval->set_seconds(1 * grpc_test_slowdown_factor()); |
|
|
|
SetProtoDuration(grpc_core::Duration::Seconds(1), |
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
outlier_detection->mutable_interval()); |
|
|
|
->mutable_success_rate_stdev_factor() |
|
|
|
outlier_detection->mutable_success_rate_stdev_factor()->set_value(100); |
|
|
|
->set_value(100); |
|
|
|
outlier_detection->mutable_enforcing_success_rate()->set_value(100); |
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
|
|
|
|
->mutable_enforcing_success_rate() |
|
|
|
|
|
|
|
->set_value(100); |
|
|
|
|
|
|
|
// Set success_rate_minimum_hosts to 3 when we only have 2 backends
|
|
|
|
// Set success_rate_minimum_hosts to 3 when we only have 2 backends
|
|
|
|
// Note this parameter is the only difference between this test and
|
|
|
|
// Note this parameter is the only difference between this test and
|
|
|
|
// SuccessRateEjectionAndUnejection (ejection portion, value set to 1) and
|
|
|
|
// SuccessRateEjectionAndUnejection (ejection portion, value set to 1) and
|
|
|
|
// this one value changes means the difference between not ejecting in this
|
|
|
|
// this one value changes means the difference between not ejecting in this
|
|
|
|
// test and ejecting in the other test.
|
|
|
|
// test and ejecting in the other test.
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
outlier_detection->mutable_success_rate_minimum_hosts()->set_value(3); |
|
|
|
->mutable_success_rate_minimum_hosts() |
|
|
|
outlier_detection->mutable_success_rate_request_volume()->set_value(1); |
|
|
|
->set_value(3); |
|
|
|
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
|
|
|
|
->mutable_success_rate_request_volume() |
|
|
|
|
|
|
|
->set_value(1); |
|
|
|
|
|
|
|
balancer_->ads_service()->SetCdsResource(cluster); |
|
|
|
balancer_->ads_service()->SetCdsResource(cluster); |
|
|
|
auto new_route_config = default_route_config_; |
|
|
|
auto new_route_config = default_route_config_; |
|
|
|
auto* route = new_route_config.mutable_virtual_hosts(0)->mutable_routes(0); |
|
|
|
auto* route = new_route_config.mutable_virtual_hosts(0)->mutable_routes(0); |
|
|
@ -451,26 +413,19 @@ TEST_P(OutlierDetectionTest, SuccessRateRequestVolume) { |
|
|
|
// Setup outlier failure percentage parameters.
|
|
|
|
// Setup outlier failure percentage parameters.
|
|
|
|
// Any failure will cause an potential ejection with the probability of 100%
|
|
|
|
// Any failure will cause an potential ejection with the probability of 100%
|
|
|
|
// (to eliminate flakiness of the test).
|
|
|
|
// (to eliminate flakiness of the test).
|
|
|
|
auto* interval = cluster.mutable_outlier_detection()->mutable_interval(); |
|
|
|
auto* outlier_detection = cluster.mutable_outlier_detection(); |
|
|
|
interval->set_seconds(1 * grpc_test_slowdown_factor()); |
|
|
|
SetProtoDuration(grpc_core::Duration::Seconds(1), |
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
outlier_detection->mutable_interval()); |
|
|
|
->mutable_success_rate_stdev_factor() |
|
|
|
outlier_detection->mutable_success_rate_stdev_factor()->set_value(100); |
|
|
|
->set_value(100); |
|
|
|
outlier_detection->mutable_enforcing_success_rate()->set_value(100); |
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
outlier_detection->mutable_success_rate_minimum_hosts()->set_value(1); |
|
|
|
->mutable_enforcing_success_rate() |
|
|
|
|
|
|
|
->set_value(100); |
|
|
|
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
|
|
|
|
->mutable_success_rate_minimum_hosts() |
|
|
|
|
|
|
|
->set_value(1); |
|
|
|
|
|
|
|
// Set success_rate_request_volume to 4 when we only send 3 RPC in the
|
|
|
|
// Set success_rate_request_volume to 4 when we only send 3 RPC in the
|
|
|
|
// interval.
|
|
|
|
// interval.
|
|
|
|
// Note this parameter is the only difference between this test and
|
|
|
|
// Note this parameter is the only difference between this test and
|
|
|
|
// SuccessRateEjectionAndUnejection (ejection portion, value set to 1) and
|
|
|
|
// SuccessRateEjectionAndUnejection (ejection portion, value set to 1) and
|
|
|
|
// this one value changes means the difference between not ejecting in this
|
|
|
|
// this one value changes means the difference between not ejecting in this
|
|
|
|
// test and ejecting in the other test.
|
|
|
|
// test and ejecting in the other test.
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
outlier_detection->mutable_success_rate_request_volume()->set_value(4); |
|
|
|
->mutable_success_rate_request_volume() |
|
|
|
|
|
|
|
->set_value(4); |
|
|
|
|
|
|
|
balancer_->ads_service()->SetCdsResource(cluster); |
|
|
|
balancer_->ads_service()->SetCdsResource(cluster); |
|
|
|
auto new_route_config = default_route_config_; |
|
|
|
auto new_route_config = default_route_config_; |
|
|
|
auto* route = new_route_config.mutable_virtual_hosts(0)->mutable_routes(0); |
|
|
|
auto* route = new_route_config.mutable_virtual_hosts(0)->mutable_routes(0); |
|
|
@ -527,23 +482,15 @@ TEST_P(OutlierDetectionTest, FailurePercentageEjectionAndUnejection) { |
|
|
|
// Setup outlier failure percentage parameters.
|
|
|
|
// Setup outlier failure percentage parameters.
|
|
|
|
// Any failure will cause an potential ejection with the probability of 100%
|
|
|
|
// Any failure will cause an potential ejection with the probability of 100%
|
|
|
|
// (to eliminate flakiness of the test).
|
|
|
|
// (to eliminate flakiness of the test).
|
|
|
|
auto* interval = cluster.mutable_outlier_detection()->mutable_interval(); |
|
|
|
auto* outlier_detection = cluster.mutable_outlier_detection(); |
|
|
|
interval->set_seconds(1 * grpc_test_slowdown_factor()); |
|
|
|
SetProtoDuration(grpc_core::Duration::Seconds(1), |
|
|
|
auto* base_time = |
|
|
|
outlier_detection->mutable_interval()); |
|
|
|
cluster.mutable_outlier_detection()->mutable_base_ejection_time(); |
|
|
|
SetProtoDuration(grpc_core::Duration::Seconds(3), |
|
|
|
base_time->set_seconds(3 * grpc_test_slowdown_factor()); |
|
|
|
outlier_detection->mutable_base_ejection_time()); |
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
outlier_detection->mutable_failure_percentage_threshold()->set_value(0); |
|
|
|
->mutable_failure_percentage_threshold() |
|
|
|
outlier_detection->mutable_enforcing_failure_percentage()->set_value(100); |
|
|
|
->set_value(0); |
|
|
|
outlier_detection->mutable_failure_percentage_minimum_hosts()->set_value(1); |
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
outlier_detection->mutable_failure_percentage_request_volume()->set_value(1); |
|
|
|
->mutable_enforcing_failure_percentage() |
|
|
|
|
|
|
|
->set_value(100); |
|
|
|
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
|
|
|
|
->mutable_failure_percentage_minimum_hosts() |
|
|
|
|
|
|
|
->set_value(1); |
|
|
|
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
|
|
|
|
->mutable_failure_percentage_request_volume() |
|
|
|
|
|
|
|
->set_value(1); |
|
|
|
|
|
|
|
balancer_->ads_service()->SetCdsResource(cluster); |
|
|
|
balancer_->ads_service()->SetCdsResource(cluster); |
|
|
|
auto new_route_config = default_route_config_; |
|
|
|
auto new_route_config = default_route_config_; |
|
|
|
auto* route = new_route_config.mutable_virtual_hosts(0)->mutable_routes(0); |
|
|
|
auto* route = new_route_config.mutable_virtual_hosts(0)->mutable_routes(0); |
|
|
@ -606,20 +553,13 @@ TEST_P(OutlierDetectionTest, FailurePercentageMaxPercentage) { |
|
|
|
// Setup outlier failure percentage parameters.
|
|
|
|
// Setup outlier failure percentage parameters.
|
|
|
|
// Any failure will cause an potential ejection with the probability of 100%
|
|
|
|
// Any failure will cause an potential ejection with the probability of 100%
|
|
|
|
// (to eliminate flakiness of the test).
|
|
|
|
// (to eliminate flakiness of the test).
|
|
|
|
auto* interval = cluster.mutable_outlier_detection()->mutable_interval(); |
|
|
|
auto* outlier_detection = cluster.mutable_outlier_detection(); |
|
|
|
interval->set_seconds(1 * grpc_test_slowdown_factor()); |
|
|
|
SetProtoDuration(grpc_core::Duration::Seconds(1), |
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
outlier_detection->mutable_interval()); |
|
|
|
->mutable_failure_percentage_threshold() |
|
|
|
outlier_detection->mutable_failure_percentage_threshold()->set_value(0); |
|
|
|
->set_value(0); |
|
|
|
outlier_detection->mutable_enforcing_failure_percentage()->set_value(100); |
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
outlier_detection->mutable_failure_percentage_minimum_hosts()->set_value(1); |
|
|
|
->mutable_enforcing_failure_percentage() |
|
|
|
outlier_detection->mutable_failure_percentage_request_volume()->set_value(1); |
|
|
|
->set_value(100); |
|
|
|
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
|
|
|
|
->mutable_failure_percentage_minimum_hosts() |
|
|
|
|
|
|
|
->set_value(1); |
|
|
|
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
|
|
|
|
->mutable_failure_percentage_request_volume() |
|
|
|
|
|
|
|
->set_value(1); |
|
|
|
|
|
|
|
balancer_->ads_service()->SetCdsResource(cluster); |
|
|
|
balancer_->ads_service()->SetCdsResource(cluster); |
|
|
|
auto new_route_config = default_route_config_; |
|
|
|
auto new_route_config = default_route_config_; |
|
|
|
auto* route = new_route_config.mutable_virtual_hosts(0)->mutable_routes(0); |
|
|
|
auto* route = new_route_config.mutable_virtual_hosts(0)->mutable_routes(0); |
|
|
@ -707,28 +647,20 @@ TEST_P(OutlierDetectionTest, FailurePercentageThreshold) { |
|
|
|
CreateAndStartBackends(2); |
|
|
|
CreateAndStartBackends(2); |
|
|
|
auto cluster = default_cluster_; |
|
|
|
auto cluster = default_cluster_; |
|
|
|
cluster.set_lb_policy(Cluster::RING_HASH); |
|
|
|
cluster.set_lb_policy(Cluster::RING_HASH); |
|
|
|
auto* interval = cluster.mutable_outlier_detection()->mutable_interval(); |
|
|
|
auto* outlier_detection = cluster.mutable_outlier_detection(); |
|
|
|
interval->set_seconds(1 * grpc_test_slowdown_factor()); |
|
|
|
SetProtoDuration(grpc_core::Duration::Seconds(1), |
|
|
|
auto* base_time = |
|
|
|
outlier_detection->mutable_interval()); |
|
|
|
cluster.mutable_outlier_detection()->mutable_base_ejection_time(); |
|
|
|
SetProtoDuration(grpc_core::Duration::Seconds(1), |
|
|
|
base_time->set_seconds(1 * grpc_test_slowdown_factor()); |
|
|
|
outlier_detection->mutable_base_ejection_time()); |
|
|
|
// Setup outlier failure percentage parameter to 50
|
|
|
|
// Setup outlier failure percentage parameter to 50
|
|
|
|
// Note this parameter is the only difference between this test and
|
|
|
|
// Note this parameter is the only difference between this test and
|
|
|
|
// FailurePercentageEjectionAndUnejection (ejection portion, value set to 0)
|
|
|
|
// FailurePercentageEjectionAndUnejection (ejection portion, value set to 0)
|
|
|
|
// and this one value changes means the difference between not ejecting in
|
|
|
|
// and this one value changes means the difference between not ejecting in
|
|
|
|
// this test and ejecting in the other test.
|
|
|
|
// this test and ejecting in the other test.
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
outlier_detection->mutable_failure_percentage_threshold()->set_value(50); |
|
|
|
->mutable_failure_percentage_threshold() |
|
|
|
outlier_detection->mutable_enforcing_failure_percentage()->set_value(100); |
|
|
|
->set_value(50); |
|
|
|
outlier_detection->mutable_failure_percentage_minimum_hosts()->set_value(1); |
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
outlier_detection->mutable_failure_percentage_request_volume()->set_value(1); |
|
|
|
->mutable_enforcing_failure_percentage() |
|
|
|
|
|
|
|
->set_value(100); |
|
|
|
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
|
|
|
|
->mutable_failure_percentage_minimum_hosts() |
|
|
|
|
|
|
|
->set_value(1); |
|
|
|
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
|
|
|
|
->mutable_failure_percentage_request_volume() |
|
|
|
|
|
|
|
->set_value(1); |
|
|
|
|
|
|
|
balancer_->ads_service()->SetCdsResource(cluster); |
|
|
|
balancer_->ads_service()->SetCdsResource(cluster); |
|
|
|
auto new_route_config = default_route_config_; |
|
|
|
auto new_route_config = default_route_config_; |
|
|
|
auto* route = new_route_config.mutable_virtual_hosts(0)->mutable_routes(0); |
|
|
|
auto* route = new_route_config.mutable_virtual_hosts(0)->mutable_routes(0); |
|
|
@ -778,28 +710,20 @@ TEST_P(OutlierDetectionTest, FailurePercentageEnforcementPercentage) { |
|
|
|
CreateAndStartBackends(2); |
|
|
|
CreateAndStartBackends(2); |
|
|
|
auto cluster = default_cluster_; |
|
|
|
auto cluster = default_cluster_; |
|
|
|
cluster.set_lb_policy(Cluster::RING_HASH); |
|
|
|
cluster.set_lb_policy(Cluster::RING_HASH); |
|
|
|
auto* interval = cluster.mutable_outlier_detection()->mutable_interval(); |
|
|
|
auto* outlier_detection = cluster.mutable_outlier_detection(); |
|
|
|
interval->set_seconds(1 * grpc_test_slowdown_factor()); |
|
|
|
SetProtoDuration(grpc_core::Duration::Seconds(1), |
|
|
|
auto* base_time = |
|
|
|
outlier_detection->mutable_interval()); |
|
|
|
cluster.mutable_outlier_detection()->mutable_base_ejection_time(); |
|
|
|
SetProtoDuration(grpc_core::Duration::Seconds(1), |
|
|
|
base_time->set_seconds(1 * grpc_test_slowdown_factor()); |
|
|
|
outlier_detection->mutable_base_ejection_time()); |
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
outlier_detection->mutable_failure_percentage_threshold()->set_value(0); |
|
|
|
->mutable_failure_percentage_threshold() |
|
|
|
|
|
|
|
->set_value(0); |
|
|
|
|
|
|
|
// Setting enforcing_success_rate to 0 to ensure we will never eject.
|
|
|
|
// Setting enforcing_success_rate to 0 to ensure we will never eject.
|
|
|
|
// Note this parameter is the only difference between this test and
|
|
|
|
// Note this parameter is the only difference between this test and
|
|
|
|
// FailurePercentageEjectionAndUnejection (ejection portion, value set to 100)
|
|
|
|
// FailurePercentageEjectionAndUnejection (ejection portion, value set to 100)
|
|
|
|
// and this one value changes means the difference between guaranteed not
|
|
|
|
// and this one value changes means the difference between guaranteed not
|
|
|
|
// ejecting in this test and guaranteed ejecting in the other test.
|
|
|
|
// ejecting in this test and guaranteed ejecting in the other test.
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
outlier_detection->mutable_enforcing_failure_percentage()->set_value(0); |
|
|
|
->mutable_enforcing_failure_percentage() |
|
|
|
outlier_detection->mutable_failure_percentage_minimum_hosts()->set_value(1); |
|
|
|
->set_value(0); |
|
|
|
outlier_detection->mutable_failure_percentage_request_volume()->set_value(1); |
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
|
|
|
|
->mutable_failure_percentage_minimum_hosts() |
|
|
|
|
|
|
|
->set_value(1); |
|
|
|
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
|
|
|
|
->mutable_failure_percentage_request_volume() |
|
|
|
|
|
|
|
->set_value(1); |
|
|
|
|
|
|
|
balancer_->ads_service()->SetCdsResource(cluster); |
|
|
|
balancer_->ads_service()->SetCdsResource(cluster); |
|
|
|
auto new_route_config = default_route_config_; |
|
|
|
auto new_route_config = default_route_config_; |
|
|
|
auto* route = new_route_config.mutable_virtual_hosts(0)->mutable_routes(0); |
|
|
|
auto* route = new_route_config.mutable_virtual_hosts(0)->mutable_routes(0); |
|
|
@ -851,14 +775,11 @@ TEST_P(OutlierDetectionTest, FailurePercentageMinimumHosts) { |
|
|
|
// Setup outlier failure percentage parameters.
|
|
|
|
// Setup outlier failure percentage parameters.
|
|
|
|
// Any failure will cause an potential ejection with the probability of 100%
|
|
|
|
// Any failure will cause an potential ejection with the probability of 100%
|
|
|
|
// (to eliminate flakiness of the test).
|
|
|
|
// (to eliminate flakiness of the test).
|
|
|
|
auto* interval = cluster.mutable_outlier_detection()->mutable_interval(); |
|
|
|
auto* outlier_detection = cluster.mutable_outlier_detection(); |
|
|
|
interval->set_seconds(1 * grpc_test_slowdown_factor()); |
|
|
|
SetProtoDuration(grpc_core::Duration::Seconds(1), |
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
outlier_detection->mutable_interval()); |
|
|
|
->mutable_failure_percentage_threshold() |
|
|
|
outlier_detection->mutable_failure_percentage_threshold()->set_value(0); |
|
|
|
->set_value(0); |
|
|
|
outlier_detection->mutable_enforcing_failure_percentage()->set_value(100); |
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
|
|
|
|
->mutable_enforcing_failure_percentage() |
|
|
|
|
|
|
|
->set_value(100); |
|
|
|
|
|
|
|
// Set failure_percentage_minimum_hosts to 3 when we only have 2 backends
|
|
|
|
// Set failure_percentage_minimum_hosts to 3 when we only have 2 backends
|
|
|
|
// Note this parameter is the only difference between this test and
|
|
|
|
// Note this parameter is the only difference between this test and
|
|
|
|
// FailurePercentageEjectionAndUnejection (ejection portion, value set to 1)
|
|
|
|
// FailurePercentageEjectionAndUnejection (ejection portion, value set to 1)
|
|
|
@ -922,26 +843,19 @@ TEST_P(OutlierDetectionTest, FailurePercentageRequestVolume) { |
|
|
|
// Setup outlier failure percentage parameters.
|
|
|
|
// Setup outlier failure percentage parameters.
|
|
|
|
// Any failure will cause an potential ejection with the probability of 100%
|
|
|
|
// Any failure will cause an potential ejection with the probability of 100%
|
|
|
|
// (to eliminate flakiness of the test).
|
|
|
|
// (to eliminate flakiness of the test).
|
|
|
|
auto* interval = cluster.mutable_outlier_detection()->mutable_interval(); |
|
|
|
auto* outlier_detection = cluster.mutable_outlier_detection(); |
|
|
|
interval->set_seconds(1 * grpc_test_slowdown_factor()); |
|
|
|
SetProtoDuration(grpc_core::Duration::Seconds(1), |
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
outlier_detection->mutable_interval()); |
|
|
|
->mutable_failure_percentage_threshold() |
|
|
|
outlier_detection->mutable_failure_percentage_threshold()->set_value(0); |
|
|
|
->set_value(0); |
|
|
|
outlier_detection->mutable_enforcing_failure_percentage()->set_value(100); |
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
outlier_detection->mutable_failure_percentage_minimum_hosts()->set_value(1); |
|
|
|
->mutable_enforcing_failure_percentage() |
|
|
|
|
|
|
|
->set_value(100); |
|
|
|
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
|
|
|
|
->mutable_failure_percentage_minimum_hosts() |
|
|
|
|
|
|
|
->set_value(1); |
|
|
|
|
|
|
|
// Set failure_percentage_request_volume to 4 when we only send 3 RPC in the
|
|
|
|
// Set failure_percentage_request_volume to 4 when we only send 3 RPC in the
|
|
|
|
// interval.
|
|
|
|
// interval.
|
|
|
|
// // Note this parameter is the only difference between this test and
|
|
|
|
// // Note this parameter is the only difference between this test and
|
|
|
|
// FailurePercentageEjectionAndUnejection (ejection portion, value set to 1)
|
|
|
|
// FailurePercentageEjectionAndUnejection (ejection portion, value set to 1)
|
|
|
|
// and this one value changes means the difference between not ejecting in
|
|
|
|
// and this one value changes means the difference between not ejecting in
|
|
|
|
// this test and ejecting in the other test.
|
|
|
|
// this test and ejecting in the other test.
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
outlier_detection->mutable_failure_percentage_request_volume()->set_value(4); |
|
|
|
->mutable_failure_percentage_request_volume() |
|
|
|
|
|
|
|
->set_value(4); |
|
|
|
|
|
|
|
balancer_->ads_service()->SetCdsResource(cluster); |
|
|
|
balancer_->ads_service()->SetCdsResource(cluster); |
|
|
|
auto new_route_config = default_route_config_; |
|
|
|
auto new_route_config = default_route_config_; |
|
|
|
auto* route = new_route_config.mutable_virtual_hosts(0)->mutable_routes(0); |
|
|
|
auto* route = new_route_config.mutable_virtual_hosts(0)->mutable_routes(0); |
|
|
@ -995,37 +909,20 @@ TEST_P(OutlierDetectionTest, SuccessRateAndFailurePercentage) { |
|
|
|
// Setup outlier failure percentage parameters.
|
|
|
|
// Setup outlier failure percentage parameters.
|
|
|
|
// Any failure will cause an potential ejection with the probability of 100%
|
|
|
|
// Any failure will cause an potential ejection with the probability of 100%
|
|
|
|
// (to eliminate flakiness of the test).
|
|
|
|
// (to eliminate flakiness of the test).
|
|
|
|
auto* interval = cluster.mutable_outlier_detection()->mutable_interval(); |
|
|
|
auto* outlier_detection = cluster.mutable_outlier_detection(); |
|
|
|
interval->set_seconds(1 * grpc_test_slowdown_factor()); |
|
|
|
SetProtoDuration(grpc_core::Duration::Seconds(1), |
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
outlier_detection->mutable_interval()); |
|
|
|
->mutable_max_ejection_percent() |
|
|
|
outlier_detection->mutable_max_ejection_percent()->set_value(50); |
|
|
|
->set_value(50); |
|
|
|
|
|
|
|
// This stdev of 500 will ensure the number of ok RPC and error RPC we send
|
|
|
|
// This stdev of 500 will ensure the number of ok RPC and error RPC we send
|
|
|
|
// will make 1 outlier out of the 4 backends.
|
|
|
|
// will make 1 outlier out of the 4 backends.
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
outlier_detection->mutable_success_rate_stdev_factor()->set_value(500); |
|
|
|
->mutable_success_rate_stdev_factor() |
|
|
|
outlier_detection->mutable_enforcing_success_rate()->set_value(100); |
|
|
|
->set_value(500); |
|
|
|
outlier_detection->mutable_success_rate_minimum_hosts()->set_value(1); |
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
outlier_detection->mutable_success_rate_request_volume()->set_value(1); |
|
|
|
->mutable_enforcing_success_rate() |
|
|
|
outlier_detection->mutable_failure_percentage_threshold()->set_value(0); |
|
|
|
->set_value(100); |
|
|
|
outlier_detection->mutable_enforcing_failure_percentage()->set_value(100); |
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
outlier_detection->mutable_failure_percentage_minimum_hosts()->set_value(1); |
|
|
|
->mutable_success_rate_minimum_hosts() |
|
|
|
outlier_detection->mutable_failure_percentage_request_volume()->set_value(1); |
|
|
|
->set_value(1); |
|
|
|
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
|
|
|
|
->mutable_success_rate_request_volume() |
|
|
|
|
|
|
|
->set_value(1); |
|
|
|
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
|
|
|
|
->mutable_failure_percentage_threshold() |
|
|
|
|
|
|
|
->set_value(0); |
|
|
|
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
|
|
|
|
->mutable_enforcing_failure_percentage() |
|
|
|
|
|
|
|
->set_value(100); |
|
|
|
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
|
|
|
|
->mutable_failure_percentage_minimum_hosts() |
|
|
|
|
|
|
|
->set_value(1); |
|
|
|
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
|
|
|
|
->mutable_failure_percentage_request_volume() |
|
|
|
|
|
|
|
->set_value(1); |
|
|
|
|
|
|
|
balancer_->ads_service()->SetCdsResource(cluster); |
|
|
|
balancer_->ads_service()->SetCdsResource(cluster); |
|
|
|
auto new_route_config = default_route_config_; |
|
|
|
auto new_route_config = default_route_config_; |
|
|
|
auto* route = new_route_config.mutable_virtual_hosts(0)->mutable_routes(0); |
|
|
|
auto* route = new_route_config.mutable_virtual_hosts(0)->mutable_routes(0); |
|
|
@ -1120,7 +1017,7 @@ TEST_P(OutlierDetectionTest, SuccessRateAndFailurePercentage) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Tests SuccessRate and FailurePercentage both unconfigured;
|
|
|
|
// Tests SuccessRate and FailurePercentage both unconfigured;
|
|
|
|
// This is the case where according to the RFC we need to instruct the picker
|
|
|
|
// This is the case where according to the gRFC we need to instruct the picker
|
|
|
|
// not to do counting or even start the timer. The result of not counting is
|
|
|
|
// not to do counting or even start the timer. The result of not counting is
|
|
|
|
// that there will be no ejection taking place since we can't do any
|
|
|
|
// that there will be no ejection taking place since we can't do any
|
|
|
|
// calculations.
|
|
|
|
// calculations.
|
|
|
@ -1130,14 +1027,11 @@ TEST_P(OutlierDetectionTest, SuccessRateAndFailurePercentageBothDisabled) { |
|
|
|
CreateAndStartBackends(2); |
|
|
|
CreateAndStartBackends(2); |
|
|
|
auto cluster = default_cluster_; |
|
|
|
auto cluster = default_cluster_; |
|
|
|
cluster.set_lb_policy(Cluster::RING_HASH); |
|
|
|
cluster.set_lb_policy(Cluster::RING_HASH); |
|
|
|
// Setup outlier failure percentage parameters.
|
|
|
|
auto* outlier_detection = cluster.mutable_outlier_detection(); |
|
|
|
// Any failure will cause an potential ejection with the probability of 100%
|
|
|
|
SetProtoDuration(grpc_core::Duration::Seconds(1), |
|
|
|
// (to eliminate flakiness of the test).
|
|
|
|
outlier_detection->mutable_interval()); |
|
|
|
auto* interval = cluster.mutable_outlier_detection()->mutable_interval(); |
|
|
|
SetProtoDuration(grpc_core::Duration::Seconds(1), |
|
|
|
auto* base_time = |
|
|
|
outlier_detection->mutable_base_ejection_time()); |
|
|
|
cluster.mutable_outlier_detection()->mutable_base_ejection_time(); |
|
|
|
|
|
|
|
interval->set_seconds(1 * grpc_test_slowdown_factor()); |
|
|
|
|
|
|
|
base_time->set_seconds(1 * grpc_test_slowdown_factor()); |
|
|
|
|
|
|
|
balancer_->ads_service()->SetCdsResource(cluster); |
|
|
|
balancer_->ads_service()->SetCdsResource(cluster); |
|
|
|
auto new_route_config = default_route_config_; |
|
|
|
auto new_route_config = default_route_config_; |
|
|
|
auto* route = new_route_config.mutable_virtual_hosts(0)->mutable_routes(0); |
|
|
|
auto* route = new_route_config.mutable_virtual_hosts(0)->mutable_routes(0); |
|
|
@ -1186,37 +1080,20 @@ TEST_P(OutlierDetectionTest, |
|
|
|
// Setup outlier failure percentage parameters.
|
|
|
|
// Setup outlier failure percentage parameters.
|
|
|
|
// Any failure will cause an potential ejection with the probability of 100%
|
|
|
|
// Any failure will cause an potential ejection with the probability of 100%
|
|
|
|
// (to eliminate flakiness of the test).
|
|
|
|
// (to eliminate flakiness of the test).
|
|
|
|
auto* interval = cluster.mutable_outlier_detection()->mutable_interval(); |
|
|
|
auto* outlier_detection = cluster.mutable_outlier_detection(); |
|
|
|
interval->set_seconds(1 * grpc_test_slowdown_factor()); |
|
|
|
SetProtoDuration(grpc_core::Duration::Seconds(1), |
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
outlier_detection->mutable_interval()); |
|
|
|
->mutable_max_ejection_percent() |
|
|
|
outlier_detection->mutable_max_ejection_percent()->set_value(50); |
|
|
|
->set_value(50); |
|
|
|
|
|
|
|
// This stdev of 500 will ensure the number of ok RPC and error RPC we send
|
|
|
|
// This stdev of 500 will ensure the number of ok RPC and error RPC we send
|
|
|
|
// will make 1 outlier out of the 4 backends.
|
|
|
|
// will make 1 outlier out of the 4 backends.
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
outlier_detection->mutable_success_rate_stdev_factor()->set_value(500); |
|
|
|
->mutable_success_rate_stdev_factor() |
|
|
|
outlier_detection->mutable_enforcing_success_rate()->set_value(100); |
|
|
|
->set_value(500); |
|
|
|
outlier_detection->mutable_success_rate_minimum_hosts()->set_value(1); |
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
outlier_detection->mutable_success_rate_request_volume()->set_value(1); |
|
|
|
->mutable_enforcing_success_rate() |
|
|
|
outlier_detection->mutable_failure_percentage_threshold()->set_value(0); |
|
|
|
->set_value(100); |
|
|
|
outlier_detection->mutable_enforcing_failure_percentage()->set_value(100); |
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
outlier_detection->mutable_failure_percentage_minimum_hosts()->set_value(1); |
|
|
|
->mutable_success_rate_minimum_hosts() |
|
|
|
outlier_detection->mutable_failure_percentage_request_volume()->set_value(1); |
|
|
|
->set_value(1); |
|
|
|
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
|
|
|
|
->mutable_success_rate_request_volume() |
|
|
|
|
|
|
|
->set_value(1); |
|
|
|
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
|
|
|
|
->mutable_failure_percentage_threshold() |
|
|
|
|
|
|
|
->set_value(0); |
|
|
|
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
|
|
|
|
->mutable_enforcing_failure_percentage() |
|
|
|
|
|
|
|
->set_value(100); |
|
|
|
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
|
|
|
|
->mutable_failure_percentage_minimum_hosts() |
|
|
|
|
|
|
|
->set_value(1); |
|
|
|
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
|
|
|
|
->mutable_failure_percentage_request_volume() |
|
|
|
|
|
|
|
->set_value(1); |
|
|
|
|
|
|
|
balancer_->ads_service()->SetCdsResource(cluster); |
|
|
|
balancer_->ads_service()->SetCdsResource(cluster); |
|
|
|
auto new_route_config = default_route_config_; |
|
|
|
auto new_route_config = default_route_config_; |
|
|
|
auto* route = new_route_config.mutable_virtual_hosts(0)->mutable_routes(0); |
|
|
|
auto* route = new_route_config.mutable_virtual_hosts(0)->mutable_routes(0); |
|
|
@ -1293,23 +1170,15 @@ TEST_P(OutlierDetectionTest, DisableOutlierDetectionWhileAddressesAreEjected) { |
|
|
|
// Setup outlier failure percentage parameters.
|
|
|
|
// Setup outlier failure percentage parameters.
|
|
|
|
// Any failure will cause an potential ejection with the probability of 100%
|
|
|
|
// Any failure will cause an potential ejection with the probability of 100%
|
|
|
|
// (to eliminate flakiness of the test).
|
|
|
|
// (to eliminate flakiness of the test).
|
|
|
|
auto* interval = cluster.mutable_outlier_detection()->mutable_interval(); |
|
|
|
auto* outlier_detection = cluster.mutable_outlier_detection(); |
|
|
|
interval->set_seconds(1 * grpc_test_slowdown_factor()); |
|
|
|
SetProtoDuration(grpc_core::Duration::Seconds(1), |
|
|
|
auto* base_time = |
|
|
|
outlier_detection->mutable_interval()); |
|
|
|
cluster.mutable_outlier_detection()->mutable_base_ejection_time(); |
|
|
|
SetProtoDuration(grpc_core::Duration::Seconds(3), |
|
|
|
base_time->set_seconds(3 * grpc_test_slowdown_factor()); |
|
|
|
outlier_detection->mutable_base_ejection_time()); |
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
outlier_detection->mutable_failure_percentage_threshold()->set_value(0); |
|
|
|
->mutable_failure_percentage_threshold() |
|
|
|
outlier_detection->mutable_enforcing_failure_percentage()->set_value(100); |
|
|
|
->set_value(0); |
|
|
|
outlier_detection->mutable_failure_percentage_minimum_hosts()->set_value(1); |
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
outlier_detection->mutable_failure_percentage_request_volume()->set_value(1); |
|
|
|
->mutable_enforcing_failure_percentage() |
|
|
|
|
|
|
|
->set_value(100); |
|
|
|
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
|
|
|
|
->mutable_failure_percentage_minimum_hosts() |
|
|
|
|
|
|
|
->set_value(1); |
|
|
|
|
|
|
|
cluster.mutable_outlier_detection() |
|
|
|
|
|
|
|
->mutable_failure_percentage_request_volume() |
|
|
|
|
|
|
|
->set_value(1); |
|
|
|
|
|
|
|
balancer_->ads_service()->SetCdsResource(cluster); |
|
|
|
balancer_->ads_service()->SetCdsResource(cluster); |
|
|
|
auto new_route_config = default_route_config_; |
|
|
|
auto new_route_config = default_route_config_; |
|
|
|
auto* route = new_route_config.mutable_virtual_hosts(0)->mutable_routes(0); |
|
|
|
auto* route = new_route_config.mutable_virtual_hosts(0)->mutable_routes(0); |
|
|
|