-
Notifications
You must be signed in to change notification settings - Fork 42
Add neuron-device-plugin load test to the test bed #499
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
Open
shvbsle
wants to merge
14
commits into
awslabs:main
Choose a base branch
from
shvbsle:neuron
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
72ce8b9
add neuron plugin to the test bed
shvbsle 92d1d25
updated installation tasks and load-test tasks
shvbsle f85a86a
integrated neuron installation plugins with the main pipeline
shvbsle 65bcba2
exposed more params in the pipeline
shvbsle 5557936
Set default cl2-neuron-pods value in pipeline definition. Emitted neuron
shvbsle 9c363db
reordered tasks
shvbsle c22ef1a
increased threshhold for pod startup
shvbsle 697fcd8
changed defaults for better usability
shvbsle 88c8b1f
sycned with main and resolved conflicts
shvbsle 0affed3
moved default values from task to pipeline
shvbsle a661b0c
Added a verification to ensure that all the neuron-device-plugin
shvbsle 1c040a1
moved defaults to task definition and improvided pipeline defaults
shvbsle 733fcd5
removed unused param from generate-neuron-load
shvbsle f99d4f0
removed arbitrary default node value for generate-neuron-load task
shvbsle File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{{$uniformQps := DefaultParam .CL2_UNIFORM_QPS 500}} | ||
{{$neuronResourcesPerPod := DefaultParam .CL2_NEURON_RESOURCES_PER_POD 64}} | ||
{{$neuronPods := DefaultParam .CL2_NEURON_PODS .Nodes}} | ||
|
||
name: neuron-workers | ||
namespace: | ||
number: 1 | ||
tuningSets: | ||
- name: UniformQPS | ||
qpsLoad: | ||
qps: {{$uniformQps}} | ||
|
||
steps: | ||
- name: Start measurements | ||
measurements: | ||
- Identifier: PodStartupLatency | ||
Method: PodStartupLatency | ||
Params: | ||
action: start | ||
labelSelector: group = neuron-worker | ||
threshold: 60s | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Upstream SLOs is <=5sec. |
||
- name: Create pods | ||
phases: | ||
- namespaceRange: | ||
min: 1 | ||
max: 1 | ||
replicasPerNamespace: {{$neuronPods}} | ||
tuningSet: UniformQPS | ||
objectBundle: | ||
- basename: neuron-worker | ||
objectTemplatePath: pod.yaml | ||
templateFillMap: | ||
Group: neuron-worker | ||
NeuronResources: {{$neuronResourcesPerPod}} | ||
|
||
- name: Wait for pods to be running | ||
measurements: | ||
- Identifier: WaitForRunningPods | ||
Method: WaitForRunningPods | ||
Params: | ||
action: gather | ||
desiredPodCount: {{$neuronPods}} | ||
labelSelector: group = neuron-worker | ||
timeout: 5m | ||
|
||
- name: Measure pod startup latency | ||
measurements: | ||
- Identifier: PodStartupLatency | ||
Method: PodStartupLatency | ||
Params: | ||
action: gather | ||
|
||
- name: Delete pods | ||
phases: | ||
- namespaceRange: | ||
min: 1 | ||
max: 1 | ||
replicasPerNamespace: 0 | ||
tuningSet: UniformQPS | ||
objectBundle: | ||
- basename: neuron-worker | ||
objectTemplatePath: pod.yaml | ||
templateFillMap: | ||
Group: neuron-worker | ||
NeuronResources: {{$neuronResourcesPerPod}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
generateName: neuron-worker- | ||
labels: | ||
group: {{.Group}} | ||
spec: | ||
containers: | ||
- name: main | ||
image: public.ecr.aws/amazonlinux/amazonlinux:2023 | ||
command: | ||
- "sleep" | ||
- "infinity" | ||
resources: | ||
requests: | ||
aws.amazon.com/neuron: "{{.NeuronResources}}" | ||
shvbsle marked this conversation as resolved.
Show resolved
Hide resolved
|
||
limits: | ||
aws.amazon.com/neuron: "{{.NeuronResources}}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have you evaluated if we can leverage https://github.com/kubernetes/perf-tests/blob/master/clusterloader2/testing/scheduler-throughput/config.yaml instead of additional config ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have not. I will take a look and get back to you on that one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cannot directly use that config since the label selectors and default-pod manifest would have to be changed anyway.
I think the current approach of maintaining a separate config for neuron is cleaner and gives us more more control over the load-tests