Rolling Restarts¶
Restart rninja-cached without disrupting builds.
Single Server¶
Clients will retry automatically.
With Load Balancer¶
- Remove server from pool
- Wait for active requests to complete
- Restart server
- Add back to pool
# Remove from LB
curl -X POST http://lb/servers/cache1/disable
# Wait and restart
sleep 30
systemctl restart rninja-cached
# Re-enable
curl -X POST http://lb/servers/cache1/enable
Client Resilience¶
Clients handle restarts gracefully:
- Auto-retry on connection failure
- Fall back to local cache (
mode=auto) - Reconnect to new server
Best Practices¶
- Use
automode for client resilience - Set reasonable timeouts
- Monitor during restart
- Restart during low-usage periods