Skip to content

Commit c1bbd3a

Browse files
committed
fix env.example
1 parent e109913 commit c1bbd3a

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.env.example

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,11 @@ export P2P_FILTER_ANNOUNCED_ADDRESSES=
6666

6767
## compute
6868
# Each environment defines its own resources (CPU, RAM, disk, GPUs) with full configuration.
69-
# GPUs, RAM, and disk are shared-exclusive: visible in multiple envs, inUse tracked globally.
70-
# CPU cores are hard-partitioned per environment via cpuCores (e.g., envA gets cores 0-9, envB gets 10-19).
71-
# If a job on envA uses gpu0, it shows as in-use on envB too.
69+
# CPU, RAM, and disk are per-env exclusive: inUse tracked only within the environment where the job runs.
70+
# A global check ensures the aggregate usage across all environments does not exceed physical capacity.
71+
# GPUs are shared-exclusive: if a job on envA uses gpu0, it shows as in-use on envB too.
72+
# CPU cores can be hard-partitioned per environment via cpuCores (e.g., envA gets cores 0-3, envB gets 4-7).
73+
# CPU and RAM defaults are auto-detected from the system when not configured.
7274
# export DOCKER_COMPUTE_ENVIRONMENTS='[{"socketPath":"/var/run/docker.sock","environments":[{"id":"envA","cpuCores":[0,1,2,3],"storageExpiry":604800,"maxJobDuration":3600,"minJobDuration":60,"resources":[{"id":"cpu","total":4,"max":4,"min":1,"type":"cpu"},{"id":"ram","total":16,"max":16,"min":1,"type":"ram"},{"id":"disk","total":500,"max":500,"min":10,"type":"disk"},{"id":"gpu0","total":1,"max":1,"min":0,"type":"gpu","init":{"deviceRequests":{"Driver":"nvidia","DeviceIDs":["0"],"Capabilities":[["gpu"]]}}}],"fees":{"1":[{"feeToken":"0x123","prices":[{"id":"cpu","price":1},{"id":"ram","price":0.1},{"id":"disk","price":0.01},{"id":"gpu0","price":5}]}]}}]}]'
7375
export DOCKER_COMPUTE_ENVIRONMENTS=
7476

0 commit comments

Comments
 (0)