From 4a462177eff5ddf2199fea4efee78dee1279ee8c Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 20 Feb 2023 12:58:20 +1100 Subject: [PATCH] Stub options to redis sentinel and load balancing --- config/database.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config/database.php b/config/database.php index 68d2b6a06926..ec0694c4110c 100644 --- a/config/database.php +++ b/config/database.php @@ -200,6 +200,7 @@ return [ 'replication' => 'sentinel', 'service' => env('REDIS_SENTINEL_SERVICE', 'mymaster'), 'sentinel_timeout' => 3.0, + // 'load_balancing' => false, 'parameters' => [ 'password' => env('REDIS_PASSWORD', null), 'database' => env('REDIS_DB', 0), @@ -229,3 +230,11 @@ return [ ], ]; + +/** +*'replication' => function () { +* $strategy = new Predis\Replication\ReplicationStrategy(); +* $strategy->disableLoadBalancing(); +* return new Predis\Connection\Replication\SentinelReplication($strategy); +*}]; + */ \ No newline at end of file