Skip to content

Commit 49e5f37

Browse files
authored
test: enable redis-cluster-proxy benchmark (#158)
1 parent 9e8d24c commit 49e5f37

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

compose.latency.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,15 @@ services:
112112
depends_on:
113113
clustering:
114114
condition: service_completed_successfully
115-
# redis-cluster-proxy:
116-
# image: ghcr.io/redis-rb/redis-cluster-proxy:latest
117-
# restart: "${RESTART_POLICY:-always}"
118-
# command:
119-
# - "--bind"
120-
# - "0.0.0.0"
121-
# - "node1:6379"
122-
# ports:
123-
# - "7001:7777"
124-
# depends_on:
125-
# clustering:
126-
# condition: service_completed_successfully
115+
redis-cluster-proxy:
116+
image: ghcr.io/redis-rb/redis-cluster-proxy:latest
117+
restart: "${RESTART_POLICY:-always}"
118+
command:
119+
- "--bind"
120+
- "0.0.0.0"
121+
- "node1:6379"
122+
ports:
123+
- "7001:7777"
124+
depends_on:
125+
clustering:
126+
condition: service_completed_successfully

test/bench_command.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@ def new_test_client
8484
end
8585
end
8686

87-
# class RedisClusterProxy < BenchmarkWrapper
88-
# include BenchmarkMixin
89-
# include BenchmarkMixinForProxy
87+
class RedisClusterProxy < BenchmarkWrapper
88+
include BenchmarkMixin
89+
include BenchmarkMixinForProxy
9090

91-
# private
91+
private
9292

93-
# def new_test_client
94-
# ::RedisClient.config(**TEST_GENERIC_OPTIONS.merge(BENCH_REDIS_CLUSTER_PROXY_OPTIONS)).new_client
95-
# end
96-
# end
93+
def new_test_client
94+
::RedisClient.config(**TEST_GENERIC_OPTIONS.merge(BENCH_REDIS_CLUSTER_PROXY_OPTIONS)).new_client
95+
end
96+
end
9797
end

0 commit comments

Comments
 (0)