1.4 KiB
1.4 KiB
Plan: Implement TTL Heartbeat Service Registration (implement_ttl_heartbeat)
Phase 1: Container Environment Preparation [x] [checkpoint: 51b8fce]
- Task: Update
Dockerfileto installcurlandjq(f7fe258) - Task: Verify
litefs.ymlpoints toentrypoint.sh(should already be correct) (verified) - Task: Conductor - User Manual Verification 'Phase 1: Container Environment Preparation' (Protocol in workflow.md)
Phase 2: Script Implementation [x] [checkpoint: 139016f]
- Task: Refactor
entrypoint.shwith the TTL Heartbeat logic (d977301)- Implement
register_servicewith TTL check definition - Implement
pass_ttlloop - Implement robust
stop_appand signal trapping - Ensure correct Primary/Replica detection logic (LiteFS 0.5: Primary = No
.primaryfile)
- Implement
- Task: Conductor - User Manual Verification 'Phase 2: Script Implementation' (Protocol in workflow.md)
Phase 3: Deployment and Verification [ ]
- [~] Task: Commit changes and push to Gitea to trigger build
- Task: Monitor Gitea build completion
- Task: Deploy updated Nomad job (forcing update if necessary)
- Task: Verify "Clean" state in Consul (only one primary registered)
- Task: Verify Failover/Stop behavior (immediate deregistration vs TTL expiry)
- Task: Conductor - User Manual Verification 'Phase 3: Deployment and Verification' (Protocol in workflow.md)