Skip to content
5 changes: 0 additions & 5 deletions python/ray/serve/_private/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,11 +437,6 @@
"RAY_SERVE_MIN_HANDLE_METRICS_TIMEOUT_S", 10.0
)

# Feature flag to always run a proxy on the head node even if it has no replicas.
RAY_SERVE_ALWAYS_RUN_PROXY_ON_HEAD_NODE = get_env_bool(
"RAY_SERVE_ALWAYS_RUN_PROXY_ON_HEAD_NODE", "1"
)

# Default is 2GiB, the max for a signed int.
RAY_SERVE_GRPC_MAX_MESSAGE_SIZE = get_env_int(
"RAY_SERVE_GRPC_MAX_MESSAGE_SIZE", (2 * 1024 * 1024 * 1024) - 1
Expand Down
5 changes: 0 additions & 5 deletions python/ray/serve/_private/proxy_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
PROXY_HEALTH_CHECK_TIMEOUT_S,
PROXY_HEALTH_CHECK_UNHEALTHY_THRESHOLD,
PROXY_READY_CHECK_TIMEOUT_S,
RAY_SERVE_ALWAYS_RUN_PROXY_ON_HEAD_NODE,
RAY_SERVE_ENABLE_TASK_EVENTS,
REPLICA_STARTUP_SHUTDOWN_LATENCY_BUCKETS_MS,
SERVE_LOGGER_NAME,
Expand Down Expand Up @@ -691,10 +690,6 @@ def update(self, proxy_nodes: Set[NodeId] = None) -> Set[str]:
if proxy_nodes is None:
proxy_nodes = set()

# Ensure head node always has a proxy (unless FF'd off).
if RAY_SERVE_ALWAYS_RUN_PROXY_ON_HEAD_NODE:
proxy_nodes.add(self._head_node_id)

target_nodes = self._get_target_nodes(proxy_nodes)
target_node_ids = {node_id for node_id, _, _ in target_nodes}

Expand Down