Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use new ruler storage config and enable API compression #306

Merged
merged 2 commits into from
May 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* [CHANGE] The default dashboards config now display panels for the Cortex blocks storage only. If you're running Cortex chunks storage, please change `storage_engine` config to `['chunks']` or `['chunks', 'blocks']` if running both. #302
* [CHANGE] Enabled index-header lazy loading in store-gateways. #303
* [CHANGE] Replaced the deprecated CLI flag `-limits.per-user-override-config` (removed in Cortex 1.9) with `-runtime-config.file`. #304
* [CHANGE] Ruler: changed ruler config to use the new storage config. #306
* [CHANGE] Ruler: enabled API response compression. #306
* [FEATURE] Added "Cortex / Rollout progress" dashboard. #289 #290
* [FEATURE] Added support for using query-scheduler component, which moves the queue out of query-frontend, and allows scaling up of query-frontend component. #295
* [ENHANCEMENT] Added `newCompactorStatefulSet()` function to create a custom statefulset for the compactor. #287
Expand Down
9 changes: 5 additions & 4 deletions cortex/config.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -260,20 +260,21 @@

rulerClientConfig:
{
'ruler.storage.type': $._config.ruler_client_type,
'ruler-storage.backend': $._config.ruler_client_type,
} +
{
configdb: {
configs_api_url: 'config.%s.svc.cluster.local' % $._config.namespace,
},
gcs: {
'ruler.storage.gcs.bucketname': $._config.ruler_gcs_bucket_name,
'ruler-storage.gcs.bucket-name': $._config.ruler_gcs_bucket_name,
},
s3: {
'ruler.storage.s3.url': 'https://%s/%s' % [$._config.aws_region, $._config.ruler_s3_bucket_name],
'ruler-storage.s3.region': $._config.aws_region,
'ruler-storage.s3.bucket-name': $._config.ruler_s3_bucket_name,
},
'local': {
'ruler.storage.local.directory': $._config.ruler_local_directory,
'ruler-storage.local.directory': $._config.ruler_local_directory,
},
}[$._config.ruler_client_type],

Expand Down
1 change: 1 addition & 0 deletions cortex/ruler.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// Alertmanager configs
'ruler.alertmanager-url': 'http://alertmanager.%s.svc.cluster.local/alertmanager' % $._config.namespace,
'experimental.ruler.enable-api': true,
'api.response-compression-enabled': true,

// Ring Configs
'ruler.enable-sharding': true,
Expand Down