Skip to content

Commit

Permalink
Add some new flags for query and query frontend
Browse files Browse the repository at this point in the history
Signed-off-by: Donny Xia <donny@anthropic.com>
  • Loading branch information
Shell32-Natsu committed Jan 23, 2025
1 parent a28d8ac commit 98dafe4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ We use *breaking* word for marking changes that are not backward compatible (rel
- [#308](https://github.com/thanos-io/kube-thanos/pull/308) Recive: add store limits flags
- [#310](https://github.com/thanos-io/kube-thanos/pull/310) Ruler: Add host anti-affinity to ruler
- [#313](https://github.com/thanos-io/kube-thanos/pull/313) Add per-container SecurityContext
- [#329](https://github.com/thanos-io/kube-thanos/pull/329) Query: Add some new flags for query and query frontend

### Fixed

Expand Down
4 changes: 4 additions & 0 deletions jsonnet/kube-thanos/kube-thanos-query-frontend.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ local defaults = {
},
tracing: {},
extraEnv: [],
labelsMaxQueryParallelism: 14,
queryRangeMaxQueryParallelism: 14,

memcachedDefaults+:: {
config+: {
Expand Down Expand Up @@ -169,6 +171,8 @@ function(params) {
'--query-range.max-retries-per-request=%d' % tqf.config.maxRetries,
'--labels.max-retries-per-request=%d' % tqf.config.maxRetries,
'--query-frontend.log-queries-longer-than=%s' % tqf.config.logQueriesLongerThan,
'--labels.max-query-parallelism=%d' % tqf.config.labelsMaxQueryParallelism,
'--query-range.max-query-parallelism=%d' % tqf.config.queryRangeMaxQueryParallelism,
] + (
if std.length(tqf.config.queryRangeCache) > 0 then [
'--query-range.response-cache-config=' + std.manifestYamlDoc(
Expand Down
4 changes: 4 additions & 0 deletions jsonnet/kube-thanos/kube-thanos-query.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ local defaults = {
resources: {},
queryTimeout: '',
lookbackDelta: '',
maxConcurrent: 20,
maxConcurrentSelect: 4,
ports: {
grpc: 10901,
http: 9090,
Expand Down Expand Up @@ -128,6 +130,8 @@ function(params) {
'--http-address=0.0.0.0:%d' % tq.config.ports.http,
'--log.level=' + tq.config.logLevel,
'--log.format=' + tq.config.logFormat,
'--query.max-concurrent=%d' % tq.config.maxConcurrent,
'--query.max-concurrent-select=%d' % tq.config.maxConcurrentSelect,
] + [
'--query.replica-label=%s' % labelName
for labelName in tq.config.replicaLabels
Expand Down

0 comments on commit 98dafe4

Please sign in to comment.