-
Notifications
You must be signed in to change notification settings - Fork 63
Cpu and memory limits #651
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
Merged
Merged
Conversation
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
…pk into CPU-and-memory-limits
…pk into CPU-and-memory-limits
…pk into CPU-and-memory-limits
…pk into CPU-and-memory-limits
…pk into CPU-and-memory-limits
Member
|
@FIoannides could you remove diff a/src/xpk/core/kueue.py b/src/xpk/core/kueue.py
--- a/src/xpk/core/kueue.py
+++ b/src/xpk/core/kueue.py
yml_string = topology_yaml + yml_string
- print(yml_string)
tmp = write_tmp_file(yml_string)
command = f'kubectl apply -f {str(tmp)}' |
scaliby
approved these changes
Sep 23, 2025
FIoannides
added a commit
that referenced
this pull request
Sep 24, 2025
* Update .gitignore (#637) * Add golden tests to github actions (#635) * feat: add execution_context * fix: dry run * feat: do not validate deps in dry_run mode * feat: deterministic file names in dry run * build: integrate golden testing with github actions * build: cleanup codeowners (#639) * feat: add more goldens (#640) * build: simplify dependencies on build_test so it runs faster (#642) * Revert "build: simplify dependencies on build_test so it runs faster (#642)" (#644) This reverts commit 1c603d7. * Add cpu and memory limit flags and use them in Kueue configuration (#648) * Add cpu and memory limit flags and use them in Kueue configuration * Remove print line * Release v0.13.0 * Cpu and memory limits (#651) * Add cpu and memory limit flags and use them in Kueue configuration * Remove print line * Add cpu-limit and memory-limit for other types of cluster creation as well * Release v0.13.0 * Remove args from run_command_for_value (#647) * feat: remove args from run_command_for_value * feat: remove redundant args * Golden buddy improvements (#645) * feat: add command to goldens files * feat: improve output of golden_buddy.sh script * feat: colorful git diff --------- Co-authored-by: Konrad Kaim <31181410+scaliby@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Quck fix to allow PI to set memory and CPU limits
Example of command used:
python3 xpk.py cluster create --cluster feidias-cpu-memory-limits --tpu-type=v5litepod-16 --num-slices=1 --spot --zone=europe-west4-b --project=cloud-tpu-multipod-dev --custom-cluster-arguments="--network=isikiric-network --subnetwork=feidias-subnet" --cpu-limit=20 --memory-limit=200G