Replication & Clustering Question
-
Hello,
Sorry for such n00b question..
I have 3 web node each with Redis running (as master on each).
I have Redis as PHP Session handler in php.ini on each like so:
session.save_handler = redis
session.save_path = “tcp://1.1.1.1:6379?auth=pass?database=10,tcp://2.2.2.2:6379?auth=pass?database=10,tcp://3.3.3.3:6379?auth=pass?database=10”how do I then get WordPress to use all 3?
Currently I have in wp-config.php
define(‘WP_REDIS_HOST’, ‘1.1.1.1’);
define(‘WP_REDIS_PORT’, ‘6379’);
define(‘WP_REDIS_DATABASE’, ‘1’);
define(‘WP_REDIS_PASSWORD’, ‘pass’);
define(‘WP_CACHE_KEY_SALT’, ‘example.com’);would I use Master-Slave or Clustering from https://wordpress.org/plugins/redis-cache/other_notes/#Replication-&-Clustering
Maybe:
define( ‘WP_REDIS_CLUSTER’, [
‘tcp://1.1.1.1:6379?database=15&alias=node-01’,
‘tcp://2.2.2.2:6379?database=15&alias=node-02’,
‘tcp://3.3.3.3:6379?database=15&alias=node-02’,
] );
define(‘WP_REDIS_PASSWORD’, ‘pass’);
define(‘WP_CACHE_KEY_SALT’, ‘example.com’);Thanks for any help.
The topic ‘Replication & Clustering Question’ is closed to new replies.