File tree Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ services:
37
37
bash -c "apt-get update > /dev/null
38
38
&& apt-get install --no-install-recommends --no-install-suggests -y iproute2 iputils-ping > /dev/null
39
39
&& rm -rf /var/lib/apt/lists/*
40
- && tc qdisc add dev eth0 root netem delay ${DELAY_TIME:-20ms}
40
+ && ( tc qdisc add dev eth0 root netem delay ${DELAY_TIME:-20ms} || echo skipped)
41
41
&& redis-server
42
42
--maxmemory 64mb
43
43
--maxmemory-policy allkeys-lru
@@ -101,9 +101,11 @@ services:
101
101
condition : service_healthy
102
102
node9 :
103
103
condition : service_healthy
104
- envoy :
104
+ proxy :
105
105
image : envoyproxy/envoy:v1.23.1
106
+ restart : " ${RESTART_POLICY:-always}"
106
107
ports :
108
+ - " 3000:10000"
107
109
- " 7000:10001"
108
110
volumes :
109
111
- ./test/proxy/envoy.yaml:/etc/envoy/envoy.yaml
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ def bench_pipeline_echo
97
97
private
98
98
99
99
def new_test_client
100
- ::RedisClient . config ( **TEST_GENERIC_OPTIONS . merge ( port : 7000 , protocol : 2 ) ) . new_client
100
+ ::RedisClient . config ( **TEST_GENERIC_OPTIONS . merge ( BENCH_PROXY_OPTIONS ) ) . new_client
101
101
end
102
102
103
103
def new_cluster_client
Original file line number Diff line number Diff line change 5
5
admin :
6
6
address :
7
7
socket_address :
8
- protocol : TCP
9
8
address : 0.0.0.0
10
9
port_value : 10000
11
10
static_resources :
@@ -49,3 +48,9 @@ static_resources:
49
48
endpoints :
50
49
- lb_endpoints :
51
50
- endpoint : { address: { socket_address: { address: node1, port_value: 6379 } } }
51
+ layered_runtime :
52
+ layers :
53
+ - name : redis
54
+ static_layer :
55
+ overload :
56
+ global_downstream_max_connections : 100
Original file line number Diff line number Diff line change 63
63
TEST_REDIS_MAJOR_VERSION = Integer ( TEST_REDIS_VERSION . split ( '.' ) . first )
64
64
_tmp_cli . close
65
65
66
+ BENCH_PROXY_OPTIONS = { port : 7000 , protocol : 2 } . freeze
67
+
66
68
# rubocop:enable Lint/UnderscorePrefixedVariableName
You can’t perform that action at this time.
0 commit comments