mirror of
https://github.com/clearlinux/koji-setup-scripts.git
synced 2026-08-19 04:38:06 +00:00
Automatically determine capacity for kojid
The capacity for kojid should scale according to the number of processing units available because building packages is largely a CPU-bound task. Defaulting to a safe capacity of one-fourth the number of processing units. Signed-off-by: George T Kramer <george.t.kramer@intel.com>
This commit is contained in:
@@ -289,7 +289,8 @@ sudo -u kojiadmin koji add-host "$KOJI_SLAVE_FQDN" i386 x86_64
|
||||
sudo -u kojiadmin koji add-host-to-channel "$KOJI_SLAVE_FQDN" createrepo
|
||||
|
||||
# A note on capacity
|
||||
sudo -u kojiadmin koji edit-host --capacity=16 "$KOJI_SLAVE_FQDN"
|
||||
KOJID_CAPACITY=$(( $(grep -c ^processor /proc/cpuinfo) / 3 ))
|
||||
sudo -u kojiadmin koji edit-host --capacity="$KOJID_CAPACITY" "$KOJI_SLAVE_FQDN"
|
||||
|
||||
# Generate certificates
|
||||
pushd "$KOJI_PKI_DIR"
|
||||
|
||||
Reference in New Issue
Block a user