[Core] Pick Up GCS Port From Env Variable (#15097)

This commit is contained in:
Ian Rodney 2021-04-05 13:57:55 -07:00 committed by GitHub
parent 6269140ef8
commit c1bffc2784
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -208,6 +208,10 @@ class Node:
if head:
ray_params.update_if_absent(num_redis_shards=1)
gcs_server_port = os.getenv(
ray_constants.GCS_PORT_ENVIRONMENT_VARIABLE)
if gcs_server_port:
ray_params.update_if_absent(gcs_server_port=gcs_server_port)
self._webui_url = None
else:
self._webui_url = (

View file

@ -234,3 +234,5 @@ MAX_INT64_VALUE = 9223372036854775807
# Object Spilling related constants
DEFAULT_OBJECT_PREFIX = "ray_spilled_objects"
GCS_PORT_ENVIRONMENT_VARIABLE = "RAY_GCS_SERVER_PORT"