redis-cluster.config.php 516 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. 'localhost:7000',
  9. 'localhost:7001',
  10. 'localhost:7002',
  11. 'localhost:7003',
  12. 'localhost:7004',
  13. 'localhost:7005'
  14. ],
  15. 'timeout' => 0.0,
  16. 'read_timeout' => 0.0,
  17. 'failover_mode' => \RedisCluster::FAILOVER_ERROR
  18. ],
  19. ];