Merge pull request #18215 from markdroth/xds_client_side_health_checking

Inhibit client-side health checking for backends from balancer in xds.
pull/18239/head
Mark D. Roth 6 years ago committed by GitHub
commit be6f195823
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      src/core/ext/filters/client_channel/lb_policy/xds/xds.cc

@ -1305,11 +1305,14 @@ grpc_channel_args* XdsLb::CreateChildPolicyArgsLocked() {
grpc_channel_arg_integer_create( grpc_channel_arg_integer_create(
const_cast<char*>(GRPC_ARG_ADDRESS_IS_BACKEND_FROM_XDS_LOAD_BALANCER), const_cast<char*>(GRPC_ARG_ADDRESS_IS_BACKEND_FROM_XDS_LOAD_BALANCER),
1), 1),
// Inhibit client-side health checking, since the balancer does
// this for us.
grpc_channel_arg_integer_create(
const_cast<char*>(GRPC_ARG_INHIBIT_HEALTH_CHECKING), 1),
}; };
grpc_channel_args* args = grpc_channel_args_copy_and_add_and_remove( return grpc_channel_args_copy_and_add_and_remove(
args_, keys_to_remove, GPR_ARRAY_SIZE(keys_to_remove), args_to_add, args_, keys_to_remove, GPR_ARRAY_SIZE(keys_to_remove), args_to_add,
GPR_ARRAY_SIZE(args_to_add)); GPR_ARRAY_SIZE(args_to_add));
return args;
} }
void XdsLb::CreateChildPolicyLocked(const char* name, Args args) { void XdsLb::CreateChildPolicyLocked(const char* name, Args args) {

Loading…
Cancel
Save