Repository navigation
[release] updating timeseries example deplock - #59273
elliot-barn wants to merge 3 commits into
Conversation
Signed-off-by: elliot-barn <[email protected]>
There was a problem hiding this comment.
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 | |||
There was a problem hiding this comment.
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} |
There was a problem hiding this comment.
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}
aslonnie
left a comment
There was a problem hiding this comment.
what is the context for this change? is this related to python version upgrade?
| pyyaml | ||
| s3fs | ||
| nbformat | ||
| nbformat No newline at end of file |
There was a problem hiding this comment.
AI autocorrect probably. Just removed a trailing space
|
test seems failing? |
Signed-off-by: elliot-barn <[email protected]>
## 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]>
## 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]>
## 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]>
creating dependency set for e2e timeseries release test
Successful release test: https://buildkite.com/ray-project/release/builds/71282#