Skip to content

tuning default read load - #37

Open
Haleygo wants to merge 1 commit into
mainfrom
tune-default-read-load
Open

tuning default read load#37
Haleygo wants to merge 1 commit into
mainfrom
tune-default-read-load

Conversation

@Haleygo

@Haleygo Haleygo commented Sep 4, 2026

Copy link
Copy Markdown
Member

From the resource usage in our sandbox, I think the concurrency could be lower to achieve better query load balancing for most test cases.
image

@Haleygo
Haleygo requested a review from makasim September 4, 2026 03:25
@makasim

makasim commented Sep 4, 2026

Copy link
Copy Markdown
Member

Memory is still quite spiky. Also, reducing concurrency means less parallelism on vmselect side; hence, we might miss some concurrency-related issues.

@Haleygo

Haleygo commented Sep 4, 2026

Copy link
Copy Markdown
Member Author

@makasim

Memory is still quite spiky.

That seems inevitable in the sandbox from what I can see, since the query rate is spiky—there is no guarantee that queries can spread evenly—and each query imposes a different load.
The point of this pull request is to reduce those spikes by lowering concurrent queries, but setting concurrency too low could lead to missed evaluations for the nodeexporter group.

Also, reducing concurrency means less parallelism on vmselect side; hence, we might miss some concurrency-related issues.

I’m not sure which concurrency-related issue you’re referring to, but I don’t think that is the point of the prometheus-benchmark repo. I also don’t think our sandbox would have such an issue, since we provide vmselect with sufficient resources and the load is stable.

This change reduces spikes that could lead to OOMs or concurrentLimitExceeded errors in smaller setups. It improves benchmark performance; you can see that both average memory usage and query latency have dropped, which aligns with my understanding of the benchmark’s purpose.

@makasim

makasim commented Sep 4, 2026

Copy link
Copy Markdown
Member

I’m not sure which concurrency-related issue you’re referring to

Data races mostly, nothing in particular; just a higher chance for the code under benchmark to be exercised concurrently

@makasim

makasim commented Sep 4, 2026

Copy link
Copy Markdown
Member

What about 2,2 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants