stanley-king 3 rokov pred
rodič
commit
bcc76c5295

+ 1 - 1
docker/compose/xyz/conf/php/mch-spwan-start

@@ -1,6 +1,6 @@
 #!/bin/sh
 set -e
-spawn-fcgi -a 0.0.0.0 -p 9102 -F 10 -f "php /var/www/html/mchsrv/mchsrv_run.php"
+spawn-fcgi -a 0.0.0.0 -p 9102 -F 20 -f "php /var/www/html/mchsrv/mchsrv_run.php"
 
 
 time=$(date "+%Y%m%d")

+ 3 - 3
docker/compose/xyzt/conf/nginx/nginx.conf

@@ -1,5 +1,5 @@
 user nginx;
-worker_processes  8;
+worker_processes  32;
 error_log   /var/error.log  info;
 worker_rlimit_nofile 10240;
 
@@ -17,10 +17,10 @@ http
     fastcgi_buffers 8 32k;
     underscores_in_headers on;
     client_max_body_size 1024M;
-    tcp_nopush on;
+    #tcp_nopush on;
 
     sendfile            on;
-    keepalive_timeout   65;
+    keepalive_timeout   300;
 
     log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                       '$status $body_bytes_sent "$http_referer" '

+ 1 - 1
docker/compose/xyzt/conf/php/mobile-spwan-start

@@ -1,6 +1,6 @@
 #!/bin/sh
 set -e
-spawn-fcgi -a 0.0.0.0 -p 9100 -F 20 -f "php /var/www/html/mobile/mobile_run.php"
+spawn-fcgi -a 0.0.0.0 -p 9100 -F 48 -f "php /var/www/html/mobile/mobile_run.php"
 
 time=$(date "+%Y%m%d")
 

+ 4 - 1
server/send_refillex.php

@@ -35,10 +35,13 @@ class RefillSender
         $count = self::co_orders;
         $time = time() * 1000 + $index;
 
+        $pThis = $this;
         for ($i = 0; $i < $count; $i++)
         {
             Log::record(__FUNCTION__ . " index={$i}",Log::DEBUG);
-            $this->push_order(1092, $time, $i);
+            go(function () use ($pThis,$time,$i) {
+                $pThis->push_order(1092, $time, $i);
+            });
         }
     }