@@ -1031,74 +1031,56 @@ metastore_client:
1031
1031
# Configures the gRPC client used to communicate with the metastore.
1032
1032
[grpc_client_config : <grpc_client>]
1033
1033
1034
- partition_ring :
1035
- # The key-value store used to share the hash ring across multiple instances.
1036
- # This option needs be set on ingesters, distributors, queriers, and rulers
1037
- # when running in microservices mode.
1038
- kvstore :
1039
- # Backend storage to use for the ring. Supported values are: consul, etcd,
1040
- # inmemory, memberlist, multi.
1041
- # CLI flag: -ingester.partition-ring.store
1042
- [store : <string> | default = "memberlist"]
1043
-
1044
- # The prefix for the keys in the store. Should end with a /.
1045
- # CLI flag: -ingester.partition-ring.prefix
1046
- [prefix : <string> | default = "collectors/"]
1047
-
1048
- # Configuration for a Consul client. Only applies if the selected kvstore is
1049
- # consul.
1050
- # The CLI flags prefix for this block configuration is:
1051
- # ingester.partition-ring.consul
1052
- [consul : <consul>]
1053
-
1054
- # Configuration for an ETCD v3 client. Only applies if the selected kvstore
1055
- # is etcd.
1056
- # The CLI flags prefix for this block configuration is:
1057
- # ingester.partition-ring.etcd
1058
- [etcd : <etcd>]
1059
-
1060
- multi :
1061
- # Primary backend storage used by multi-client.
1062
- # CLI flag: -ingester.partition-ring.multi.primary
1063
- [primary : <string> | default = ""]
1064
-
1065
- # Secondary backend storage used by multi-client.
1066
- # CLI flag: -ingester.partition-ring.multi.secondary
1067
- [secondary : <string> | default = ""]
1068
-
1069
- # Mirror writes to secondary store.
1070
- # CLI flag: -ingester.partition-ring.multi.mirror-enabled
1071
- [mirror_enabled : <boolean> | default = false]
1072
-
1073
- # Timeout for storing value to secondary store.
1074
- # CLI flag: -ingester.partition-ring.multi.mirror-timeout
1075
- [mirror_timeout : <duration> | default = 2s]
1076
-
1077
- # Minimum number of owners to wait before a PENDING partition gets switched to
1078
- # ACTIVE.
1079
- # CLI flag: -ingester.partition-ring.min-partition-owners-count
1080
- [min_partition_owners_count : <int> | default = 1]
1081
-
1082
- # How long the minimum number of owners are enforced before a PENDING
1083
- # partition gets switched to ACTIVE.
1084
- # CLI flag: -ingester.partition-ring.min-partition-owners-duration
1085
- [min_partition_owners_duration : <duration> | default = 10s]
1086
-
1087
- # How long to wait before an INACTIVE partition is eligible for deletion. The
1088
- # partition is deleted only if it has been in INACTIVE state for at least the
1089
- # configured duration and it has no owners registered. A value of 0 disables
1090
- # partitions deletion.
1091
- # CLI flag: -ingester.partition-ring.delete-inactive-partition-after
1092
- [delete_inactive_partition_after : <duration> | default = 13h]
1093
-
1094
1034
kafka_config :
1095
- # the kafka endpoint to connect to
1096
- # CLI flag: -address
1035
+ # The Kafka backend address.
1036
+ # CLI flag: -kafka. address
1097
1037
[address : <string> | default = "localhost:9092"]
1098
1038
1099
1039
# The Kafka topic name.
1100
- # CLI flag: -.topic
1101
- [topic : <string> | default = "loki.push"]
1040
+ # CLI flag: -kafka.topic
1041
+ [topic : <string> | default = ""]
1042
+
1043
+ # The Kafka client ID.
1044
+ # CLI flag: -kafka.client-id
1045
+ [client_id : <string> | default = ""]
1046
+
1047
+ # The maximum time allowed to open a connection to a Kafka broker.
1048
+ # CLI flag: -kafka.dial-timeout
1049
+ [dial_timeout : <duration> | default = 2s]
1050
+
1051
+ # How long to wait for an incoming write request to be successfully committed
1052
+ # to the Kafka backend.
1053
+ # CLI flag: -kafka.write-timeout
1054
+ [write_timeout : <duration> | default = 10s]
1055
+
1056
+ # The consumer group used by the consumer to track the last consumed offset.
1057
+ # The consumer group must be different for each ingester. If the configured
1058
+ # consumer group contains the '<partition>' placeholder, it is replaced with
1059
+ # the actual partition ID owned by the ingester. When empty (recommended),
1060
+ # Mimir uses the ingester instance ID to guarantee uniqueness.
1061
+ # CLI flag: -kafka.consumer-group
1062
+ [consumer_group : <string> | default = ""]
1063
+
1064
+ # How long to retry a failed request to get the last produced offset.
1065
+ # CLI flag: -kafka.last-produced-offset-retry-timeout
1066
+ [last_produced_offset_retry_timeout : <duration> | default = 10s]
1067
+
1068
+ # Enable auto-creation of Kafka topic if it doesn't exist.
1069
+ # CLI flag: -kafka.auto-create-topic-enabled
1070
+ [auto_create_topic_enabled : <boolean> | default = true]
1071
+
1072
+ # The maximum size of a Kafka record data that should be generated by the
1073
+ # producer. An incoming write request larger than this size is split into
1074
+ # multiple Kafka records. We strongly recommend to not change this setting
1075
+ # unless for testing purposes.
1076
+ # CLI flag: -kafka.producer-max-record-size-bytes
1077
+ [producer_max_record_size_bytes : <int> | default = 15983616]
1078
+
1079
+ # The maximum size of (uncompressed) buffered and unacknowledged produced
1080
+ # records sent to Kafka. The produce request fails once this limit is reached.
1081
+ # This limit is per Kafka client. 0 to disable the limit.
1082
+ # CLI flag: -kafka.producer-max-buffered-bytes
1083
+ [producer_max_buffered_bytes : <int> | default = 1073741824]
1102
1084
1103
1085
kafka_ingester :
1104
1086
# Whether the kafka ingester is enabled.
@@ -1251,46 +1233,75 @@ kafka_ingester:
1251
1233
# CLI flag: -kafka-ingester.shutdown-marker-path
1252
1234
[shutdown_marker_path : <string> | default = ""]
1253
1235
1236
+ # The interval at which the ingester will flush and commit offsets to Kafka.
1237
+ # If not set, the default flush interval will be used.
1238
+ # CLI flag: -kafka-ingester.flush-interval
1239
+ [flush_interval : <duration> | default = 15s]
1240
+
1241
+ # The size at which the ingester will flush and commit offsets to Kafka. If
1242
+ # not set, the default flush size will be used.
1243
+ # CLI flag: -kafka-ingester.flush-size
1244
+ [flush_size : <int> | default = 314572800]
1245
+
1254
1246
partition_ring :
1255
1247
# The key-value store used to share the hash ring across multiple instances.
1256
1248
# This option needs be set on ingesters, distributors, queriers, and rulers
1257
1249
# when running in microservices mode.
1258
1250
kvstore :
1259
- [store : <string> | default = ""]
1251
+ # Backend storage to use for the ring. Supported values are: consul, etcd,
1252
+ # inmemory, memberlist, multi.
1253
+ # CLI flag: -ingester.partition-ring.store
1254
+ [store : <string> | default = "memberlist"]
1260
1255
1261
- [prefix : <string> | default = ""]
1256
+ # The prefix for the keys in the store. Should end with a /.
1257
+ # CLI flag: -ingester.partition-ring.prefix
1258
+ [prefix : <string> | default = "collectors/"]
1262
1259
1263
1260
# Configuration for a Consul client. Only applies if the selected kvstore
1264
1261
# is consul.
1265
1262
# The CLI flags prefix for this block configuration is:
1266
- # common.storage. ring.consul
1263
+ # ingester.partition- ring.consul
1267
1264
[consul : <consul>]
1268
1265
1269
1266
# Configuration for an ETCD v3 client. Only applies if the selected
1270
1267
# kvstore is etcd.
1271
1268
# The CLI flags prefix for this block configuration is:
1272
- # common.storage. ring.etcd
1269
+ # ingester.partition- ring.etcd
1273
1270
[etcd : <etcd>]
1274
1271
1275
1272
multi :
1273
+ # Primary backend storage used by multi-client.
1274
+ # CLI flag: -ingester.partition-ring.multi.primary
1276
1275
[primary : <string> | default = ""]
1277
1276
1277
+ # Secondary backend storage used by multi-client.
1278
+ # CLI flag: -ingester.partition-ring.multi.secondary
1278
1279
[secondary : <string> | default = ""]
1279
1280
1280
- [mirror_enabled : <boolean>]
1281
-
1282
- [mirror_timeout : <duration>]
1283
-
1284
- [min_partition_owners_count : <int>]
1281
+ # Mirror writes to secondary store.
1282
+ # CLI flag: -ingester.partition-ring.multi.mirror-enabled
1283
+ [mirror_enabled : <boolean> | default = false]
1285
1284
1286
- [min_partition_owners_duration : <duration>]
1285
+ # Timeout for storing value to secondary store.
1286
+ # CLI flag: -ingester.partition-ring.multi.mirror-timeout
1287
+ [mirror_timeout : <duration> | default = 2s]
1287
1288
1288
- [delete_inactive_partition_after : <duration>]
1289
+ # Minimum number of owners to wait before a PENDING partition gets switched
1290
+ # to ACTIVE.
1291
+ # CLI flag: -ingester.partition-ring.min-partition-owners-count
1292
+ [min_partition_owners_count : <int> | default = 1]
1289
1293
1290
- kafkaconfig :
1291
- [address : <string> | default = ""]
1294
+ # How long the minimum number of owners are enforced before a PENDING
1295
+ # partition gets switched to ACTIVE.
1296
+ # CLI flag: -ingester.partition-ring.min-partition-owners-duration
1297
+ [min_partition_owners_duration : <duration> | default = 10s]
1292
1298
1293
- [topic : <string> | default = ""]
1299
+ # How long to wait before an INACTIVE partition is eligible for deletion.
1300
+ # The partition is deleted only if it has been in INACTIVE state for at
1301
+ # least the configured duration and it has no owners registered. A value of
1302
+ # 0 disables partitions deletion.
1303
+ # CLI flag: -ingester.partition-ring.delete-inactive-partition-after
1304
+ [delete_inactive_partition_after : <duration> | default = 13h]
1294
1305
1295
1306
# Configuration for 'runtime config' module, responsible for reloading runtime
1296
1307
# configuration file.
@@ -2244,10 +2255,14 @@ ring:
2244
2255
2245
2256
# Configuration for a Consul client. Only applies if the selected kvstore is
2246
2257
# consul.
2258
+ # The CLI flags prefix for this block configuration is:
2259
+ # common.storage.ring.consul
2247
2260
[consul: <consul>]
2248
2261
2249
2262
# Configuration for an ETCD v3 client. Only applies if the selected kvstore
2250
2263
# is etcd.
2264
+ # The CLI flags prefix for this block configuration is:
2265
+ # common.storage.ring.etcd
2251
2266
[etcd: <etcd>]
2252
2267
2253
2268
multi:
@@ -3578,26 +3593,16 @@ The `ingester_client` block configures how the distributor will connect to inges
3578
3593
` ` ` yaml
3579
3594
# Configures how connections are pooled.
3580
3595
pool_config:
3581
- # How frequently to clean up clients for ingesters that have gone away.
3582
- # CLI flag: -distributor.client-cleanup-period
3583
- [client_cleanup_period: <duration> | default = 15s]
3596
+ [client_cleanup_period: <duration>]
3584
3597
3585
- # Run a health check on each ingester client during periodic cleanup.
3586
- # CLI flag: -distributor.health-check-ingesters
3587
- [health_check_ingesters: <boolean> | default = true]
3598
+ [health_check_ingesters: <boolean>]
3588
3599
3589
- # How quickly a dead client will be removed after it has been detected to
3590
- # disappear. Set this to a value to allow time for a secondary health check to
3591
- # recover the missing client.
3592
- # CLI flag: -ingester.client.healthcheck-timeout
3593
- [remote_timeout: <duration> | default = 1s]
3600
+ [remote_timeout: <duration>]
3594
3601
3595
- # The remote request timeout on the client side.
3596
- # CLI flag: -ingester.client.timeout
3597
- [remote_timeout: <duration> | default = 5s]
3602
+ [remote_timeout: <duration>]
3598
3603
3599
3604
# Configures how the gRPC connection to ingesters work as a client.
3600
- # The CLI flags prefix for this block configuration is: ingester.client
3605
+ # The CLI flags prefix for this block configuration is: ingester-rf1 .client
3601
3606
[grpc_client_config: <grpc_client>]
3602
3607
` ` `
3603
3608
0 commit comments