summaryrefslogtreecommitdiffstats
path: root/tests/redis-cluster.config.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-05-02 18:08:43 -0300
committerMorris Jobke <hey@morrisjobke.de>2017-05-11 17:07:20 -0500
commitf73ca1b77fd1b961181e2a0086a688ffac19603c (patch)
tree936c84a2017ed81a2e3cf914d52c3c4d7c30a172 /tests/redis-cluster.config.php
parentd83f1d96d4541e8e5a686be94b9c03ebb31f5f76 (diff)
downloadnextcloud-server-f73ca1b77fd1b961181e2a0086a688ffac19603c.tar.gz
nextcloud-server-f73ca1b77fd1b961181e2a0086a688ffac19603c.zip
Add redis cluster tests to our CI jobs
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'tests/redis-cluster.config.php')
-rw-r--r--tests/redis-cluster.config.php20
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
+ ],
+];