Slots cache not repopulated if all Redis cluster servers change their IPs(In AWS happens during version upgrade) · Issue #2808 · phpredis/phpredis · GitHub
Skip to content

Slots cache not repopulated if all Redis cluster servers change their IPs(In AWS happens during version upgrade) #2808

@vityank

Description

@vityank

During Valkey/Redis upgrade in AWS ElastiCache cluster all IPs of master servers get changed(Swapped with slaves or completely new - We don't know yet). If Slots caching is enabled(And only AWS DNS name is passed to the class constructor and used as a hash key in caching) it uses the old IPs until PHP_FPM is restarted to reset the cache, causing all operations in a following requests to fail with an error "Can't communicate with any node in the cluster".

PR:
#2807

We didn't test the codechange yet, until next cluster upgrade.

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