Open kvoli opened 2 years ago
@kvoli do you intend to merge this ?
@kvoli do you intend to merge this ?
I do intend to merge this. I don't intend to merge within the next 2-3 weeks. I believe I'll have some more time to clean this up after clearing GA blockers then :)
In cases where there is a frequently accessed key span that shifts along the keyspace, cockroachdb often develops hot spots on stores that contain the frontier of this "moving hotkey".
We currently do not have any workloads that are representative of this type of workload, despite it being the source of repeated issues in the wild.
It would be desirable to have a workload to benchmark cockroach against that exhibits these pathological characteristics.
The solution is to add a moving hotkey workload that progresses sequentially up the keyspace.
Specifically, writes should be point writes that progress uniquely up the keyspace with each write. Reads should be scans, that scan back the last X writes.
The configurable variables should be:
If these may be mapped to existing KV workload variables that would be ideal, such as cycle length, concurrency and read ratio.
An a alternative is a more general dyanmic hotkey workload, where the hotspot is determined according to a distribution rather than sequentially moving. Another alternative is to adjust the existing sequential key access generator in KV to allow for reads bounded behind the frontier.
Jira issue: CRDB-16235