@@ -27,87 +27,70 @@ import (
27
27
28
28
func TestQuerierWithBlocksStorageRunningInMicroservicesMode (t * testing.T ) {
29
29
tests := map [string ]struct {
30
- blocksShardingStrategy string // Empty means sharding is disabled.
31
- tenantShardSize int
32
- ingesterStreamingEnabled bool
33
- indexCacheBackend string
34
- chunkCacheBackend string
35
- bucketIndexEnabled bool
30
+ blocksShardingStrategy string // Empty means sharding is disabled.
31
+ tenantShardSize int
32
+ indexCacheBackend string
33
+ chunkCacheBackend string
34
+ bucketIndexEnabled bool
36
35
}{
37
- "blocks sharding disabled, ingester gRPC streaming disabled, memcached index cache" : {
38
- blocksShardingStrategy : "" ,
39
- ingesterStreamingEnabled : false ,
40
- indexCacheBackend : tsdb .IndexCacheBackendMemcached ,
41
- chunkCacheBackend : tsdb .CacheBackendMemcached ,
36
+ "blocks sharding disabled, memcached index cache" : {
37
+ blocksShardingStrategy : "" ,
38
+ indexCacheBackend : tsdb .IndexCacheBackendMemcached ,
39
+ chunkCacheBackend : tsdb .CacheBackendMemcached ,
42
40
},
43
- "blocks sharding disabled, ingester gRPC streaming disabled, multilevel index cache (inmemory, memcached)" : {
44
- blocksShardingStrategy : "" ,
45
- ingesterStreamingEnabled : false ,
46
- indexCacheBackend : fmt .Sprintf ("%v,%v" , tsdb .IndexCacheBackendInMemory , tsdb .IndexCacheBackendMemcached ),
47
- chunkCacheBackend : tsdb .CacheBackendMemcached ,
41
+ "blocks sharding disabled, multilevel index cache (inmemory, memcached)" : {
42
+ blocksShardingStrategy : "" ,
43
+ indexCacheBackend : fmt .Sprintf ("%v,%v" , tsdb .IndexCacheBackendInMemory , tsdb .IndexCacheBackendMemcached ),
44
+ chunkCacheBackend : tsdb .CacheBackendMemcached ,
48
45
},
49
- "blocks sharding disabled, ingester gRPC streaming disabled, redis index cache" : {
50
- blocksShardingStrategy : "" ,
51
- ingesterStreamingEnabled : false ,
52
- indexCacheBackend : tsdb .IndexCacheBackendRedis ,
53
- chunkCacheBackend : tsdb .CacheBackendRedis ,
46
+ "blocks sharding disabled, redis index cache" : {
47
+ blocksShardingStrategy : "" ,
48
+ indexCacheBackend : tsdb .IndexCacheBackendRedis ,
49
+ chunkCacheBackend : tsdb .CacheBackendRedis ,
54
50
},
55
- "blocks sharding disabled, ingester gRPC streaming disabled, multilevel index cache (inmemory, redis)" : {
56
- blocksShardingStrategy : "" ,
57
- ingesterStreamingEnabled : false ,
58
- indexCacheBackend : fmt .Sprintf ("%v,%v" , tsdb .IndexCacheBackendInMemory , tsdb .IndexCacheBackendRedis ),
59
- chunkCacheBackend : tsdb .CacheBackendRedis ,
51
+ "blocks sharding disabled, multilevel index cache (inmemory, redis)" : {
52
+ blocksShardingStrategy : "" ,
53
+ indexCacheBackend : fmt .Sprintf ("%v,%v" , tsdb .IndexCacheBackendInMemory , tsdb .IndexCacheBackendRedis ),
54
+ chunkCacheBackend : tsdb .CacheBackendRedis ,
60
55
},
61
- "blocks default sharding, ingester gRPC streaming disabled, inmemory index cache" : {
62
- blocksShardingStrategy : "default" ,
63
- ingesterStreamingEnabled : false ,
64
- indexCacheBackend : tsdb .IndexCacheBackendInMemory ,
56
+ "blocks default sharding, inmemory index cache" : {
57
+ blocksShardingStrategy : "default" ,
58
+ indexCacheBackend : tsdb .IndexCacheBackendInMemory ,
65
59
},
66
- "blocks default sharding, ingester gRPC streaming enabled, inmemory index cache" : {
67
- blocksShardingStrategy : "default" ,
68
- ingesterStreamingEnabled : true ,
69
- indexCacheBackend : tsdb .IndexCacheBackendInMemory ,
60
+ "blocks default sharding, memcached index cache" : {
61
+ blocksShardingStrategy : "default" ,
62
+ indexCacheBackend : tsdb . IndexCacheBackendMemcached ,
63
+ chunkCacheBackend : tsdb .CacheBackendMemcached ,
70
64
},
71
- "blocks default sharding, ingester gRPC streaming enabled , memcached index cache" : {
72
- blocksShardingStrategy : "default " ,
73
- ingesterStreamingEnabled : true ,
74
- indexCacheBackend : tsdb .IndexCacheBackendMemcached ,
75
- chunkCacheBackend : tsdb .CacheBackendMemcached ,
65
+ "blocks shuffle sharding, memcached index cache" : {
66
+ blocksShardingStrategy : "shuffle-sharding " ,
67
+ tenantShardSize : 1 ,
68
+ indexCacheBackend : tsdb .IndexCacheBackendMemcached ,
69
+ chunkCacheBackend : tsdb .CacheBackendMemcached ,
76
70
},
77
- "blocks shuffle sharding, ingester gRPC streaming enabled, memcached index cache" : {
78
- blocksShardingStrategy : "shuffle-sharding" ,
79
- tenantShardSize : 1 ,
80
- ingesterStreamingEnabled : true ,
81
- indexCacheBackend : tsdb .IndexCacheBackendMemcached ,
82
- chunkCacheBackend : tsdb .CacheBackendMemcached ,
71
+ "blocks default sharding, inmemory index cache, bucket index enabled" : {
72
+ blocksShardingStrategy : "default" ,
73
+ indexCacheBackend : tsdb .IndexCacheBackendInMemory ,
74
+ bucketIndexEnabled : true ,
83
75
},
84
- "blocks default sharding, ingester gRPC streaming enabled, inmemory index cache, bucket index enabled" : {
85
- blocksShardingStrategy : "default " ,
86
- ingesterStreamingEnabled : true ,
87
- indexCacheBackend : tsdb .IndexCacheBackendInMemory ,
88
- bucketIndexEnabled : true ,
76
+ "blocks shuffle sharding, memcached index cache, bucket index enabled" : {
77
+ blocksShardingStrategy : "shuffle-sharding " ,
78
+ tenantShardSize : 1 ,
79
+ indexCacheBackend : tsdb .IndexCacheBackendInMemory ,
80
+ bucketIndexEnabled : true ,
89
81
},
90
- "blocks shuffle sharding, ingester gRPC streaming enabled, memcached index cache, bucket index enabled" : {
91
- blocksShardingStrategy : "shuffle-sharding" ,
92
- tenantShardSize : 1 ,
93
- ingesterStreamingEnabled : true ,
94
- indexCacheBackend : tsdb .IndexCacheBackendInMemory ,
95
- bucketIndexEnabled : true ,
82
+ "blocks default sharding, redis index cache, bucket index enabled" : {
83
+ blocksShardingStrategy : "default" ,
84
+ indexCacheBackend : tsdb .IndexCacheBackendRedis ,
85
+ chunkCacheBackend : tsdb .CacheBackendRedis ,
86
+ bucketIndexEnabled : true ,
96
87
},
97
- "blocks default sharding, ingester gRPC streaming enabled, redis index cache, bucket index enabled" : {
98
- blocksShardingStrategy : "default" ,
99
- ingesterStreamingEnabled : true ,
100
- indexCacheBackend : tsdb .IndexCacheBackendRedis ,
101
- chunkCacheBackend : tsdb .CacheBackendRedis ,
102
- bucketIndexEnabled : true ,
103
- },
104
- "blocks shuffle sharding, ingester gRPC streaming enabled, redis index cache, bucket index enabled" : {
105
- blocksShardingStrategy : "shuffle-sharding" ,
106
- tenantShardSize : 1 ,
107
- ingesterStreamingEnabled : true ,
108
- indexCacheBackend : tsdb .IndexCacheBackendRedis ,
109
- chunkCacheBackend : tsdb .CacheBackendRedis ,
110
- bucketIndexEnabled : true ,
88
+ "blocks shuffle sharding, redis index cache, bucket index enabled" : {
89
+ blocksShardingStrategy : "shuffle-sharding" ,
90
+ tenantShardSize : 1 ,
91
+ indexCacheBackend : tsdb .IndexCacheBackendRedis ,
92
+ chunkCacheBackend : tsdb .CacheBackendRedis ,
93
+ bucketIndexEnabled : true ,
111
94
},
112
95
}
113
96
@@ -134,7 +117,6 @@ func TestQuerierWithBlocksStorageRunningInMicroservicesMode(t *testing.T) {
134
117
"-store-gateway.sharding-enabled" : strconv .FormatBool (testCfg .blocksShardingStrategy != "" ),
135
118
"-store-gateway.sharding-strategy" : testCfg .blocksShardingStrategy ,
136
119
"-store-gateway.tenant-shard-size" : fmt .Sprintf ("%d" , testCfg .tenantShardSize ),
137
- "-querier.ingester-streaming" : strconv .FormatBool (testCfg .ingesterStreamingEnabled ),
138
120
"-querier.query-store-for-labels-enabled" : "true" ,
139
121
"-querier.thanos-engine" : strconv .FormatBool (thanosEngine ),
140
122
"-blocks-storage.bucket-store.bucket-index.enabled" : strconv .FormatBool (testCfg .bucketIndexEnabled ),
@@ -319,52 +301,39 @@ func TestQuerierWithBlocksStorageRunningInMicroservicesMode(t *testing.T) {
319
301
320
302
func TestQuerierWithBlocksStorageRunningInSingleBinaryMode (t * testing.T ) {
321
303
tests := map [string ]struct {
322
- blocksShardingEnabled bool
323
- ingesterStreamingEnabled bool
324
- indexCacheBackend string
325
- bucketIndexEnabled bool
304
+ blocksShardingEnabled bool
305
+ indexCacheBackend string
306
+ bucketIndexEnabled bool
326
307
}{
327
- "blocks sharding enabled, ingester gRPC streaming disabled, inmemory index cache" : {
328
- blocksShardingEnabled : true ,
329
- ingesterStreamingEnabled : false ,
330
- indexCacheBackend : tsdb .IndexCacheBackendInMemory ,
331
- },
332
- "blocks sharding enabled, ingester gRPC streaming enabled, inmemory index cache" : {
333
- blocksShardingEnabled : true ,
334
- ingesterStreamingEnabled : true ,
335
- indexCacheBackend : tsdb .IndexCacheBackendInMemory ,
308
+ "blocks sharding enabled, inmemory index cache" : {
309
+ blocksShardingEnabled : true ,
310
+ indexCacheBackend : tsdb .IndexCacheBackendInMemory ,
336
311
},
337
- "blocks sharding disabled, ingester gRPC streaming disabled, memcached index cache" : {
338
- blocksShardingEnabled : false ,
339
- ingesterStreamingEnabled : false ,
340
- indexCacheBackend : tsdb .IndexCacheBackendMemcached ,
312
+ "blocks sharding disabled, memcached index cache" : {
313
+ blocksShardingEnabled : false ,
314
+ indexCacheBackend : tsdb .IndexCacheBackendMemcached ,
341
315
},
342
- "blocks sharding enabled, ingester gRPC streaming enabled, memcached index cache" : {
343
- blocksShardingEnabled : true ,
344
- ingesterStreamingEnabled : true ,
345
- indexCacheBackend : tsdb .IndexCacheBackendMemcached ,
316
+ "blocks sharding enabled, memcached index cache" : {
317
+ blocksShardingEnabled : true ,
318
+ indexCacheBackend : tsdb .IndexCacheBackendMemcached ,
346
319
},
347
- "blocks sharding enabled, ingester gRPC streaming enabled, memcached index cache, bucket index enabled" : {
348
- blocksShardingEnabled : true ,
349
- ingesterStreamingEnabled : true ,
350
- indexCacheBackend : tsdb .IndexCacheBackendMemcached ,
351
- bucketIndexEnabled : true ,
320
+ "blocks sharding enabled, memcached index cache, bucket index enabled" : {
321
+ blocksShardingEnabled : true ,
322
+ indexCacheBackend : tsdb .IndexCacheBackendMemcached ,
323
+ bucketIndexEnabled : true ,
352
324
},
353
- "blocks sharding disabled, ingester gRPC streaming disabled, redis index cache" : {
354
- blocksShardingEnabled : false ,
355
- ingesterStreamingEnabled : false ,
356
- indexCacheBackend : tsdb .IndexCacheBackendRedis ,
325
+ "blocks sharding disabled,redis index cache" : {
326
+ blocksShardingEnabled : false ,
327
+ indexCacheBackend : tsdb .IndexCacheBackendRedis ,
357
328
},
358
- "blocks sharding enabled, ingester gRPC streaming enabled, redis index cache" : {
359
- blocksShardingEnabled : true ,
360
- ingesterStreamingEnabled : true ,
361
- indexCacheBackend : tsdb .IndexCacheBackendRedis ,
329
+ "blocks sharding enabled, redis index cache" : {
330
+ blocksShardingEnabled : true ,
331
+ indexCacheBackend : tsdb .IndexCacheBackendRedis ,
362
332
},
363
- "blocks sharding enabled, ingester gRPC streaming enabled, redis index cache, bucket index enabled" : {
364
- blocksShardingEnabled : true ,
365
- ingesterStreamingEnabled : true ,
366
- indexCacheBackend : tsdb .IndexCacheBackendRedis ,
367
- bucketIndexEnabled : true ,
333
+ "blocks sharding enabled, redis index cache, bucket index enabled" : {
334
+ blocksShardingEnabled : true ,
335
+ indexCacheBackend : tsdb .IndexCacheBackendRedis ,
336
+ bucketIndexEnabled : true ,
368
337
},
369
338
}
370
339
@@ -398,7 +367,6 @@ func TestQuerierWithBlocksStorageRunningInSingleBinaryMode(t *testing.T) {
398
367
"-blocks-storage.tsdb.retention-period" : ((blockRangePeriod * 2 ) - 1 ).String (),
399
368
"-blocks-storage.bucket-store.index-cache.backend" : testCfg .indexCacheBackend ,
400
369
"-blocks-storage.bucket-store.bucket-index.enabled" : strconv .FormatBool (testCfg .bucketIndexEnabled ),
401
- "-querier.ingester-streaming" : strconv .FormatBool (testCfg .ingesterStreamingEnabled ),
402
370
"-querier.query-store-for-labels-enabled" : "true" ,
403
371
"-querier.thanos-engine" : strconv .FormatBool (thanosEngine ),
404
372
// Ingester.
@@ -1041,7 +1009,6 @@ func TestQueryLimitsWithBlocksStorageRunningInMicroServices(t *testing.T) {
1041
1009
"-blocks-storage.tsdb.ship-interval" : "1s" ,
1042
1010
"-blocks-storage.bucket-store.sync-interval" : "1s" ,
1043
1011
"-blocks-storage.tsdb.retention-period" : ((blockRangePeriod * 2 ) - 1 ).String (),
1044
- "-querier.ingester-streaming" : "true" ,
1045
1012
"-querier.query-store-for-labels-enabled" : "true" ,
1046
1013
"-querier.max-fetched-series-per-query" : "3" ,
1047
1014
})
0 commit comments