rkljw 4 hónapja
szülő
commit
34b5917c1b
4 módosított fájl, 10 hozzáadás és 12 törlés
  1. 2 2
      bin/hyperf.php
  2. 4 4
      config/autoload/async_queue.php
  3. 4 5
      config/autoload/redis.php
  4. 0 1
      runtime/hyperf.pid

+ 2 - 2
bin/hyperf.php

@@ -10,8 +10,8 @@
  */
  */
 ini_set('display_errors', 'on');
 ini_set('display_errors', 'on');
 ini_set('display_startup_errors', 'on');
 ini_set('display_startup_errors', 'on');
-ini_set('memory_limit', '1G');
-
+ini_set('memory_limit', '10G');
+ini_set('default_socket_timeout', -1);
 error_reporting(E_ALL);
 error_reporting(E_ALL);
 
 
 ! defined('BASE_PATH') && define('BASE_PATH', dirname(__DIR__, 1));
 ! defined('BASE_PATH') && define('BASE_PATH', dirname(__DIR__, 1));

+ 4 - 4
config/autoload/async_queue.php

@@ -18,12 +18,12 @@ return [
             'pool' => 'default',
             'pool' => 'default',
         ],
         ],
         'channel' => '{gather}',
         'channel' => '{gather}',
-        'timeout' => 2000,
-        'retry_seconds' => [1,5,10,20],
-        'handle_timeout' => 10000,
+        'timeout' => 2,
+        'retry_seconds' => 5,
+        'handle_timeout' => 10,
         'processes' => 1,
         'processes' => 1,
         'concurrent' => [
         'concurrent' => [
-            'limit' => 15,
+            'limit' => 10,
         ],
         ],
         'max_messages' => 0,
         'max_messages' => 0,
     ],
     ],

+ 4 - 5
config/autoload/redis.php

@@ -19,12 +19,11 @@ return [
         'db' => (int) env('REDIS_DB', 0),
         'db' => (int) env('REDIS_DB', 0),
         'pool' => [
         'pool' => [
             'min_connections' => 1,
             'min_connections' => 1,
-            'max_connections' => 100,
-            'connect_timeout' => 1000.0,
-            'wait_timeout' => 30000.0,
+            'max_connections' => 10,
+            'connect_timeout' => 10.0,
+            'wait_timeout' => 3.0,
             'heartbeat' => -1,
             'heartbeat' => -1,
-            'max_idle_time' => (float) env('REDIS_MAX_IDLE_TIME', 600),
-            'max_attempts' => 5,
+            'max_idle_time' => (float) env('REDIS_MAX_IDLE_TIME', 60),
         ],
         ],
 
 
     ],
     ],

+ 0 - 1
runtime/hyperf.pid

@@ -1 +0,0 @@
-6759