|
@@ -19,11 +19,39 @@ return [
|
|
|
'db' => (int) env('REDIS_DB', 0),
|
|
|
'pool' => [
|
|
|
'min_connections' => 1,
|
|
|
- 'max_connections' => 10,
|
|
|
- 'connect_timeout' => 10.0,
|
|
|
- 'wait_timeout' => 3.0,
|
|
|
+ 'max_connections' => 100,
|
|
|
+ 'connect_timeout' => 100000000.0,
|
|
|
+ 'wait_timeout' => 30000000.0,
|
|
|
'heartbeat' => -1,
|
|
|
- 'max_idle_time' => (float) env('REDIS_MAX_IDLE_TIME', 60),
|
|
|
+ 'max_idle_time' => (float) env('REDIS_MAX_IDLE_TIME', 6000000000),
|
|
|
],
|
|
|
+ 'driver' => Hyperf\AsyncQueue\Driver\RedisDriver::class,
|
|
|
+ 'redis' => [
|
|
|
+ 'pool' => 'default'
|
|
|
+ ],
|
|
|
+ 'channel' => '{queue:import}',
|
|
|
+ 'timeout' => 20,
|
|
|
+ 'retry_seconds' => 5,
|
|
|
+ 'handle_timeout' => 10,
|
|
|
+ 'processes' => 100,
|
|
|
+ 'concurrent' => [
|
|
|
+ 'limit' => 10000,
|
|
|
+ ],
|
|
|
+ 'max_messages' => 0,
|
|
|
+ ],
|
|
|
+ 'import' => [
|
|
|
+ 'driver' => Hyperf\AsyncQueue\Driver\RedisDriver::class,
|
|
|
+ 'redis' => [
|
|
|
+ 'pool' => 'default'
|
|
|
+ ],
|
|
|
+ 'channel' => '{queue:import}',
|
|
|
+ 'timeout' => 20,
|
|
|
+ 'retry_seconds' => 5,
|
|
|
+ 'handle_timeout' => 10,
|
|
|
+ 'processes' => 100,
|
|
|
+ 'concurrent' => [
|
|
|
+ 'limit' => 10000,
|
|
|
+ ],
|
|
|
+ 'max_messages' => 0,
|
|
|
],
|
|
|
];
|