-
-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: init mimas #501
build: init mimas #501
Conversation
This comment was marked as off-topic.
This comment was marked as off-topic.
The script to migrate the state from rhea as found in #!/usr/bin/env bash
NIX_STORE=daemon
FROM=rhea.nixos.org
set -eux
mkdir -p /var/lib/hydra/queue-runner/keys/
mkdir -p /var/lib/hydra/www/keys/
mkdir -p /var/lib/hydra/{build-logs,runcommand-logs}
mkdir -p /nix/var/nix/gcroots/hydra
rsync -avPz "${FROM}":/etc/nix/machines /etc/nix/machines
rsync -avPz "${FROM}":/var/lib/hydra/queue-runner/keys/ /var/lib/hydra/queue-runner/keys
rsync -avPz "${FROM}":/var/lib/hydra/queue-runner/.aws/ /var/lib/hydra/queue-runner/.aws
rsync -avPz "${FROM}":/var/lib/hydra/queue-runner/.ssh/ /var/lib/hydra/queue-runner/.ssh
rsync -avPz "${FROM}":/var/lib/hydra/www/keys/ /var/lib/hydra/www/keys
rsync -avPz "${FROM}":/var/lib/hydra/build-logs/ /var/lib/hydra/build-logs || true
rsync -avPz "${FROM}":/var/lib/hydra/runcommand-logs/ /var/lib/hydra/runcommand-logs || true
rsync -avPz "${FROM}":/nix/var/nix/gcroots/hydra/ /nix/var/nix/gcroots/hydra || true
find /nix/var/nix/gcroots/hydra \( -type l -o -type f \) -print0 \
| while IFS= read -r -d $'\0' file; do
test -e "$file" || echo "/nix/store/$(basename "$file")"
done \
| xargs -P 16 nix-copy-closure --from --gzip --include-outputs --use-substitutes "${FROM}" |
Reformatted the NVME namespaces to use 4k blocks.
nvme-SAMSUNG_MZQL21T9HCJR-00A07_S64GNNFX604905
nvme-SAMSUNG_MZQL21T9HCJR-00A07_S64GNNFX604919
|
ab028e1
to
dc5dcfe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Passes the smell test.
Hydra is now running on mimas. I runtime-masked the hydra services on rhea for now. Will get some sleep and check back tomorrow. |
f9fab7b
to
0adfb7f
Compare
1c88182
to
2c42161
Compare
We currently hold over 430GiB of build logs, which makes up 25% of the total disk space used on mimas.
Our hydra fork has a limit on the number of active build slots, which defaults to the number of threads minus two, so 96-2 = 94. vcunat looked at mimas graphs when we were hitting this limit, and it seemed OK to push more (negligible cpusome PSI).
Alright. There is much to improve still, but the migration looks pretty solid to me. Let's leave rhea around for another week just in case we've missed something and then cancel the contract. |
@@ -93,6 +93,9 @@ in | |||
|
|||
max_concurrent_evals = 1 | |||
|
|||
# increase the number of active compress slots (CPU is 48*2 on mimas) | |||
max_local_worker_threads = 144 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now we had a longer period of "Copying Results" hovering roughly around 130, and PSI kept still very low. So I believe this certainly still isn't a too high value. We'll see over time. So far it's been relatively rare to get so high anyway.
Work in progress configuration for a successor to rhea, because the machine cannot keep up with the compression workload by the large number of builders we employ.
The plan is for an AX162-R at Hetzner.
TODO: