Linux & Terminali

cgroups (control groups)

Në shqip: cgroups (grupet e kontrollit)

ShpjegimiSQ

cgroups janë veçori e kernel-it që kufizon sa CPU, memorie dhe disk mund të përdorë një grup procesesh. Docker dhe Kubernetes i përdorin kur i thua një kontejneri „maksimumi 512 MB“.

EnglishEN

cgroups are a kernel feature limiting how much CPU, memory and disk a group of processes can use. Docker and Kubernetes use them when you tell a container “512 MB max”.

Si ta mendosh

Si racionet: çdo ekip merr sasinë e vet dhe s'mund të marrë nga të tjerët.

Lexoje në anglisht

Like rations: each team gets its share and can't take from others.

Shembull kodibash

docker run --memory=512m --cpus=1 app
cat /sys/fs/cgroup/memory.max

Terma të lidhur