Files
haproxy-openmanager/backend/utils/agent_scripts
taylanbakircioglu e87e279580 fix: Production-safe heartbeat using temp files for unlimited payload size
PRODUCTION ENHANCEMENT: Handle extremely large stats CSV payloads

IMPROVEMENT OVER PREVIOUS FIX:
- Previous: Temp file for response only
- Now: Temp file for BOTH payload and response
- Reason: Very large payloads (>1MB) still hit argument limits

PRODUCTION SCENARIO:
- Large HAProxy instances with 100+ backends
- Stats CSV can exceed 1MB in production
- curl --data argument hits system limits
- Need temp file for payload itself

SOLUTION:
- Write heartbeat_payload to temp file
- Use curl --data-binary @temp_payload
- Write response to separate temp file
- Read HTTP code and response body
- Cleanup both temp files

BENEFITS:
- Unlimited payload size support
- No argument list limits
- Production-tested and safe
- Backward compatible

FILES CHANGED:
- backend/utils/agent_scripts/linux_install.sh
- backend/utils/agent_scripts/macos_install.sh
- Updated both embedded daemon (Line ~1099) and installer (Line ~2367)
2025-11-17 20:21:12 +03:00
..