Ok I've set listen = 16384
this is in the vassal, right?
also echoed this value to sys.net.core.somaxconn
restarted nginx (just to make sure :D)
no change
net.core.bpf_jit_enable = 0
net.core.busy_poll = 0
net.core.busy_read = 0
net.core.dev_weight = 64
net.core.flow_limit_cpu_bitmap = 00000000,00000000
net.core.flow_limit_table_len = 4096
net.core.message_burst = 10
net.core.message_cost = 5
net.core.netdev_budget = 300
net.core.netdev_max_backlog = 1000
net.core.netdev_tstamp_prequeue = 1
net.core.optmem_max = 20480
net.core.rmem_default = 212992
net.core.rmem_max = 212992
net.core.rps_sock_flow_entries = 0
net.core.somaxconn = 16384
net.core.warnings = 1
net.core.wmem_default = 212992
net.core.wmem_max = 212992
net.core.xfrm_acq_expires = 30
net.core.xfrm_aevent_etime = 10
net.core.xfrm_aevent_rseqth = 2
net.core.xfrm_larval_drop = 1
The only component left is nginx. I'll see if there's an option I can set.
Assuming uwsgi honors the limit.
This is on archlinux btw. 3.11.1 kernel
On 25.09.2013 12:57, Roberto De Ioris wrote:
Hello,
I was doing a simple ab -n10000 -c200 test
with various php projects locally.
And the results across all tests were ~9800 non 2xx responses.
Now I've read the error log and it said:
connect() to unix:/tmp/uwsgi-php.sock failed (11: Resource temporarily
unavailable) while connecting to upstream
Now I've googled and apparently that errormessage says that the socket
is blocking and the connection was blocked because of too many processes
trying to query it.
My question is, how do I increase this limitation?
cat /proc/sys/fs/file-max
3249525
ipcs -l
You have hit the listen queue limit (default 100). Increse it (--listen n)
If the parameter you have specified is higher than the value of
/proc/sys/net/core/somaxconn you will get an error on startup
------ Messages Limits --------
max queues system wide = 32768
max size of message (bytes) = 8192
default max size of queue (bytes) = 16384
------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 32768
max total shared memory (kbytes) = 8388608
min seg size (bytes) = 1
------ Semaphore Limits --------
max number of arrays = 128
max semaphores per array = 250
max semaphores system wide = 32000
max ops per semop call = 32
semaphore max value = 32767
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi