User Tools

Site Tools


сервис_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/03/14 15:19]
val [Прокси "красивого" URL в приложение (пример 3)]
сервис_http [2024/05/05 18:37]
val [HTTPS Прокси (пример 4)]
Line 87: Line 87:
 ==== CentOS ==== ==== CentOS ====
  
-  * Сервис Firewall [[Сервис Firewall#​CentOS ​7]]+  * Сервис Firewall [[Сервис Firewall#​CentOS]]
  
 <​code>​ <​code>​
Line 1031: Line 1031:
             proxy_pass http://​192.168.13.64;​             proxy_pass http://​192.168.13.64;​
  
-            ​proxy_set_header Host            $host; +#            ​proxy_set_header Host            $host; 
-            proxy_set_header X-Forwarded-For $remote_addr;​+           ​proxy_set_header X-Forwarded-For $remote_addr;​
  
 #            proxy_set_header X-Forwarded-Proto $scheme; #            proxy_set_header X-Forwarded-Proto $scheme;
Line 1042: Line 1042:
  
   * [[#​Подключение,​ тестирование,​ применение и мониторинг конфигурации]]   * [[#​Подключение,​ тестирование,​ применение и мониторинг конфигурации]]
 +
 +===== Нагрузочное тестирование =====
 +
 +  * [[Сервис INETD]]
 +
 +  * [[https://​github.com/​wg/​wrk|wrk - a HTTP benchmarking tool]]
 +
 +  * [[https://​lindevs.com/​install-vegeta-on-ubuntu|Install Vegeta on Ubuntu 20.04]]
 +  * [[https://​github.com/​tsenart/​vegeta/​releases|github/​tsenart/​vegeta/​releases]]
 +  * [[https://​val.bmstu.ru/​unix/​WWW/​vegeta_12.11.0_linux_amd64.tar.gz]]
 +
 +<​code>​
 +external-host#​ curl http://​192.168.13.10:​8000
 +
 +external-host#​ echo "GET http://​192.168.13.10:​8000"​ | vegeta attack -duration=20s -rate=100 | vegeta report
 +
 +server# tail -f /​var/​log/​syslog
 +</​code>​
 +
сервис_http.txt · Last modified: 2024/05/15 11:08 by val