scylladb / seastar

High performance server-side application framework
http://seastar.io
Apache License 2.0
8.38k stars 1.55k forks source link

sharded.hh: add invoke_on variant for a shard range #2449

Closed tomershafir closed 1 month ago

tomershafir commented 1 month ago

Add a convenient method to invoke a function on a range of shards, to have better support for the cold control path on more complex compute models like shard groups for different tasks. A workload can benefit from such a model if inter-task cooperation is better when grouping from perf and QoS perspectives, for example. Or a computation requires a only a subset of shards due to internal concurrency limits.

tomershafir commented 1 month ago

@avikivity changed to std::ranges::range