Skip to content

Commit

Permalink
Resource request and limits
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianZaccaria committed Oct 5, 2023
1 parent b4aee3a commit 24c16a8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 19 deletions.
16 changes: 8 additions & 8 deletions src/codeflare_sdk/templates/base-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@ spec:
custompodresources:
- replicas: 1
requests:
cpu: 2
memory: 8G
cpu: 1
memory: 4G
nvidia.com/gpu: 0
limits:
cpu: 2
memory: 8G
cpu: 1
memory: 4G
nvidia.com/gpu: 0
- replicas: 3
requests:
cpu: 2
memory: 12G
cpu: 1
memory: 4G
nvidia.com/gpu: 1
limits:
cpu: 2
memory: 12G
cpu: 1
memory: 4G
nvidia.com/gpu: 1
generictemplate:
# This config demonstrates KubeRay's Ray autoscaler integration.
Expand Down
Binary file modified tests/e2e/codeflare_sdk-0.0.0.dev0-py3-none-any.whl
Binary file not shown.
24 changes: 13 additions & 11 deletions tests/e2e/mnist_raycluster_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,19 @@

namespace = sys.argv[1]

cluster = Cluster(ClusterConfiguration(
name='mnist',
namespace=namespace,
num_workers=1,
min_cpus='500m',
max_cpus=1,
min_memory=0.5,
max_memory=1,
num_gpus=0,
instascale=False,
))
cluster = Cluster(
ClusterConfiguration(
name="mnist",
namespace=namespace,
num_workers=1,
min_cpus="500m",
max_cpus=1,
min_memory=0.5,
max_memory=1,
num_gpus=0,
instascale=False,
)
)

cluster.up()

Expand Down

0 comments on commit 24c16a8

Please sign in to comment.