Skip to content
Draft
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
4 changes: 4 additions & 0 deletions docs/blocks-storage/querier.md
Original file line number Diff line number Diff line change
Expand Up @@ -1729,6 +1729,10 @@ blocks_storage:
# CLI flag: -blocks-storage.bucket-store.block-discovery-strategy
[block_discovery_strategy: <string> | default = "concurrent"]

# Type of bucket store to use (tsdb or parquet).
# CLI flag: -blocks-storage.bucket-store.bucket-store-type
[bucket_store_type: <string> | default = "tsdb"]

# Max size - in bytes - of a chunks pool, used to reduce memory allocations.
# The pool is shared across all tenants. 0 to disable the limit.
# CLI flag: -blocks-storage.bucket-store.max-chunk-pool-bytes
Expand Down
8 changes: 6 additions & 2 deletions docs/blocks-storage/store-gateway.md
Original file line number Diff line number Diff line change
Expand Up @@ -311,13 +311,13 @@ store_gateway:

# Minimum time to wait for ring stability at startup. 0 to disable.
# CLI flag: -store-gateway.sharding-ring.wait-stability-min-duration
[wait_stability_min_duration: <duration> | default = 1m]
[wait_stability_min_duration: <duration> | default = 0s]

# Maximum time to wait for ring stability at startup. If the store-gateway
# ring keeps changing after this period of time, the store-gateway will
# start anyway.
# CLI flag: -store-gateway.sharding-ring.wait-stability-max-duration
[wait_stability_max_duration: <duration> | default = 5m]
[wait_stability_max_duration: <duration> | default = 5s]

# Timeout for waiting on store-gateway to become desired state in the ring.
# CLI flag: -store-gateway.sharding-ring.wait-instance-state-timeout
Expand Down Expand Up @@ -1815,6 +1815,10 @@ blocks_storage:
# CLI flag: -blocks-storage.bucket-store.block-discovery-strategy
[block_discovery_strategy: <string> | default = "concurrent"]

# Type of bucket store to use (tsdb or parquet).
# CLI flag: -blocks-storage.bucket-store.bucket-store-type
[bucket_store_type: <string> | default = "tsdb"]

# Max size - in bytes - of a chunks pool, used to reduce memory allocations.
# The pool is shared across all tenants. 0 to disable the limit.
# CLI flag: -blocks-storage.bucket-store.max-chunk-pool-bytes
Expand Down
8 changes: 6 additions & 2 deletions docs/configuration/config-file-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -2396,6 +2396,10 @@ bucket_store:
# CLI flag: -blocks-storage.bucket-store.block-discovery-strategy
[block_discovery_strategy: <string> | default = "concurrent"]

# Type of bucket store to use (tsdb or parquet).
# CLI flag: -blocks-storage.bucket-store.bucket-store-type
[bucket_store_type: <string> | default = "tsdb"]

# Max size - in bytes - of a chunks pool, used to reduce memory allocations.
# The pool is shared across all tenants. 0 to disable the limit.
# CLI flag: -blocks-storage.bucket-store.max-chunk-pool-bytes
Expand Down Expand Up @@ -6458,13 +6462,13 @@ sharding_ring:

# Minimum time to wait for ring stability at startup. 0 to disable.
# CLI flag: -store-gateway.sharding-ring.wait-stability-min-duration
[wait_stability_min_duration: <duration> | default = 1m]
[wait_stability_min_duration: <duration> | default = 0s]

# Maximum time to wait for ring stability at startup. If the store-gateway
# ring keeps changing after this period of time, the store-gateway will start
# anyway.
# CLI flag: -store-gateway.sharding-ring.wait-stability-max-duration
[wait_stability_max_duration: <duration> | default = 5m]
[wait_stability_max_duration: <duration> | default = 5s]

# Timeout for waiting on store-gateway to become desired state in the ring.
# CLI flag: -store-gateway.sharding-ring.wait-instance-state-timeout
Expand Down
35 changes: 35 additions & 0 deletions integration/e2ecortex/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,41 @@ func NewIngesterWithConfigFile(name string, store RingStore, address, configFile
)
}

func NewParquetConverter(name string, store RingStore, address string, flags map[string]string, image string) *CortexService {
return NewParquetConverterWithConfigFile(name, store, address, "", flags, image)
}

func NewParquetConverterWithConfigFile(name string, store RingStore, address, configFile string, flags map[string]string, image string) *CortexService {
if configFile != "" {
flags["-config.file"] = filepath.Join(e2e.ContainerSharedDir, configFile)
}

// Configure the ingesters ring backend
flags["-ring.store"] = string(store)
switch store {
case RingStoreConsul:
flags["-consul.hostname"] = address
case RingStoreEtcd:
flags["-etcd.endpoints"] = address
}

if image == "" {
image = GetDefaultImage()
}

return NewCortexService(
name,
image,
e2e.NewCommandWithoutEntrypoint("cortex", e2e.BuildArgs(e2e.MergeFlags(map[string]string{
"-target": "parquet-converter",
"-log.level": "warn",
}, flags))...),
e2e.NewHTTPReadinessProbe(httpPort, "/ready", 200, 299),
httpPort,
grpcPort,
)
}

func NewQueryFrontend(name string, flags map[string]string, image string) *CortexService {
return NewQueryFrontendWithConfigFile(name, "", flags, image)
}
Expand Down
Loading
Loading