Skip to content

Conversation

@FIoannides
Copy link
Collaborator

@FIoannides FIoannides commented Sep 23, 2025

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

@scaliby
Copy link
Member

scaliby commented Sep 23, 2025

@FIoannides could you remove print that was introduced as a part of #648?

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)}'

@FIoannides FIoannides marked this pull request as ready for review September 23, 2025 14:44
@FIoannides FIoannides enabled auto-merge (squash) September 23, 2025 14:59
@FIoannides FIoannides merged commit 386c2c7 into develop Sep 23, 2025
24 checks passed
@FIoannides FIoannides deleted the CPU-and-memory-limits branch September 23, 2025 15:16
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants