apache / horaedb

Apache HoraeDB (incubating) is a high-performance, distributed, cloud native time-series database.
https://horaedb.apache.org
Apache License 2.0
2.64k stars 207 forks source link

Auto refresh route cache #893

Open ShiKaiWi opened 1 year ago

ShiKaiWi commented 1 year ago

Describe This Problem

Currently, the route information in the CeresDB instance is configured with a TTL for auto refreshing. And here are some problems of this mechanism:

Proposal

Replace the TTL mechanism with auto refreshing with Shard Version:

Additional Context

No response

ShiKaiWi commented 1 year ago

The problem is that the route cache used for proxy is involved with all the tables of the whole cluster, so we can't cache routing information of all the tables.