I wonder if it has an actual performance impact for high-load projects when the clusters are actually shuffled. I haven't checked this already but wanted to dump this idea here as an RFC.
Considerations
This could have performance gains in case it turns out that it is helpful.
Proposal(s)
Add shuffle to RedisClusterResourceManager where the seeds are passed to the RedisCluster#__construct.
RFC
Goal
Shuffle redis nodes before passing them to
RedisCluster
instantiation.Background
I somehow stumbled over https://symfony.com/doc/current/configuration/env_var_processors.html and saw the example of
shuffle
in the documentation:I wonder if it has an actual performance impact for high-load projects when the clusters are actually shuffled. I haven't checked this already but wanted to dump this idea here as an RFC.
Considerations
This could have performance gains in case it turns out that it is helpful.
Proposal(s)
Add
shuffle
toRedisClusterResourceManager
where the seeds are passed to theRedisCluster#__construct
.Appendix
Ref: https://github.com/phpredis/phpredis/discussions/2457#discussioncomment-9843874