Commits on Source (7)
-
Georgy Moshkin authored
-
Georgy Moshkin authored
-
Georgy Moshkin authored
-
Georgy Moshkin authored
Before this fix if requesting RPC by an invalid bucket_id we would send an RPC to every replicaset to check if they have such a bucket_id. This is not needed because we know the allowed range.
-
Georgy Moshkin authored
-
Georgy Moshkin authored
-
Georgy Moshkin authored
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.
Showing
- Cargo.lock 1 addition, 0 deletionsCargo.lock
- Cargo.toml 1 addition, 0 deletionsCargo.toml
- Makefile 2 additions, 0 deletionsMakefile
- sbroad/sbroad-core/src/utils.rs 8 additions, 3 deletionssbroad/sbroad-core/src/utils.rs
- src/config.rs 8 additions, 0 deletionssrc/config.rs
- src/lib.rs 1 addition, 0 deletionssrc/lib.rs
- src/plugin/rpc/client.rs 127 additions, 234 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 177 additions, 99 deletionssrc/traft/node.rs
- src/util.rs 27 additions, 0 deletionssrc/util.rs
- src/vshard.rs 39 additions, 4 deletionssrc/vshard.rs
- test/int/test_basics.py 3 additions, 0 deletionstest/int/test_basics.py
- test/int/test_plugin.py 2 additions, 2 deletionstest/int/test_plugin.py
... | ... | @@ -14,6 +14,7 @@ bytes = "1.8" |
chrono = "0.4" | ||
clap = { version = "3.0", features = ["derive", "env"] } | ||
comfy-table = "7.1" | ||
diff = "0.1" | ||
either = "1.13" | ||
file_shred = "1.1" | ||
futures = "0.3" | ||
... | ... |
src/topology_cache.rs
0 → 100644
This diff is collapsed.