Answer the question
In order to leave comments, you need to log in
How to check nginx under load?
Hello.
There was a task to check how many connections nginx will withstand. As usual I took ab from apache2-utils.
But it was not there, for some reason the test stops. And the tested server is not even loaded by 10%.
Ubuntu 14.04.1 LTS server (both testing and testing).
Firewall turned off.
nginx settings:
user www-data;
worker_processes 2;
pid /run/nginx.pid;
events {
worker_connections 2048;
# multi_accept on;
}
http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 15;
types_hash_max_size 2048;
server_tokens off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
# access_log /var/log/nginx/access.log;
access_log off;
error_log /var/log/nginx/error.log;
gzip on;
gzip_disable "msie6";
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
Answer the question
In order to leave comments, you need to log in
I support the idea with Yandex tank.
I myself use httperf. At it generation of parallel connections is "more honest" (than in ab). An example of such testing is here: alekciy.livejournal.com/10471.html ("Test Methodology").
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question