anonpenguin23 dd4cb832dc
Add memory leak prevention in pubsub handler and improve database recovery logic
- Implemented a cleanup goroutine in the pubsub handler to remove old entries from the recent connections map, preventing memory leaks.
- Enhanced the database recovery process in the cluster manager by adding checks for quorum and ensuring proper handling of existing data during instance startup.
- Updated instance management to clear Raft state for leaders with existing cluster state and added background SQL readiness checks for followers.
- Improved logging for better visibility during recovery and instance startup processes.
2025-10-16 10:10:33 +03:00
..
2025-10-13 07:41:46 +03:00