сервис_http

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
сервис_http [2024/05/05 18:37]
val [HTTPS Прокси (пример 4)]
сервис_http [2024/05/07 14:23]
val [Нагрузочное тестирование]
Line 1014: Line 1014:
  
 <​code>​ <​code>​
-gate1.corp13.un:​~# cat /​etc/​nginx/​sites-available/​gowebd+gate1# cat /​etc/​nginx/​sites-available/​gowebd
 </​code><​code>​ </​code><​code>​
     server {     server {
         listen 80;         listen 80;
-        server_name gowebd.corp13.un; +        server_name gowebd.corpX.un; 
-        return 301 https://​gowebd.corp13.un$request_uri;​+        return 301 https://​gowebd.corpX.un$request_uri;​
     }     }
  
     server {     server {
         listen 443 ssl;         listen 443 ssl;
-        server_name gowebd.corp13.un;+        server_name gowebd.corpX.un;
         ssl_certificate /​root/​gowebd.crt;​         ssl_certificate /​root/​gowebd.crt;​
         ssl_certificate_key /​root/​gowebd.key;​         ssl_certificate_key /​root/​gowebd.key;​
  
         location / {         location / {
-            ​proxy_pass http://​192.168.13.64;+#            ​proxy_pass http://​192.168.X.10:​8000;​ 
 +#            proxy_pass http://​192.168.X.64;
  
 #            proxy_set_header Host            $host; #            proxy_set_header Host            $host;
Line 1046: Line 1047:
  
   * [[Сервис INETD]]   * [[Сервис INETD]]
 +
 +==== curl ====
 +
 +  * [[https://​www.aloneguid.uk/​posts/​2022/​09/​curl-stress-testing/​|Stress Testing with cURL]]
 +
 +<​code>​
 +userX@gate.isp.un$ seq 1 1000 | xargs -P100 -I{} curl http://​192.168.X.10:​8000/​path{} > /dev/null 2>&1
 +</​code>​
 +
 +==== wrk ====
  
   * [[https://​github.com/​wg/​wrk|wrk - a HTTP benchmarking tool]]   * [[https://​github.com/​wg/​wrk|wrk - a HTTP benchmarking tool]]
 +
 +==== vegeta ====
  
   * [[https://​lindevs.com/​install-vegeta-on-ubuntu|Install Vegeta on Ubuntu 20.04]]   * [[https://​lindevs.com/​install-vegeta-on-ubuntu|Install Vegeta on Ubuntu 20.04]]
сервис_http.txt · Last modified: 2024/05/15 11:08 by val