• # Error establishing a Redis connection
    
    read error on connection to 127.0.0.1:6379
    
    WordPress is unable to establish a connection to Redis. This means that the connection information in your wp-config.php file are incorrect, or that the Redis server is not reachable.
    
    * Is the correct Redis host and port set?
    * Is the Redis server running?
    
    If you need help, please read the [installation instructions](https://github.com/rhubarbgroup/redis-cache/blob/develop/INSTALL.md).
    
    To disable Redis, delete the object-cache.php file in the /wp-content/ directory.

    Sometimes, when I post a new article into my blog or get plugins upgrade. I got these errors. Then, I press Refresh on the Browser, the site is back to working.

    Seems, the Redis server is down for a few seconds, or Redis object cache plugin is unable to connect to Redis server for a few seconds.

    Do you know why? Or how to optimize Redis server to fix this error?

    Thank you

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Till Krüss

    (@tillkruess)

    Does Redis Server have enough connections and memory available?

    Thread Starter catuyen

    (@catuyen)

    Max clients is 10000 and maxmemory is 1GB

    I will increase to 20k clients to test.

    Thanks

    Plugin Author Till Krüss

    (@tillkruess)

    What are your timeouts set to?

    Can you post your diagnostics?

    I’ve also noticed a lot more failures recently. I’ve been using the plugin for 2-3 years on high load site and I never saw an error like that, but for the past month or so this is happening almost on the daily basis.

    It started with 2.4.1 for me (upgraded from 2.2.2).

    Plugin Author Till Krüss

    (@tillkruess)

    @mb00: Prior to v2.3.0 all failures were silently ignored, which can cause stale/corrupt cache data. If you notice a lot more failures, increase timeouts and monitor Redis Server.

    Thread Starter catuyen

    (@catuyen)

    What are your timeouts set to?

    What timeout number do you recommend ? 30 or 300?

    127.0.0.1:6379> config get max timeout
    1) “timeout”
    2) “0”

    Plugin Author Till Krüss

    (@tillkruess)

    I mean on the WP_REDIS_TIMEOUT*, not within Redis itself.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Error establishing a Redis connection’ is closed to new replies.