Skip to content

[release] updating timeseries example deplock - #59273

Closed
elliot-barn wants to merge 3 commits into
masterfrom
elliot-barn/e2e-timeseries-deplocks
Closed

elliot-barn wants to merge 3 commits into
masterfrom
elliot-barn/e2e-timeseries-deplocks

Conversation

@elliot-barn

@elliot-barn elliot-barn commented Dec 8, 2025 •

Copy link
Copy Markdown
Collaborator

creating dependency set for e2e timeseries release test

Successful release test: https://buildkite.com/ray-project/release/builds/71282#

@elliot-barn
elliot-barn requested review from a team as code owners December 8, 2025 21:23

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a dependency set for the e2e-timeseries release test, moving from a manually managed list of dependencies in a shell script to a locked dependency file. This is a good improvement for reproducibility.

My review has identified a couple of areas for improvement:

  • A potential CUDA version mismatch in the test configuration that could cause runtime failures.
  • A minor naming inconsistency in the new depset configuration file that could affect maintainability.

Details and suggestions are provided in the comments below.

@@ -4558,6 +4558,7 @@
byod:
type: cu123

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

There's a potential CUDA version mismatch here. The byod.type is set to cu123, which determines the base image, but the python_depset is built for cu128. This could lead to runtime errors. Please align the CUDA versions. Based on the changes in ci/raydepsets/configs/examples.depsets.yaml, it seems the intention is to use cu128.

      type: cu128

- cu128

depsets:
- name: subset_rayllm_depset_${PYTHON_VERSION}_${CUDA_CODE}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The name subset_rayllm_depset_${PYTHON_VERSION}_${CUDA_CODE} is a bit misleading as this dependency set is for the e2e-timeseries example, not for rayllm. To improve clarity and maintainability, consider renaming it to reflect its actual purpose, for example e2e_timeseries_depset_${PYTHON_VERSION}_${CUDA_CODE}.

  - name: e2e_timeseries_depset_${PYTHON_VERSION}_${CUDA_CODE}

@ray-gardener ray-gardener Bot added data Ray Data-related issues release-test release test labels Dec 9, 2025

@aslonnie aslonnie left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the context for this change? is this related to python version upgrade?

pyyaml
s3fs
nbformat
nbformat No newline at end of file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this change?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI autocorrect probably. Just removed a trailing space

@aslonnie

aslonnie commented Dec 9, 2025

Copy link
Copy Markdown
Contributor

test seems failing?

Signed-off-by: elliot-barn <[email protected]>
abrarsheikh pushed a commit that referenced this pull request Feb 10, 2026
## Why

Ray Serve's built-in Python proxy becomes a bottleneck at high request
rates. HAProxy is a mature, C-based load balancer that can handle
significantly more concurrent connections with lower latency.

## What

Adds an opt-in HAProxy mode (`RAY_SERVE_ENABLE_HA_PROXY=1`, disabled by
default) that replaces the default Serve proxy with an HAProxy
subprocess managed by a Ray actor.

**Architecture:**
- `HAProxyManager` (Ray actor, `num_cpus=0`) sits on the control path
only — it receives routing updates via long poll (`TARGET_GROUPS`
namespace) and translates them into HAProxy config reloads
- `HAProxyApi` manages the HAProxy subprocess lifecycle, including
graceful reloads via `SO_REUSEPORT` to minimize packet loss during
config changes
- Live traffic flows through the HAProxy subprocess directly, not
through any Python actor
- Enabling HAProxy implicitly enables Direct Ingress (replicas receive
traffic directly from HAProxy)

**Key files:** `haproxy.py` (manager actor + subprocess wrapper),
`haproxy_templates.py` (config generation), modifications to
`controller.py` (target group broadcasting), `long_poll.py` (new
`TARGET_GROUPS` namespace), `default_impl.py` (proxy class selection)

**Docker:** HAProxy 2.8.12 is built from source in a multi-stage Docker
build (added to `serve.build.Dockerfile` and `ray/Dockerfile`)

## Test plan

All tests require `RAY_SERVE_ENABLE_HA_PROXY=1` and the HAProxy binary:
- `test_haproxy.py` — core lifecycle, config reload, draining,
multi-node
- `test_haproxy_api.py` — subprocess management, stats socket, graceful
reload
- `test_metrics_haproxy.py` — HAProxy metrics export via Prometheus
endpoint
- `test_controller_haproxy.py` — unit tests for controller integration

CI results (build #59273): 3/4 targets passed, `test_metrics_haproxy`
was flaky on first attempt (metrics timing issue in
`test_proxy_metrics_http_status_code_is_error`), passed on retry.

---------

Signed-off-by: Seiji Eicher <[email protected]>
ans9868 pushed a commit to ans9868/ray that referenced this pull request Feb 18, 2026
## Why

Ray Serve's built-in Python proxy becomes a bottleneck at high request
rates. HAProxy is a mature, C-based load balancer that can handle
significantly more concurrent connections with lower latency.

## What

Adds an opt-in HAProxy mode (`RAY_SERVE_ENABLE_HA_PROXY=1`, disabled by
default) that replaces the default Serve proxy with an HAProxy
subprocess managed by a Ray actor.

**Architecture:**
- `HAProxyManager` (Ray actor, `num_cpus=0`) sits on the control path
only — it receives routing updates via long poll (`TARGET_GROUPS`
namespace) and translates them into HAProxy config reloads
- `HAProxyApi` manages the HAProxy subprocess lifecycle, including
graceful reloads via `SO_REUSEPORT` to minimize packet loss during
config changes
- Live traffic flows through the HAProxy subprocess directly, not
through any Python actor
- Enabling HAProxy implicitly enables Direct Ingress (replicas receive
traffic directly from HAProxy)

**Key files:** `haproxy.py` (manager actor + subprocess wrapper),
`haproxy_templates.py` (config generation), modifications to
`controller.py` (target group broadcasting), `long_poll.py` (new
`TARGET_GROUPS` namespace), `default_impl.py` (proxy class selection)

**Docker:** HAProxy 2.8.12 is built from source in a multi-stage Docker
build (added to `serve.build.Dockerfile` and `ray/Dockerfile`)

## Test plan

All tests require `RAY_SERVE_ENABLE_HA_PROXY=1` and the HAProxy binary:
- `test_haproxy.py` — core lifecycle, config reload, draining,
multi-node
- `test_haproxy_api.py` — subprocess management, stats socket, graceful
reload
- `test_metrics_haproxy.py` — HAProxy metrics export via Prometheus
endpoint
- `test_controller_haproxy.py` — unit tests for controller integration

CI results (build ray-project#59273): 3/4 targets passed, `test_metrics_haproxy`
was flaky on first attempt (metrics timing issue in
`test_proxy_metrics_http_status_code_is_error`), passed on retry.

---------

Signed-off-by: Seiji Eicher <[email protected]>
Signed-off-by: Adel Nour <[email protected]>
Aydin-ab pushed a commit to kunling-anyscale/ray that referenced this pull request Feb 20, 2026
## Why

Ray Serve's built-in Python proxy becomes a bottleneck at high request
rates. HAProxy is a mature, C-based load balancer that can handle
significantly more concurrent connections with lower latency.

## What

Adds an opt-in HAProxy mode (`RAY_SERVE_ENABLE_HA_PROXY=1`, disabled by
default) that replaces the default Serve proxy with an HAProxy
subprocess managed by a Ray actor.

**Architecture:**
- `HAProxyManager` (Ray actor, `num_cpus=0`) sits on the control path
only — it receives routing updates via long poll (`TARGET_GROUPS`
namespace) and translates them into HAProxy config reloads
- `HAProxyApi` manages the HAProxy subprocess lifecycle, including
graceful reloads via `SO_REUSEPORT` to minimize packet loss during
config changes
- Live traffic flows through the HAProxy subprocess directly, not
through any Python actor
- Enabling HAProxy implicitly enables Direct Ingress (replicas receive
traffic directly from HAProxy)

**Key files:** `haproxy.py` (manager actor + subprocess wrapper),
`haproxy_templates.py` (config generation), modifications to
`controller.py` (target group broadcasting), `long_poll.py` (new
`TARGET_GROUPS` namespace), `default_impl.py` (proxy class selection)

**Docker:** HAProxy 2.8.12 is built from source in a multi-stage Docker
build (added to `serve.build.Dockerfile` and `ray/Dockerfile`)

## Test plan

All tests require `RAY_SERVE_ENABLE_HA_PROXY=1` and the HAProxy binary:
- `test_haproxy.py` — core lifecycle, config reload, draining,
multi-node
- `test_haproxy_api.py` — subprocess management, stats socket, graceful
reload
- `test_metrics_haproxy.py` — HAProxy metrics export via Prometheus
endpoint
- `test_controller_haproxy.py` — unit tests for controller integration

CI results (build ray-project#59273): 3/4 targets passed, `test_metrics_haproxy`
was flaky on first attempt (metrics timing issue in
`test_proxy_metrics_http_status_code_is_error`), passed on retry.

---------

Signed-off-by: Seiji Eicher <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data Ray Data-related issues release-test release test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants