Answer the question
In order to leave comments, you need to log in
How to make Laravel work with Redis Cluster?
Good afternoon colleagues, faced the following problem. There are 4 app on which the Redis cluster is installed and built, but when trying to use it, the following error occurs.
.env
REDIS_HOST=10.85.41.31
REDIS_PASSWORD=null
REDIS_PORT=7000
'redis' => [
'client' => env('REDIS_CLIENT', 'phpredis'),
'cluster' => true,
'clusters' => [
'default' => [
[
'host' => env('REDIS_HOST', 'localhost'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', 6379),
'database' => 0,
],
],
'cache' => [
[
'url' => env('REDIS_URL'),
'host' => env('REDIS_HOST', '127.0.0.1'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', '6379'),
'database' => env('REDIS_CACHE_DB', '1'),
]
],
],
],
cluster_state:ok
cluster_slots_assigned:16384
cluster_slots_ok:16384
cluster_slots_pfail:0
cluster_slots_fail:0
cluster_known_nodes:12
cluster_size:4
cluster_current_epoch:14
cluster_my_epoch:3
cluster_stats_messages_ping_sent:16957537
cluster_stats_messages_pong_sent:16783453
cluster_stats_messages_meet_sent:1
cluster_stats_messages_fail_sent:22
cluster_stats_messages_auth-ack_sent:2
cluster_stats_messages_update_sent:1
cluster_stats_messages_sent:33741016
cluster_stats_messages_ping_received:16783453
cluster_stats_messages_pong_received:16957513
cluster_stats_messages_fail_received:2
cluster_stats_messages_auth-req_received:2
cluster_stats_messages_received:33740970
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question