How does the max_concurrent option in loki querier work?

Hi, It says

# The maximum number of queries that can be simultaneously processed by the
# querier.
# CLI flag: -querier.max-concurrent
[max_concurrent: <int> | default = 4]

but I would like to know what should be taken into account to specify this value appropriately.

For example, if I have a query to call 7 days of logs, and split_queries_by_interval is 1h, can I assume that the fastest value I can query is 168(24 * 7)?

I also wonder if max_concurrent is related to the number of CPU cores.

I hope you can help me to understand correctly.

1 Like

I could be wrong, but I believe this roughly coincides with the number of CPU you have on your querier pod / container.