1
0

redis-cluster.config.php 667 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. $CONFIG = [
  7. 'memcache.local' => '\\OC\\Memcache\\Redis',
  8. 'memcache.distributed' => '\\OC\\Memcache\\Redis',
  9. 'memcache.locking' => '\\OC\\Memcache\\Redis',
  10. 'redis.cluster' => [
  11. 'seeds' => [ // provide some/all of the cluster servers to bootstrap discovery, port required
  12. 'cache-cluster:7000',
  13. 'cache-cluster:7001',
  14. 'cache-cluster:7002',
  15. 'cache-cluster:7003',
  16. 'cache-cluster:7004',
  17. 'cache-cluster:7005'
  18. ],
  19. 'timeout' => 0.0,
  20. 'read_timeout' => 0.0,
  21. 'failover_mode' => \RedisCluster::FAILOVER_ERROR
  22. ],
  23. ];