Redis cluster
-
Hi WP Redis,
I have been using your plugin for few years. It is very reliable. Thank you.Two questions:
1. In AWS, I have one shard with 2 nodes — primary and a replica. I see cache hits in the primary, but no cache hits in the replica. This made me think that our site is reading only from the primary node and not from the replica. The AWS documentation mentions: “Redis (cluster mode enabled) clusters, use the cluster’s Configuration Endpoint for all operations. You must use a client that supports Redis Cluster (Redis 3.2). You can still read from individual node endpoints (In the API/CLI these are referred to as Read Endpoints).” We would like the read accesses to be load-balanced between the 2 nodes. It appears that this is not happening. Could you shed some light on this? Does WP-Redis support Redis Cluster as mentioned above?2. After some plugin update, we started getting sporadic Connection timeout with the following exception. After this exception, our site appears to become slow. So, I felt maybe after the exception, the wordpress does not recover. For now, I upgraded the redis server thinking maybe the load on the server could be causing the timeout. I have to wait for a day or so to see if that solved the problem. Could you kindly check if this exception is recoverable or anything need to be fixed?
[10-Jul-2020 20:52:35 UTC] PHP Warning: WP Redis: Connection timed out in wp-content/plugins/wp-redis/object-cache.php on line 1296 [10-Jul-2020 20:52:35 UTC] PHP Notice: Undefined property: WP_Object_Cache::$redis in wp-content/plugins/wp-redis/object-cache.php on line 1031 [10-Jul-2020 20:52:35 UTC] PHP Fatal error: Uncaught Error: Call to a member function auth() on null in /var/www/html/ebs/wordpress/web/wp-content/plugins/wp-redis/object-cache.php:1140 Stack trace: #0 wp-content/plugins/wp-redis/object-cache.php(1031): WP_Object_Cache->perform_client_connection() #1 wp-content/plugins/wp-redis/object-cache.php(1340): WP_Object_Cache->_connect_redis() #2 wp-content/plugins/wp-redis/object-cache.php(162): WP_Object_Cache->__construct() #3 wp-includes/load.php(580): wp_cache_init() #4 wp-settings.php(133): wp_start_object_cache() #5 wp-config.php(131): require_once(‘/var/www/html/e…’) #6 wp-load.php(37): require_once(‘/var/www/html/e…’) #7 wp-admin/admin-ajax.php(22): require_once(‘/var/www/html/e…’) #8 {main} thrown in wp-content/plugins/wp-redis/object-cache.php on line 1140Thank you,
Raman
- The topic ‘Redis cluster’ is closed to new replies.