Weaviate RAFT Heartbeat Timeout and Leader Elections
Quick answer
Heartbeat timeouts and repeated elections usually mean resource pressure. Raise RAFT_TIMEOUTS_MULTIPLIER and check memory, CPU and network.
Most likely fix: Tune RAFT
How to fix it
Try these in order — the most common fix is first.
1. Tune RAFT
- Raise RAFT_TIMEOUTS_MULTIPLIER (default 5 in 1.31+; try 10 or 15)
- Consider limiting GOMAXPROCS if you have many collections
Did this fix it?2. Fix the underlying pressure
- Check memory, CPU and network connectivity
- The 99999999 port is intentional for nodes outside memberlist, not a separate bug
Did this fix it?
Symptoms
Logs show 'heartbeat timeout reached, starting election'; the cluster flaps leaders; sometimes 'dial tcp: address 99999999: invalid port'.
Why it happens
- Nodes miss heartbeat windows under heavy load or latency
- Memberlist instability from too many collections or network problems
This guide also covers
- weaviate heartbeat timeout reached
- weaviate raft leader election
- weaviate invalid port 99999999
Still not working?
If Weaviate keeps failing, you're not alone. See every Weaviate problem users report or the alternatives people switch to.
Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.
Talk to usThe same problem in other apps
Other Weaviate errors
- Weaviate Out of Memory (OOM Killed)
- Weaviate Error: Vector Lengths Don't Match
- Weaviate gRPC Deadline Exceeded Error
- Weaviate Batch Import Errors and Failed Objects
- Weaviate 'Memory Pressure: Cannot Init Shard' Error
- Weaviate Stuck on 'Schema Catching Up' at Startup
- How to Cancel Weaviate Cloud and Avoid Charges