redis-cluster.config.php 540 B

1234567891011121314151617181920
  1. <?php
  2. $CONFIG = [
  3. 'memcache.local' => '\\OC\\Memcache\\Redis',
  4. 'memcache.distributed' => '\\OC\\Memcache\\Redis',
  5. 'memcache.locking' => '\\OC\\Memcache\\Redis',
  6. 'redis.cluster' => [
  7. 'seeds' => [ // provide some/all of the cluster servers to bootstrap discovery, port required
  8. 'cache-cluster:7000',
  9. 'cache-cluster:7001',
  10. 'cache-cluster:7002',
  11. 'cache-cluster:7003',
  12. 'cache-cluster:7004',
  13. 'cache-cluster:7005'
  14. ],
  15. 'timeout' => 0.0,
  16. 'read_timeout' => 0.0,
  17. 'failover_mode' => \RedisCluster::FAILOVER_ERROR
  18. ],
  19. ];