KaymeKaydex / go-vshard-router

go vshard-router implementation for tarantool
MIT License
21 stars 3 forks source link

Set default DiscoveryTimeout to a safe value. #60

Closed nurzhan-saktaganov closed 2 months ago

nurzhan-saktaganov commented 2 months ago

In the current implementation, DiscoveryTimeout = 0 means there is no pause between DiscoveryAllBuckets events. It seems to be a dangerous behavior that eats a lot of CPU and generates a lot of requests to vshard storages. Let's set the default value, for example, to 1 min, which is less dangerous.