Skip to content

Redis Cluster Error - Error processing response from Redis node! #1633

@kushalkh

Description

@kushalkh

Expected behaviour

try{
$data = $redisCluster->get("some_key");
}
catch(RedisClusterException $e){
echo $e->getMessage();
}

This should work always and it does most of the times except the intermittent issue.

Actual behaviour

Intermittent issue on Redis Cluster. The RedisClusterException message says "Error Message: Error processing response from Redis node!" on "get" command.

We're running 36 masters with 1 slave per master. Slaves are set to be used for read only if the master is unreachable.

Read and write timeouts are set to 30 sec each.

I'm seeing this behaviour on

  • OS: Linux (CentOS 7)
  • Redis: 5.0.5
  • PHP: 7.0.33
  • phpredis: 5.0.2

Steps to reproduce, backtrace or example script

Very intermittent. No guaranteed way of reproducing and it happens on random keys without any specific pattern. All instances are always up and running.

I've checked

  • [x ] There is no similar issue from other users
  • Issue isn't fixed in develop branch

Please let me know if there's any way to check the specific reason for this error. I believe it can return this error in multiple scenarios.
One interesting thing is, before we increased read and write timeouts from 1 sec to 30 sec, we were getting similar intermittent "Timed out finding data in node" error.

Is this error also network related? Or can it be something else? What's the best way to figure it out?

Thanks for the help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions