Welcome! Log In Create A New Profile

Advanced

Re: спецэфическая проблема с reuseport

June 08, 2015 12:59PM
Спасибо.
Имеет ли смысл на самых посещаемых listen-сокетах (100к в сутки) использовать reuseport, а на остальных нет?

По поводу лимита мастер процесса, все эти рекомендации я давно сделал, вот что выдает команда su - nginx -c 'ulimit -aHS' -s '/bin/bash'

su - nginx -c 'ulimit -aHS' -s '/bin/bash' core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 95565
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 10240
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 4096
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited

Но команда

for pid in `pidof nginx`; do echo "$(< /proc/$pid/cmdline)"; egrep 'files|Limit' /proc/$pid/limits; echo "Currently open files: $(ls -1 /proc/$pid/fd | wc -l)"; echo; done

выдает

nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
Limit Soft Limit Hard Limit Units
Max open files 1024 4096 files
Subject Author Posted

спецэфическая проблема с reuseport

windos32 June 08, 2015 04:40AM

Re: спецэфическая проблема с reuseport

Maxim Dounin June 08, 2015 11:16AM

Re: спецэфическая проблема с reuseport

windos32 June 08, 2015 12:59PM

Re: спецэфическая проблема с reuseport

Maxim Dounin June 08, 2015 03:06PM

Re: спецэфическая проблема с reuseport

windos32 June 09, 2015 04:53AM

Re: спецэфическая проблема с reuseport

windos32 June 09, 2015 05:14AM

Re: спецэфическая проблема с reuseport

Maxim Dounin June 09, 2015 09:06AM

Re: спецэфическая проблема с reuseport

windos32 June 09, 2015 09:25AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 71
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready