This commit is contained in:
parent
e38c99acd6
commit
efddea11ca
26 changed files with 42 additions and 42 deletions
|
|
@ -113,7 +113,7 @@ services:
|
|||
# Cgroup configuration
|
||||
# stress-ng-cpu is the worker process name for CPU stress
|
||||
# stress-ng-vm is the worker process name for memory stress
|
||||
CGROUP_PROCESS_MAP: '{"stress-ng-cpu":"cpu-stress","stress-ng-vm":"mem-stress","dd":"io-stress","resource-collec":"collector"}'
|
||||
CGROUP_PROCESS_MAP: '{"stress-ng-cpu":"cpu-stress","stress-ng-vm":"mem-stress","dd":"io-stress","sizer":"collector"}'
|
||||
CGROUP_LIMITS: '{"cpu-stress":{"cpu":"1","memory":"128Mi"},"mem-stress":{"cpu":"500m","memory":"256Mi"},"io-stress":{"cpu":"500m","memory":"128Mi"},"collector":{"cpu":"200m","memory":"64Mi"}}'
|
||||
deploy:
|
||||
resources:
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ services:
|
|||
environment:
|
||||
# Map unique process names to container names
|
||||
# 'cat' runs only in runner, 'sleep' runs only in sidecar
|
||||
CGROUP_PROCESS_MAP: '{"cat":"runner","sleep":"sidecar","resource-collec":"collector"}'
|
||||
CGROUP_PROCESS_MAP: '{"cat":"runner","sleep":"sidecar","sizer":"collector"}'
|
||||
CGROUP_LIMITS: '{"runner":{"cpu":"500m","memory":"256Mi"},"sidecar":{"cpu":"100m","memory":"128Mi"},"collector":{"cpu":"100m","memory":"64Mi"}}'
|
||||
deploy:
|
||||
resources:
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ spec:
|
|||
|
||||
# Resource collector sidecar
|
||||
- name: collector
|
||||
image: ghcr.io/your-org/forgejo-runner-optimiser:latest # Replace with your image
|
||||
image: ghcr.io/your-org/forgejo-runner-sizer:latest
|
||||
args:
|
||||
- --interval=5s
|
||||
- --top=3
|
||||
|
|
@ -121,7 +121,7 @@ spec:
|
|||
|
||||
# Collector
|
||||
- name: collector
|
||||
image: ghcr.io/your-org/forgejo-runner-optimiser:latest # Replace with your image
|
||||
image: ghcr.io/your-org/forgejo-runner-sizer:latest
|
||||
args:
|
||||
- --interval=2s
|
||||
- --top=5
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue