8 months ago

predis many issues

Posted 8 months ago by michaelnguyen547

I am using Redis Labs for redis instance. It is a multi-az setup using AWS.

I often get Redis issues that can not be explained (caught by Sentry.io).

Predis\Connection\ConnectionException Error while writing bytes to the server.

Predis\Connection\ConnectionException Connection timed out

Redis Labs was very adamant that this has nothing to do with their servers. They can not find any evidence the server was down when the errors occurred.

With the help of Google, I've seen many Predis connection/writing bytes to the server issue. This is my config for redis

    'host' => env('REDIS_HOST_QUEUE', ''),
    'password' => env('REDIS_PASSWORD_QUEUE', null),
    'port' => env('REDIS_PORT_QUEUE', 6379),
    'database' => 2,
    'persistent' => true,
    'read_write_timeout' => 60

I feel that 99% this has to do with predis library than the server itself. Any suggestions to fix these predis problems?

Please sign in or create an account to participate in this conversation.