kaffa 18d0126b15 fix: Improve consistency and add rollback support
1. haproxy_add_servers - disk-first pattern
   - Save ALL servers to config FIRST
   - Then update HAProxy
   - Rollback all on unexpected error
   - Rollback failed slots individually

2. remove_domain_from_config - file locking
   - Add fcntl.LOCK_EX for consistency with other config ops
   - Prevents race conditions during concurrent access

3. haproxy_add_domain - rollback on HAProxy failure
   - Wrap HAProxy map update in try/except
   - Rollback map file if HAProxy command fails
   - Rollback server config if server setup fails

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 14:03:31 +00:00
2026-02-01 11:37:06 +00:00
Description
HAProxy Dynamic Load Balancer Management with MCP Interface
MIT 302 KiB
Languages
Python 99.8%
Dockerfile 0.2%