perf: introduce TopologyCache
TopologyCache is a collection of deserialized structures with information about cluster topology. This currently includes data from _pico_instance, _pico_replicaset, _pico_tier & _pico_service_route_table. The info is automatically kept up to date with the corresponding system tables. The TopologyCache also caches the immutable info related to the current instance, like instance name, replicaset uuid, etc. From now on we should be reading this data from TopologyCache whenever possible instead of going directly to system tables as we were doing previosly. At the moment only the plugin RPC module has transitioned to using TopologyCache but other modules should be refactored as well. Especially governor.
parent
f4d66cab
No related branches found
No related tags found
Checking pipeline status
Showing
- src/lib.rs 1 addition, 0 deletionssrc/lib.rs
- src/plugin/rpc/client.rs 63 additions, 120 deletionssrc/plugin/rpc/client.rs
- src/schema.rs 8 additions, 1 deletionsrc/schema.rs
- src/storage.rs 9 additions, 0 deletionssrc/storage.rs
- src/topology_cache.rs 729 additions, 0 deletionssrc/topology_cache.rs
- src/traft/node.rs 88 additions, 26 deletionssrc/traft/node.rs
- src/vshard.rs 18 additions, 18 deletionssrc/vshard.rs
Loading
Please register or sign in to comment