Skip to content

half of redis server are not available! #22

Closed
@nimaamiri92

Description

@nimaamiri92

What is this this error?

It's not possible to acquire a lock because at least half of the Redis serv er are not available.

This is my code:

        $redis = new Client;
        $redis->auth(REDIS-PASSWORD,null);
        $redis->connect();
        $my_range = range(1,100);

        foreach ($my_range as $each_range){
            $mutex = new PredisMutex([$redis], "balance");
            $mutex->synchronized(function () use($each_range) {
                $this->use_this_range($each_range);
            });
        }

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