t3-migrate-idle: systemd oneshot + overnight timer (01:00-05:40, /20)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
af9f7be297
commit
3cf09a0fe3
2 changed files with 18 additions and 0 deletions
8
scripts/t3-migrate-idle.service
Normal file
8
scripts/t3-migrate-idle.service
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
[Unit]
|
||||||
|
Description=t3 idle migrator — restart deferred t3-serve instances onto the current binary when idle
|
||||||
|
Documentation=https://forgejo.viktorbarzin.me/viktor/infra/src/branch/master/docs/plans/2026-06-21-t3-idle-migrate-design.md
|
||||||
|
After=network.target t3-dispatch.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/usr/local/bin/t3-migrate-idle
|
||||||
10
scripts/t3-migrate-idle.timer
Normal file
10
scripts/t3-migrate-idle.timer
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Overnight drain of t3-autoupdate deferrals (idle-gated t3-serve migration)
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=*-*-* 01..05:00/20
|
||||||
|
RandomizedDelaySec=120
|
||||||
|
Persistent=false
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
||||||
Loading…
Add table
Add a link
Reference in a new issue