Fixes autoscaling monitor when environment has set http_proxy or https_proxy (#14351)

This commit is contained in:
Xianyang Liu 2021-03-04 00:22:53 +08:00 committed by GitHub
parent 5637d89ecc
commit fc9182e63c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -97,7 +97,8 @@ class Monitor:
# Initialize the gcs stub for getting all node resource usage.
gcs_address = self.redis.get("GcsServerAddress").decode("utf-8")
gcs_channel = grpc.insecure_channel(gcs_address)
options = (("grpc.enable_http_proxy", 0), )
gcs_channel = grpc.insecure_channel(gcs_address, options=options)
self.gcs_node_resources_stub = \
gcs_service_pb2_grpc.NodeResourceInfoGcsServiceStub(gcs_channel)