Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 1K and 5K RayCluster/RayJob scalability test results #2218

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

andrewsykim
Copy link
Collaborator

Why are these changes needed?

Per #2069, adds 1K and 5K RayCluster / RayJob test results

Related issue number

#2069

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • This PR is not tested :(

@andrewsykim
Copy link
Collaborator Author

@kevin85421

- |
#!/bin/sh

ray job logs $RAY_JOB_SUBMISSION_ID --address=http://$RAY_DASHBOARD_ADDRESS --follow || \
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is a temporary workaroud until ray job submit doesn't error on already existing submission IDs

apiVersion: apps/v1
kind: DaemonSet
metadata:
name: ray-image-preloader
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

For 1K and 5K tests, a lot of time was spent on pulling Ray images so I added pre-loader daemonset that runs before the tests

@kevin85421 kevin85421 self-assigned this Jul 3, 2024
Copy link
Member

@kevin85421 kevin85421 left a comment

Choose a reason for hiding this comment

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

Great! Would you mind adding a README to briefly document the benchmark results we have? Thanks!

@@ -0,0 +1,17 @@
#!/bin/bash
Copy link
Member

Choose a reason for hiding this comment

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

Both 1000-raycluster and 5000-raycluster directories have wait-for-raycluster.sh. Could we unify them?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah we could, can I do it in a follow-up when we introduce the 10K tests?

command:
- "bash"
- "1000-raycluster/wait-for-rayclusters.sh"
- name: Wait for pods to be running
Copy link
Member

Choose a reason for hiding this comment

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

What does this mean? Does it execute after "Wait for RayClusters ready"? If a RayCluster is "ready", all Pods in the RayCluster should be running and ready. It is a bit weird for me to measure "pods to be running" after RayCluster is ready.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah, this step is not actually waiting for pdos to be ready, it's measuring the WaitForControlledPodsRunning metric, which we capture after waitign for all RayClusters to be ready. I updated the name to better reflect what this is doing.

Method: WaitForControlledPodsRunning
Params:
action: gather
- name: Measure pod startup latency
Copy link
Member

Choose a reason for hiding this comment

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

What is PodStartupLatency?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Now that you mention it, we're probably not that interested in startup latency because it excludes image pull times and init containers. I'll remove this in a follow-up PR

kind: RayCluster
labelSelector: app.kubernetes.io/created-by = kuberay-operator
operationTimeout: 120s
- Identifier: JobLifecycleLatency
Copy link
Member

Choose a reason for hiding this comment

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

What does JobLifecycleLatency mean? Does it refer to the submitter K8s Job?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, it's measuring time for Job to complete. In our case it measures submitter job time to completion, which roughly represents how long the training job took to complete

@kevin85421
Copy link
Member

@andrewsykim
Copy link
Collaborator Author

Great! Would you mind adding a README to briefly document the benchmark results we have? Thanks!

I updated the README with some references on how to understand the results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants