Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix shared counter workload config creation (MystenLabs#18143)
## Description In shared counter workload, when `shared_counter_hotness_factor == 100`, currently no shared counter is created due to the calculation, even though the option doc specifies that when hotness factor is 100, we need to create 1 shared counter and all requests is targeting that counter. ``` // total_shared_counters = max(1, qps * (1.0 - hotness/100.0)) shared_counter_hotness_factor: Vec<u32>, ``` This PR also adds shared deletion workload weight in the total weight calculation in create_workload_builders. ## Test plan How did you test the new or updated feature? --- ## Release notes Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required. For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates. - [ ] Protocol: - [ ] Nodes (Validators and Full nodes): - [ ] Indexer: - [ ] JSON-RPC: - [ ] GraphQL: - [ ] CLI: - [ ] Rust SDK:
- Loading branch information