@@ -606,6 +606,35 @@ blocks_storage:
606
606
# CLI flag: -blocks-storage.bucket-store.index-cache.memcached.auto-discovery
607
607
[auto_discovery : <boolean> | default = false]
608
608
609
+ set_async_circuit_breaker_config :
610
+ # If true, enable circuit breaker.
611
+ # CLI flag: -blocks-storage.bucket-store.index-cache.memcached.set-async.circuit-breaker.enabled
612
+ [enabled : <boolean> | default = false]
613
+
614
+ # Maximum number of requests allowed to pass through when the circuit
615
+ # breaker is half-open. If set to 0, by default it allows 1 request.
616
+ # CLI flag: -blocks-storage.bucket-store.index-cache.memcached.set-async.circuit-breaker.half-open-max-requests
617
+ [half_open_max_requests : <int> | default = 10]
618
+
619
+ # Period of the open state after which the state of the circuit
620
+ # breaker becomes half-open. If set to 0, by default open duration is
621
+ # 60 seconds.
622
+ # CLI flag: -blocks-storage.bucket-store.index-cache.memcached.set-async.circuit-breaker.open-duration
623
+ [open_duration : <duration> | default = 5s]
624
+
625
+ # Minimal requests to trigger the circuit breaker.
626
+ # CLI flag: -blocks-storage.bucket-store.index-cache.memcached.set-async.circuit-breaker.min-requests
627
+ [min_requests : <int> | default = 50]
628
+
629
+ # Consecutive failures to determine if the circuit breaker should
630
+ # open.
631
+ # CLI flag: -blocks-storage.bucket-store.index-cache.memcached.set-async.circuit-breaker.consecutive-failures
632
+ [consecutive_failures : <int> | default = 5]
633
+
634
+ # Failure percentage to determine if the circuit breaker should open.
635
+ # CLI flag: -blocks-storage.bucket-store.index-cache.memcached.set-async.circuit-breaker.failure-percent
636
+ [failure_percent : <float> | default = 0.05]
637
+
609
638
# Selectively cache index item types. Supported values are Postings,
610
639
# ExpandedPostings and Series
611
640
# CLI flag: -blocks-storage.bucket-store.index-cache.memcached.enabled-items
@@ -707,6 +736,35 @@ blocks_storage:
707
736
# CLI flag: -blocks-storage.bucket-store.index-cache.redis.cache-size
708
737
[cache_size : <int> | default = 0]
709
738
739
+ set_async_circuit_breaker_config :
740
+ # If true, enable circuit breaker.
741
+ # CLI flag: -blocks-storage.bucket-store.index-cache.redis.set-async.circuit-breaker.enabled
742
+ [enabled : <boolean> | default = false]
743
+
744
+ # Maximum number of requests allowed to pass through when the circuit
745
+ # breaker is half-open. If set to 0, by default it allows 1 request.
746
+ # CLI flag: -blocks-storage.bucket-store.index-cache.redis.set-async.circuit-breaker.half-open-max-requests
747
+ [half_open_max_requests : <int> | default = 10]
748
+
749
+ # Period of the open state after which the state of the circuit
750
+ # breaker becomes half-open. If set to 0, by default open duration is
751
+ # 60 seconds.
752
+ # CLI flag: -blocks-storage.bucket-store.index-cache.redis.set-async.circuit-breaker.open-duration
753
+ [open_duration : <duration> | default = 5s]
754
+
755
+ # Minimal requests to trigger the circuit breaker.
756
+ # CLI flag: -blocks-storage.bucket-store.index-cache.redis.set-async.circuit-breaker.min-requests
757
+ [min_requests : <int> | default = 50]
758
+
759
+ # Consecutive failures to determine if the circuit breaker should
760
+ # open.
761
+ # CLI flag: -blocks-storage.bucket-store.index-cache.redis.set-async.circuit-breaker.consecutive-failures
762
+ [consecutive_failures : <int> | default = 5]
763
+
764
+ # Failure percentage to determine if the circuit breaker should open.
765
+ # CLI flag: -blocks-storage.bucket-store.index-cache.redis.set-async.circuit-breaker.failure-percent
766
+ [failure_percent : <float> | default = 0.05]
767
+
710
768
# Selectively cache index item types. Supported values are Postings,
711
769
# ExpandedPostings and Series
712
770
# CLI flag: -blocks-storage.bucket-store.index-cache.redis.enabled-items
@@ -779,6 +837,35 @@ blocks_storage:
779
837
# CLI flag: -blocks-storage.bucket-store.chunks-cache.memcached.auto-discovery
780
838
[auto_discovery : <boolean> | default = false]
781
839
840
+ set_async_circuit_breaker_config :
841
+ # If true, enable circuit breaker.
842
+ # CLI flag: -blocks-storage.bucket-store.chunks-cache.memcached.set-async.circuit-breaker.enabled
843
+ [enabled : <boolean> | default = false]
844
+
845
+ # Maximum number of requests allowed to pass through when the circuit
846
+ # breaker is half-open. If set to 0, by default it allows 1 request.
847
+ # CLI flag: -blocks-storage.bucket-store.chunks-cache.memcached.set-async.circuit-breaker.half-open-max-requests
848
+ [half_open_max_requests : <int> | default = 10]
849
+
850
+ # Period of the open state after which the state of the circuit
851
+ # breaker becomes half-open. If set to 0, by default open duration is
852
+ # 60 seconds.
853
+ # CLI flag: -blocks-storage.bucket-store.chunks-cache.memcached.set-async.circuit-breaker.open-duration
854
+ [open_duration : <duration> | default = 5s]
855
+
856
+ # Minimal requests to trigger the circuit breaker.
857
+ # CLI flag: -blocks-storage.bucket-store.chunks-cache.memcached.set-async.circuit-breaker.min-requests
858
+ [min_requests : <int> | default = 50]
859
+
860
+ # Consecutive failures to determine if the circuit breaker should
861
+ # open.
862
+ # CLI flag: -blocks-storage.bucket-store.chunks-cache.memcached.set-async.circuit-breaker.consecutive-failures
863
+ [consecutive_failures : <int> | default = 5]
864
+
865
+ # Failure percentage to determine if the circuit breaker should open.
866
+ # CLI flag: -blocks-storage.bucket-store.chunks-cache.memcached.set-async.circuit-breaker.failure-percent
867
+ [failure_percent : <float> | default = 0.05]
868
+
782
869
redis :
783
870
# Comma separated list of redis addresses. Supported prefixes are: dns+
784
871
# (looked up as an A/AAAA query), dnssrv+ (looked up as a SRV query,
@@ -875,6 +962,35 @@ blocks_storage:
875
962
# CLI flag: -blocks-storage.bucket-store.chunks-cache.redis.cache-size
876
963
[cache_size : <int> | default = 0]
877
964
965
+ set_async_circuit_breaker_config :
966
+ # If true, enable circuit breaker.
967
+ # CLI flag: -blocks-storage.bucket-store.chunks-cache.redis.set-async.circuit-breaker.enabled
968
+ [enabled : <boolean> | default = false]
969
+
970
+ # Maximum number of requests allowed to pass through when the circuit
971
+ # breaker is half-open. If set to 0, by default it allows 1 request.
972
+ # CLI flag: -blocks-storage.bucket-store.chunks-cache.redis.set-async.circuit-breaker.half-open-max-requests
973
+ [half_open_max_requests : <int> | default = 10]
974
+
975
+ # Period of the open state after which the state of the circuit
976
+ # breaker becomes half-open. If set to 0, by default open duration is
977
+ # 60 seconds.
978
+ # CLI flag: -blocks-storage.bucket-store.chunks-cache.redis.set-async.circuit-breaker.open-duration
979
+ [open_duration : <duration> | default = 5s]
980
+
981
+ # Minimal requests to trigger the circuit breaker.
982
+ # CLI flag: -blocks-storage.bucket-store.chunks-cache.redis.set-async.circuit-breaker.min-requests
983
+ [min_requests : <int> | default = 50]
984
+
985
+ # Consecutive failures to determine if the circuit breaker should
986
+ # open.
987
+ # CLI flag: -blocks-storage.bucket-store.chunks-cache.redis.set-async.circuit-breaker.consecutive-failures
988
+ [consecutive_failures : <int> | default = 5]
989
+
990
+ # Failure percentage to determine if the circuit breaker should open.
991
+ # CLI flag: -blocks-storage.bucket-store.chunks-cache.redis.set-async.circuit-breaker.failure-percent
992
+ [failure_percent : <float> | default = 0.05]
993
+
878
994
# Size of each subrange that bucket object is split into for better
879
995
# caching.
880
996
# CLI flag: -blocks-storage.bucket-store.chunks-cache.subrange-size
@@ -946,6 +1062,35 @@ blocks_storage:
946
1062
# CLI flag: -blocks-storage.bucket-store.metadata-cache.memcached.auto-discovery
947
1063
[auto_discovery : <boolean> | default = false]
948
1064
1065
+ set_async_circuit_breaker_config :
1066
+ # If true, enable circuit breaker.
1067
+ # CLI flag: -blocks-storage.bucket-store.metadata-cache.memcached.set-async.circuit-breaker.enabled
1068
+ [enabled : <boolean> | default = false]
1069
+
1070
+ # Maximum number of requests allowed to pass through when the circuit
1071
+ # breaker is half-open. If set to 0, by default it allows 1 request.
1072
+ # CLI flag: -blocks-storage.bucket-store.metadata-cache.memcached.set-async.circuit-breaker.half-open-max-requests
1073
+ [half_open_max_requests : <int> | default = 10]
1074
+
1075
+ # Period of the open state after which the state of the circuit
1076
+ # breaker becomes half-open. If set to 0, by default open duration is
1077
+ # 60 seconds.
1078
+ # CLI flag: -blocks-storage.bucket-store.metadata-cache.memcached.set-async.circuit-breaker.open-duration
1079
+ [open_duration : <duration> | default = 5s]
1080
+
1081
+ # Minimal requests to trigger the circuit breaker.
1082
+ # CLI flag: -blocks-storage.bucket-store.metadata-cache.memcached.set-async.circuit-breaker.min-requests
1083
+ [min_requests : <int> | default = 50]
1084
+
1085
+ # Consecutive failures to determine if the circuit breaker should
1086
+ # open.
1087
+ # CLI flag: -blocks-storage.bucket-store.metadata-cache.memcached.set-async.circuit-breaker.consecutive-failures
1088
+ [consecutive_failures : <int> | default = 5]
1089
+
1090
+ # Failure percentage to determine if the circuit breaker should open.
1091
+ # CLI flag: -blocks-storage.bucket-store.metadata-cache.memcached.set-async.circuit-breaker.failure-percent
1092
+ [failure_percent : <float> | default = 0.05]
1093
+
949
1094
redis :
950
1095
# Comma separated list of redis addresses. Supported prefixes are: dns+
951
1096
# (looked up as an A/AAAA query), dnssrv+ (looked up as a SRV query,
@@ -1042,6 +1187,35 @@ blocks_storage:
1042
1187
# CLI flag: -blocks-storage.bucket-store.metadata-cache.redis.cache-size
1043
1188
[cache_size : <int> | default = 0]
1044
1189
1190
+ set_async_circuit_breaker_config :
1191
+ # If true, enable circuit breaker.
1192
+ # CLI flag: -blocks-storage.bucket-store.metadata-cache.redis.set-async.circuit-breaker.enabled
1193
+ [enabled : <boolean> | default = false]
1194
+
1195
+ # Maximum number of requests allowed to pass through when the circuit
1196
+ # breaker is half-open. If set to 0, by default it allows 1 request.
1197
+ # CLI flag: -blocks-storage.bucket-store.metadata-cache.redis.set-async.circuit-breaker.half-open-max-requests
1198
+ [half_open_max_requests : <int> | default = 10]
1199
+
1200
+ # Period of the open state after which the state of the circuit
1201
+ # breaker becomes half-open. If set to 0, by default open duration is
1202
+ # 60 seconds.
1203
+ # CLI flag: -blocks-storage.bucket-store.metadata-cache.redis.set-async.circuit-breaker.open-duration
1204
+ [open_duration : <duration> | default = 5s]
1205
+
1206
+ # Minimal requests to trigger the circuit breaker.
1207
+ # CLI flag: -blocks-storage.bucket-store.metadata-cache.redis.set-async.circuit-breaker.min-requests
1208
+ [min_requests : <int> | default = 50]
1209
+
1210
+ # Consecutive failures to determine if the circuit breaker should
1211
+ # open.
1212
+ # CLI flag: -blocks-storage.bucket-store.metadata-cache.redis.set-async.circuit-breaker.consecutive-failures
1213
+ [consecutive_failures : <int> | default = 5]
1214
+
1215
+ # Failure percentage to determine if the circuit breaker should open.
1216
+ # CLI flag: -blocks-storage.bucket-store.metadata-cache.redis.set-async.circuit-breaker.failure-percent
1217
+ [failure_percent : <float> | default = 0.05]
1218
+
1045
1219
# How long to cache list of tenants in the bucket.
1046
1220
# CLI flag: -blocks-storage.bucket-store.metadata-cache.tenants-list-ttl
1047
1221
[tenants_list_ttl : <duration> | default = 15m]
0 commit comments