apache / kvrocks-controller

Apache Kvrocks Controller is a cluster management tool for Apache Kvrocks.
https://kvrocks.apache.org/
Apache License 2.0
83 stars 41 forks source link

parallel probe nodes give rise to goroutine leak #200

Open greatsharp opened 3 weeks ago

greatsharp commented 3 weeks ago

https://github.com/apache/kvrocks-controller/blob/f3a58b9bb7b26d8137454ffff7b2b1496c81e3b5/controller/cluster.go#L199C4-L228C14

test a scenario, 3000 clusters, 9 node with fake IP address per cluster, continuously report 'Failed to probe the node' error. at this time, goroutines number is more than 380000.

git-hulk commented 2 weeks ago

@greatsharp I didn't quite understand your point, can you elaborate a bit on how it leaks go routines?