I’ve read the laravel database redis config doc, and google a lot, but find nothing useful.
I’ve tried below configuration, but it only use the last instance. It can select the master for write action, and loadbalance read action between the slaves.
'redis' => [
'client' => 'predis',
'default' => ['tcp://127.0.0.1:6379?role=master','tcp://127.0.0.1:6380','tcp://127.0.0.1:6381'],