Skip to content

Commit eade2a6

Browse files
committed
Remove support for chunks ingestion
Signed-off-by: Andrew Bloomgarden <[email protected]>
1 parent bb6b026 commit eade2a6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+519
-11702
lines changed

docs/configuration/config-file-reference.md

Lines changed: 9 additions & 123 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,6 @@ api:
140140
# blocks storage.
141141
[store_gateway: <store_gateway_config>]
142142

143-
# The purger_config configures the purger which takes care of delete requests.
144-
[purger: <purger_config>]
145-
146143
tenant_federation:
147144
# If enabled on all Cortex services, queries can be federated across multiple
148145
# tenants. The tenant IDs involved need to be specified separated by a `|`
@@ -604,8 +601,8 @@ instance_limits:
604601
The `ingester_config` configures the Cortex ingester.
605602

606603
```yaml
607-
# Configures the Write-Ahead Log (WAL) for the Cortex chunks storage. This
608-
# config is ignored when running the Cortex blocks storage.
604+
# Configures the Write-Ahead Log (WAL) for the removed Cortex chunks storage.
605+
# This config is now always ignored.
609606
walconfig:
610607
# Enable writing of ingested data into WAL.
611608
# CLI flag: -ingester.wal-enabled
@@ -2832,9 +2829,9 @@ chunk_tables_provisioning:
28322829
The `storage_config` configures where Cortex stores the data (chunks storage engine).
28332830

28342831
```yaml
2835-
# The storage engine to use: chunks (deprecated) or blocks.
2832+
# The storage engine to use: blocks is the only supported option today.
28362833
# CLI flag: -store.engine
2837-
[engine: <string> | default = "chunks"]
2834+
[engine: <string> | default = "blocks"]
28382835
28392836
aws:
28402837
dynamodb:
@@ -3375,93 +3372,6 @@ index_queries_cache_config:
33753372
# The CLI flags prefix for this block config is: store.index-cache-read
33763373
[fifocache: <fifo_cache_config>]
33773374

3378-
delete_store:
3379-
# Store for keeping delete request
3380-
# CLI flag: -deletes.store
3381-
[store: <string> | default = ""]
3382-
3383-
# Name of the table which stores delete requests
3384-
# CLI flag: -deletes.requests-table-name
3385-
[requests_table_name: <string> | default = "delete_requests"]
3386-
3387-
table_provisioning:
3388-
# Enables on demand throughput provisioning for the storage provider (if
3389-
# supported). Applies only to tables which are not autoscaled. Supported by
3390-
# DynamoDB
3391-
# CLI flag: -deletes.table.enable-ondemand-throughput-mode
3392-
[enable_ondemand_throughput_mode: <boolean> | default = false]
3393-
3394-
# Table default write throughput. Supported by DynamoDB
3395-
# CLI flag: -deletes.table.write-throughput
3396-
[provisioned_write_throughput: <int> | default = 1]
3397-
3398-
# Table default read throughput. Supported by DynamoDB
3399-
# CLI flag: -deletes.table.read-throughput
3400-
[provisioned_read_throughput: <int> | default = 300]
3401-
3402-
write_scale:
3403-
# Should we enable autoscale for the table.
3404-
# CLI flag: -deletes.table.write-throughput.scale.enabled
3405-
[enabled: <boolean> | default = false]
3406-
3407-
# AWS AutoScaling role ARN
3408-
# CLI flag: -deletes.table.write-throughput.scale.role-arn
3409-
[role_arn: <string> | default = ""]
3410-
3411-
# DynamoDB minimum provision capacity.
3412-
# CLI flag: -deletes.table.write-throughput.scale.min-capacity
3413-
[min_capacity: <int> | default = 3000]
3414-
3415-
# DynamoDB maximum provision capacity.
3416-
# CLI flag: -deletes.table.write-throughput.scale.max-capacity
3417-
[max_capacity: <int> | default = 6000]
3418-
3419-
# DynamoDB minimum seconds between each autoscale up.
3420-
# CLI flag: -deletes.table.write-throughput.scale.out-cooldown
3421-
[out_cooldown: <int> | default = 1800]
3422-
3423-
# DynamoDB minimum seconds between each autoscale down.
3424-
# CLI flag: -deletes.table.write-throughput.scale.in-cooldown
3425-
[in_cooldown: <int> | default = 1800]
3426-
3427-
# DynamoDB target ratio of consumed capacity to provisioned capacity.
3428-
# CLI flag: -deletes.table.write-throughput.scale.target-value
3429-
[target: <float> | default = 80]
3430-
3431-
read_scale:
3432-
# Should we enable autoscale for the table.
3433-
# CLI flag: -deletes.table.read-throughput.scale.enabled
3434-
[enabled: <boolean> | default = false]
3435-
3436-
# AWS AutoScaling role ARN
3437-
# CLI flag: -deletes.table.read-throughput.scale.role-arn
3438-
[role_arn: <string> | default = ""]
3439-
3440-
# DynamoDB minimum provision capacity.
3441-
# CLI flag: -deletes.table.read-throughput.scale.min-capacity
3442-
[min_capacity: <int> | default = 3000]
3443-
3444-
# DynamoDB maximum provision capacity.
3445-
# CLI flag: -deletes.table.read-throughput.scale.max-capacity
3446-
[max_capacity: <int> | default = 6000]
3447-
3448-
# DynamoDB minimum seconds between each autoscale up.
3449-
# CLI flag: -deletes.table.read-throughput.scale.out-cooldown
3450-
[out_cooldown: <int> | default = 1800]
3451-
3452-
# DynamoDB minimum seconds between each autoscale down.
3453-
# CLI flag: -deletes.table.read-throughput.scale.in-cooldown
3454-
[in_cooldown: <int> | default = 1800]
3455-
3456-
# DynamoDB target ratio of consumed capacity to provisioned capacity.
3457-
# CLI flag: -deletes.table.read-throughput.scale.target-value
3458-
[target: <float> | default = 80]
3459-
3460-
# Tag (of the form key=value) to be added to the tables. Supported by
3461-
# DynamoDB
3462-
# CLI flag: -deletes.table.tags
3463-
[tags: <map of string to string> | default = ]
3464-
34653375
grpc_store:
34663376
# Hostname or IP of the gRPC store instance.
34673377
# CLI flag: -grpc-store.server-address
@@ -3473,16 +3383,17 @@ grpc_store:
34733383
The `flusher_config` configures the WAL flusher target, used to manually run one-time flushes when scaling down ingesters.
34743384

34753385
```yaml
3476-
# Directory to read WAL from (chunks storage engine only).
3386+
# Has no effect: directory to read WAL from (chunks storage engine only).
34773387
# CLI flag: -flusher.wal-dir
34783388
[wal_dir: <string> | default = "wal"]
34793389
3480-
# Number of concurrent goroutines flushing to storage (chunks storage engine
3481-
# only).
3390+
# Has no effect: number of concurrent goroutines flushing to storage (chunks
3391+
# storage engine only).
34823392
# CLI flag: -flusher.concurrent-flushes
34833393
[concurrent_flushes: <int> | default = 50]
34843394
3485-
# Timeout for individual flush operations (chunks storage engine only).
3395+
# Has no effect: timeout for individual flush operations (chunks storage engine
3396+
# only).
34863397
# CLI flag: -flusher.flush-op-timeout
34873398
[flush_op_timeout: <duration> | default = 2m]
34883399
@@ -5492,31 +5403,6 @@ sharding_ring:
54925403
[sharding_strategy: <string> | default = "default"]
54935404
```
54945405

5495-
### `purger_config`
5496-
5497-
The `purger_config` configures the purger which takes care of delete requests.
5498-
5499-
```yaml
5500-
# Enable purger to allow deletion of series. Be aware that Delete series feature
5501-
# is still experimental
5502-
# CLI flag: -purger.enable
5503-
[enable: <boolean> | default = false]
5504-
5505-
# Number of workers executing delete plans in parallel
5506-
# CLI flag: -purger.num-workers
5507-
[num_workers: <int> | default = 2]
5508-
5509-
# Name of the object store to use for storing delete plans
5510-
# CLI flag: -purger.object-store-type
5511-
[object_store_type: <string> | default = ""]
5512-
5513-
# Allow cancellation of delete request until duration after they are created.
5514-
# Data would be deleted only after delete requests have been older than this
5515-
# duration. Ideally this should be set to at least 24h.
5516-
# CLI flag: -purger.delete-request-cancel-period
5517-
[delete_request_cancel_period: <duration> | default = 24h]
5518-
```
5519-
55205406
### `s3_sse_config`
55215407

55225408
The `s3_sse_config` configures the S3 server-side encryption. The supported CLI flags `<prefix>` used to reference this config block are:
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
2+
# Configuration for running Cortex in single-process mode.
3+
# This should not be used in production. It is only for getting started
4+
# and development.
5+
6+
# Disable the requirement that every request to Cortex has a
7+
# X-Scope-OrgID header. `fake` will be substituted in instead.
8+
auth_enabled: false
9+
10+
server:
11+
http_listen_port: 9009
12+
13+
# Configure the server to allow messages up to 100MB.
14+
grpc_server_max_recv_msg_size: 104857600
15+
grpc_server_max_send_msg_size: 104857600
16+
grpc_server_max_concurrent_streams: 1000
17+
18+
distributor:
19+
shard_by_all_labels: true
20+
pool:
21+
health_check_ingesters: true
22+
23+
ingester_client:
24+
grpc_client_config:
25+
# Configure the client to allow messages up to 100MB.
26+
max_recv_msg_size: 104857600
27+
max_send_msg_size: 104857600
28+
grpc_compression: gzip
29+
30+
ingester:
31+
lifecycler:
32+
# The address to advertise for this ingester. Will be autodiscovered by
33+
# looking up address on eth0 or en0; can be specified if this fails.
34+
# address: 127.0.0.1
35+
36+
# We want to start immediately and flush on shutdown.
37+
join_after: 0
38+
min_ready_duration: 0s
39+
final_sleep: 0s
40+
num_tokens: 512
41+
42+
# Use an in memory ring store, so we don't need to launch a Consul.
43+
ring:
44+
kvstore:
45+
store: inmemory
46+
replication_factor: 1
47+
48+
storage:
49+
engine: blocks
50+
51+
blocks_storage:
52+
tsdb:
53+
dir: /tmp/cortex/tsdb
54+
55+
bucket_store:
56+
sync_dir: /tmp/cortex/tsdb-sync
57+
58+
# You can choose between local storage and Amazon S3, Google GCS and Azure storage. Each option requires additional configuration
59+
# as shown below. All options can be configured via flags as well which might be handy for secret inputs.
60+
backend: filesystem # s3, gcs, azure or filesystem are valid options
61+
# s3:
62+
# bucket_name: cortex
63+
# endpoint: s3.dualstack.us-east-1.amazonaws.com
64+
# Configure your S3 credentials below.
65+
# secret_access_key: "TODO"
66+
# access_key_id: "TODO"
67+
# gcs:
68+
# bucket_name: cortex
69+
# service_account: # if empty or omitted Cortex will use your default service account as per Google's fallback logic
70+
# azure:
71+
# account_name:
72+
# account_key:
73+
# container_name:
74+
# endpoint_suffix:
75+
# max_retries: # Number of retries for recoverable errors (defaults to 20)
76+
filesystem:
77+
dir: ./data/tsdb
78+
79+
compactor:
80+
data_dir: /tmp/cortex/compactor
81+
sharding_ring:
82+
kvstore:
83+
store: inmemory
84+
85+
frontend_worker:
86+
match_max_concurrent: true
87+
88+
ruler:
89+
enable_api: true
90+
enable_sharding: false
91+
92+
ruler_storage:
93+
backend: local
94+
local:
95+
directory: /tmp/cortex/rules

go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,6 @@ replace github.com/thanos-io/thanos v0.22.0 => github.com/thanos-io/thanos v0.19
9595

9696
// Replace memberlist with Grafana's fork which includes some fixes that haven't been merged upstream yet
9797
replace github.com/hashicorp/memberlist => github.com/grafana/memberlist v0.2.5-0.20211201083710-c7bc8e9df94b
98+
99+
// This commit is now only accessible via SHA if you're not using the Go modules proxy.
100+
replace github.com/efficientgo/tools/core => github.com/efficientgo/tools/core v0.0.0-20210829154005-c7bad8450208

go.sum

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,6 @@ github.com/edsrzf/mmap-go v1.1.0 h1:6EUwBLQ/Mcr1EYLE4Tn1VdW1A4ckqCQWZBw8Hr0kjpQ=
548548
github.com/edsrzf/mmap-go v1.1.0/go.mod h1:19H/e8pUPLicwkyNgOykDXkJ9F0MHE+Z52B8EIth78Q=
549549
github.com/efficientgo/e2e v0.11.2-0.20211027134903-67d538984a47 h1:k0qDUhOU0KJqKztQYJL1qMBR9nCOntuIRWYwA56Z634=
550550
github.com/efficientgo/e2e v0.11.2-0.20211027134903-67d538984a47/go.mod h1:vDnF4AAEZmO0mvyFIATeDJPFaSRM7ywaOnKd61zaSoE=
551-
github.com/efficientgo/tools/core v0.0.0-20210129205121-421d0828c9a6/go.mod h1:OmVcnJopJL8d3X3sSXTiypGoUSgFq1aDGmlrdi9dn/M=
552551
github.com/efficientgo/tools/core v0.0.0-20210829154005-c7bad8450208 h1:jIALuFymwBqVsF32JhgzVsbCB6QsWvXqhetn8QgyrZ4=
553552
github.com/efficientgo/tools/core v0.0.0-20210829154005-c7bad8450208/go.mod h1:OmVcnJopJL8d3X3sSXTiypGoUSgFq1aDGmlrdi9dn/M=
554553
github.com/efficientgo/tools/extkingpin v0.0.0-20210609125236-d73259166f20 h1:kM/ALyvAnTrwSB+nlKqoKaDnZbInp1YImZvW+gtHwc8=

integration/api_endpoints_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build requires_docker
12
// +build requires_docker
23

34
package integration
@@ -22,7 +23,7 @@ func TestIndexAPIEndpoint(t *testing.T) {
2223
defer s.Close()
2324

2425
// Start Cortex in single binary mode, reading the config from file.
25-
require.NoError(t, copyFileToSharedDir(s, "docs/chunks-storage/single-process-config.yaml", cortexConfigFile))
26+
require.NoError(t, copyFileToSharedDir(s, "docs/configuration/single-process-config-blocks-local.yaml", cortexConfigFile))
2627

2728
cortex1 := e2ecortex.NewSingleBinaryWithConfigFile("cortex-1", cortexConfigFile, nil, "", 9009, 9095)
2829
require.NoError(t, s.StartAndWaitReady(cortex1))
@@ -44,7 +45,7 @@ func TestConfigAPIEndpoint(t *testing.T) {
4445
defer s.Close()
4546

4647
// Start Cortex in single binary mode, reading the config from file.
47-
require.NoError(t, copyFileToSharedDir(s, "docs/chunks-storage/single-process-config.yaml", cortexConfigFile))
48+
require.NoError(t, copyFileToSharedDir(s, "docs/configuration/single-process-config-blocks-local.yaml", cortexConfigFile))
4849

4950
cortex1 := e2ecortex.NewSingleBinaryWithConfigFile("cortex-1", cortexConfigFile, nil, "", 9009, 9095)
5051
require.NoError(t, s.StartAndWaitReady(cortex1))

integration/asserts.go

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,19 @@ const (
3030
var (
3131
// Service-specific metrics prefixes which shouldn't be used by any other service.
3232
serviceMetricsPrefixes = map[ServiceType][]string{
33-
Distributor: {},
34-
Ingester: {"!cortex_ingester_client", "cortex_ingester"}, // The metrics prefix cortex_ingester_client may be used by other components so we ignore it.
35-
Querier: {"cortex_querier"},
33+
Distributor: {},
34+
// The metrics prefix cortex_ingester_client may be used by other components so we ignore it.
35+
Ingester: {"!cortex_ingester_client", "cortex_ingester"},
36+
// The metrics prefixes cortex_querier_storegateway and cortex_querier_blocks may be used by other components so we ignore them.
37+
Querier: {"!cortex_querier_storegateway", "!cortex_querier_blocks", "cortex_querier"},
3638
QueryFrontend: {"cortex_frontend", "cortex_query_frontend"},
3739
QueryScheduler: {"cortex_query_scheduler"},
3840
TableManager: {},
3941
AlertManager: {"cortex_alertmanager"},
4042
Ruler: {},
41-
StoreGateway: {"!cortex_storegateway_client", "cortex_storegateway"}, // The metrics prefix cortex_storegateway_client may be used by other components so we ignore it.
42-
Purger: {"cortex_purger"},
43+
// The metrics prefix cortex_storegateway_client may be used by other components so we ignore it.
44+
StoreGateway: {"!cortex_storegateway_client", "cortex_storegateway"},
45+
Purger: {"cortex_purger"},
4346
}
4447

4548
// Blacklisted metrics prefixes across any Cortex service.

0 commit comments

Comments
 (0)