diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-05-16 10:10:25 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-16 10:10:25 -0500 |
commit | 78e6c2dea417f17db52648f6819ab20889e2554c (patch) | |
tree | 2c64ca14e90a276338e41fc76061b90854c48c61 /tests | |
parent | 15f7fe022b222cdc080719d8585df29c8259053a (diff) | |
parent | 0e66c2a38aa86df2b6a1273b0cf4ad95485ce6e7 (diff) | |
download | nextcloud-server-78e6c2dea417f17db52648f6819ab20889e2554c.tar.gz nextcloud-server-78e6c2dea417f17db52648f6819ab20889e2554c.zip |
Merge pull request #4666 from nextcloud/enable-redis-cluster
Add redis cluster tests to our CI jobs
Diffstat (limited to 'tests')
-rw-r--r-- | tests/redis-cluster.config.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/redis-cluster.config.php b/tests/redis-cluster.config.php new file mode 100644 index 00000000000..c7df2a91854 --- /dev/null +++ b/tests/redis-cluster.config.php @@ -0,0 +1,20 @@ +<?php + +$CONFIG = [ + 'memcache.local' => '\\OC\\Memcache\\Redis', + 'memcache.distributed' => '\\OC\\Memcache\\Redis', + 'memcache.locking' => '\\OC\\Memcache\\Redis', + 'redis.cluster' => [ + 'seeds' => [ // provide some/all of the cluster servers to bootstrap discovery, port required + 'localhost:7000', + 'localhost:7001', + 'localhost:7002', + 'localhost:7003', + 'localhost:7004', + 'localhost:7005' + ], + 'timeout' => 0.0, + 'read_timeout' => 0.0, + 'failover_mode' => \RedisCluster::FAILOVER_ERROR + ], +]; |