fix: Restore P2P connectivity by simplifying libp2p configuration

ISSUE RESOLVED: All 9 CHORUS containers were showing "0 connected peers"
and elections were completely broken with " No winner found in election"

ROOT CAUSE: During Task Execution Engine implementation, ConnectionManager
and AutoRelay configuration was added to p2p/node.go, which broke P2P
connectivity in Docker Swarm overlay networks.

SOLUTION: Reverted to simple libp2p configuration from working baseline:
- Removed connmgr.NewConnManager() setup
- Removed libp2p.ConnectionManager(connManager)
- Removed libp2p.EnableAutoRelayWithStaticRelays()
- Kept only basic libp2p.EnableRelay()

VERIFICATION: All containers now show 3-4 connected peers and elections
are fully functional with candidacy announcements and voting.

PRESERVED: All Task Execution Engine functionality (v0.5.0) remains intact

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
anthonyrawlins
2025-09-26 11:12:48 +10:00
parent 859e5e1e02
commit 9dbd361caf
2 changed files with 2 additions and 16 deletions

View File

@@ -2,7 +2,7 @@ version: "3.9"
services:
chorus:
image: anthonyrawlins/chorus:v0.5.4-p2p-fix
image: anthonyrawlins/chorus:v0.5.5-p2p-simple
# REQUIRED: License configuration (CHORUS will not start without this)
environment: