Charlie Bini
04/27/2022, 3:23 PMdagsterCloudAgent.resources
on the helm chart, right? how exactly do I edit that and persist that setting across updates?workspace
but there isn't a resources
property theredaniel
04/27/2022, 4:40 PMCharlie Bini
04/27/2022, 6:14 PMextraManifests:
- apiVersion: v1
kind: LimitRange
metadata:
name: default-container-resources
namespace: dagster-cloud
spec:
limits:
- default:
cpu: "250m"
memory: "512Mi"
ephemeral-storage: "10Mi"
defaultRequest:
cpu: "250m"
memory: "512Mi"
ephemeral-storage: "10Mi"
type: Container
daniel
04/27/2022, 6:47 PMkubectl get limitranges)
Charlie Bini
04/27/2022, 7:16 PMName: default-container-resources
Namespace: dagster-cloud
Type Resource Min Max Default Request Default Limit Max Limit/Request Ratio
---- -------- --- --- --------------- ------------- -----------------------
Container memory - - 512Mi 512Mi -
Container cpu - - 250m 250m -
Container ephemeral-storage - - 10Mi 10Mi -
<http://autopilot.gke.io/resource-adjustment|autopilot.gke.io/resource-adjustment>: {"input":{"containers":[{"name":"dagster"}]},"output":{"containers":[{"limits":{"cpu":"500m","ephemeral-storage":"1Gi","memory":"2Gi"},"requests":{"cpu":"500m","ephemeral-storage":"1Gi","memory":"2Gi"},"name":"dagster"}]},"modified":true}
resources:
limits:
cpu: 500m
ephemeral-storage: 1Gi
memory: 2Gi
requests:
cpu: 500m
ephemeral-storage: 1Gi
memory: 2Gi
daniel
04/27/2022, 8:29 PMCharlie Bini
04/27/2022, 8:37 PMdaniel
04/27/2022, 9:26 PMCharlie Bini
04/27/2022, 9:28 PMdaniel
04/27/2022, 9:30 PMCharlie Bini
04/27/2022, 9:31 PMdaniel
04/27/2022, 9:43 PMCharlie Bini
04/28/2022, 12:02 AMdaniel
04/28/2022, 2:56 PMresources
key under workspace
that will apply resource requirements to any pods launched by the agent. For example:
workspace:
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
You can also vary the resource requirements for pods from different code locations by setting config in the Workspace tab. For example:
location_name: test-location
image: dagster/dagster-cloud-template:latest
code_source:
package_name: dagster_cloud_template
container_context:
k8s:
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
Charlie Bini
04/28/2022, 3:22 PMdaniel
04/28/2022, 3:26 PMCharlie Bini
04/28/2022, 3:27 PM