Here is my uwsgi reload log: ...gracefully killing workers... Gracefully killing worker 2 (pid: 14095)... Gracefully killing worker 1 (pid: 14094)... Gracefully killing worker 4 (pid: 14097)... Gracefully killing worker 8 (pid: 14101)... Gracefully killing worker 5 (pid: 14098)... Gracefully killing worker 7 (pid: 14100)... Gracefully killing worker 12 (pid: 14105)... Gracefully killing worker 3 (pid: 14096)... Gracefully killing worker 19 (pid: 14112)... Gracefully killing worker 15 (pid: 14108)... Gracefully killing worker 6 (pid: 14099)... Gracefully killing worker 9 (pid: 14102)... Gracefully killing worker 20 (pid: 14113)... Gracefully killing worker 14 (pid: 14107)... Gracefully killing worker 17 (pid: 14110)... Gracefully killing worker 13 (pid: 14106)... Gracefully killing worker 23 (pid: 14116)... Gracefully killing worker 22 (pid: 14115)... Gracefully killing worker 21 (pid: 14114)... Gracefully killing worker 26 (pid: 14119)... Gracefully killing worker 25 (pid: 14118)... Gracefully killing worker 27 (pid: 14120)... Gracefully killing worker 32 (pid: 14125)... Gracefully killing worker 16 (pid: 14109)... Gracefully killing worker 33 (pid: 14126)... Gracefully killing worker 35 (pid: 14128)... Gracefully killing worker 34 (pid: 14127)... Gracefully killing worker 29 (pid: 14122)... Gracefully killing worker 18 (pid: 14111)... Gracefully killing worker 36 (pid: 14129)... Gracefully killing worker 24 (pid: 14117)... Gracefully killing worker 46 (pid: 14139)... Gracefully killing worker 42 (pid: 14135)... Gracefully killing worker 31 (pid: 14124)... Gracefully killing worker 50 (pid: 14143)... Gracefully killing worker 39 (pid: 14132)... Gracefully killing worker 47 (pid: 14140)... Gracefully killing worker 28 (pid: 14121)... Gracefully killing worker 52 (pid: 14145)... Gracefully killing worker 40 (pid: 14133)... Gracefully killing worker 51 (pid: 14144)... Gracefully killing worker 37 (pid: 14130)... Gracefully killing worker 56 (pid: 14149)... Gracefully killing worker 58 (pid: 14151)... Gracefully killing worker 55 (pid: 14148)... Gracefully killing worker 45 (pid: 14138)... Gracefully killing worker 43 (pid: 14136)... Gracefully killing worker 59 (pid: 14152)... Gracefully killing worker 49 (pid: 14142)... Gracefully killing worker 61 (pid: 14154)... Gracefully killing worker 44 (pid: 14137)... Gracefully killing worker 10 (pid: 14103)... Gracefully killing worker 53 (pid: 14146)... Gracefully killing worker 48 (pid: 14141)... Gracefully killing worker 54 (pid: 14147)... Gracefully killing worker 63 (pid: 14156)... Gracefully killing worker 11 (pid: 14104)... Gracefully killing worker 57 (pid: 14150)... Gracefully killing worker 38 (pid: 14131)... Gracefully killing worker 30 (pid: 14123)... Gracefully killing worker 41 (pid: 14134)... Gracefully killing worker 62 (pid: 14155)... Gracefully killing worker 60 (pid: 14153)... Gracefully killing worker 64 (pid: 14157)... worker 1 buried after 1 seconds worker 2 buried after 1 seconds worker 3 buried after 1 seconds worker 4 buried after 1 seconds worker 5 buried after 1 seconds worker 6 buried after 1 seconds worker 7 buried after 1 seconds worker 8 buried after 1 seconds worker 9 buried after 1 seconds worker 10 buried after 1 seconds worker 11 buried after 1 seconds worker 12 buried after 1 seconds worker 13 buried after 1 seconds worker 14 buried after 1 seconds worker 15 buried after 1 seconds worker 16 buried after 1 seconds worker 17 buried after 1 seconds worker 18 buried after 1 seconds worker 19 buried after 1 seconds worker 20 buried after 1 seconds worker 21 buried after 1 seconds worker 22 buried after 1 seconds worker 23 buried after 1 seconds worker 24 buried after 1 seconds worker 25 buried after 1 seconds worker 26 buried after 1 seconds worker 27 buried after 1 seconds worker 28 buried after 1 seconds worker 29 buried after 1 seconds worker 30 buried after 1 seconds worker 31 buried after 1 seconds worker 32 buried after 1 seconds worker 33 buried after 1 seconds worker 34 buried after 1 seconds worker 35 buried after 1 seconds worker 36 buried after 1 seconds worker 37 buried after 1 seconds worker 38 buried after 1 seconds worker 39 buried after 1 seconds worker 40 buried after 1 seconds worker 41 buried after 1 seconds worker 42 buried after 1 seconds worker 43 buried after 1 seconds worker 44 buried after 1 seconds worker 45 buried after 1 seconds worker 46 buried after 1 seconds worker 47 buried after 1 seconds worker 48 buried after 1 seconds worker 49 buried after 1 seconds worker 50 buried after 1 seconds worker 51 buried after 1 seconds worker 52 buried after 1 seconds worker 53 buried after 1 seconds worker 54 buried after 1 seconds worker 55 buried after 1 seconds worker 56 buried after 1 seconds worker 57 buried after 1 seconds worker 58 buried after 1 seconds worker 59 buried after 1 seconds worker 60 buried after 1 seconds worker 61 buried after 1 seconds worker 62 buried after 1 seconds worker 64 buried after 1 seconds worker 63 buried after 3 seconds binary reloading uWSGI... chdir() to / closing all non-uwsgi socket fds > 2 (max_fd = 65535)... found fd 3 mapped to socket 0 (0.0.0.0:4004) running /home/projects/mkey/virtualenv/bin/uwsgi [uWSGI] getting YAML configuration from /home/projects/mkey/etc/uwsgi.yaml *** Starting uWSGI 1.9.20 (64bit) on [Fri Dec 6 17:49:46 2013] *** compiled with version: 4.7.2 on 21 November 2013 16:45:42 os: Linux-3.2.0-4-amd64 #1 SMP Debian 3.2.46-1 nodename: hz175-96 machine: x86_64 clock source: unix detected number of CPU cores: 4 current working directory: / detected binary path: /home/projects/mkey/virtualenv/bin/uwsgi !!! no internal routing support, rebuild with pcre support !!! your processes number limit is 63940 your memory page size is 4096 bytes detected max file descriptor number: 65535 lock engine: pthread robust mutexes thunder lock: disabled (you can enable it with --thunder-lock) uwsgi socket 0 bound to TCP address 0.0.0.0:4004 fd 3 Python version: 2.7.3 (default, Jan 2 2013, 14:09:21) [GCC 4.7.2] *** Python threads support is disabled. You can enable it with --enable-threads *** Python main interpreter initialized at 0x247c0a0 your server socket listen backlog is limited to 100 connections your mercy for graceful operations on workers is 60 seconds mapped 6596200 bytes (6441 KB) for 64 cores *** Operational MODE: preforking *** added /home/projects/mkey/src/ to pythonpath. WSGI app 0 (mountpoint='') ready in 2 seconds on interpreter 0x247c0a0 pid: 12646 (default app) *** uWSGI is running in multiple interpreter mode *** gracefully (RE)spawned uWSGI master process (pid: 12646) spawned uWSGI worker 1 (pid: 17056, cores: 1) spawned uWSGI worker 2 (pid: 17057, cores: 1) spawned uWSGI worker 3 (pid: 17058, cores: 1) spawned uWSGI worker 4 (pid: 17059, cores: 1) spawned uWSGI worker 5 (pid: 17060, cores: 1) spawned uWSGI worker 6 (pid: 17061, cores: 1) spawned uWSGI worker 7 (pid: 17062, cores: 1) spawned uWSGI worker 8 (pid: 17063, cores: 1) spawned uWSGI worker 9 (pid: 17064, cores: 1) spawned uWSGI worker 10 (pid: 17065, cores: 1) spawned uWSGI worker 11 (pid: 17066, cores: 1) spawned uWSGI worker 12 (pid: 17067, cores: 1) spawned uWSGI worker 13 (pid: 17068, cores: 1) spawned uWSGI worker 14 (pid: 17069, cores: 1) spawned uWSGI worker 15 (pid: 17070, cores: 1) spawned uWSGI worker 16 (pid: 17071, cores: 1) spawned uWSGI worker 17 (pid: 17072, cores: 1) spawned uWSGI worker 18 (pid: 17073, cores: 1) spawned uWSGI worker 19 (pid: 17074, cores: 1) spawned uWSGI worker 20 (pid: 17075, cores: 1) spawned uWSGI worker 21 (pid: 17076, cores: 1) spawned uWSGI worker 22 (pid: 17077, cores: 1) spawned uWSGI worker 23 (pid: 17078, cores: 1) spawned uWSGI worker 24 (pid: 17079, cores: 1) spawned uWSGI worker 25 (pid: 17080, cores: 1) spawned uWSGI worker 26 (pid: 17081, cores: 1) spawned uWSGI worker 27 (pid: 17082, cores: 1) spawned uWSGI worker 28 (pid: 17083, cores: 1) spawned uWSGI worker 29 (pid: 17084, cores: 1) spawned uWSGI worker 30 (pid: 17085, cores: 1) spawned uWSGI worker 31 (pid: 17086, cores: 1) spawned uWSGI worker 32 (pid: 17087, cores: 1) spawned uWSGI worker 33 (pid: 17088, cores: 1) spawned uWSGI worker 34 (pid: 17089, cores: 1) spawned uWSGI worker 35 (pid: 17090, cores: 1) spawned uWSGI worker 36 (pid: 17091, cores: 1) spawned uWSGI worker 37 (pid: 17092, cores: 1) spawned uWSGI worker 38 (pid: 17093, cores: 1) spawned uWSGI worker 39 (pid: 17094, cores: 1) spawned uWSGI worker 40 (pid: 17095, cores: 1) spawned uWSGI worker 41 (pid: 17096, cores: 1) spawned uWSGI worker 42 (pid: 17097, cores: 1) spawned uWSGI worker 43 (pid: 17098, cores: 1) spawned uWSGI worker 44 (pid: 17099, cores: 1) spawned uWSGI worker 45 (pid: 17100, cores: 1) spawned uWSGI worker 46 (pid: 17101, cores: 1) spawned uWSGI worker 47 (pid: 17102, cores: 1) spawned uWSGI worker 48 (pid: 17103, cores: 1) spawned uWSGI worker 49 (pid: 17104, cores: 1) spawned uWSGI worker 50 (pid: 17105, cores: 1) spawned uWSGI worker 51 (pid: 17106, cores: 1) spawned uWSGI worker 52 (pid: 17107, cores: 1) spawned uWSGI worker 53 (pid: 17108, cores: 1) spawned uWSGI worker 54 (pid: 17109, cores: 1) spawned uWSGI worker 55 (pid: 17110, cores: 1) spawned uWSGI worker 56 (pid: 17111, cores: 1) spawned uWSGI worker 57 (pid: 17112, cores: 1) spawned uWSGI worker 58 (pid: 17113, cores: 1) spawned uWSGI worker 59 (pid: 17114, cores: 1) spawned uWSGI worker 60 (pid: 17115, cores: 1) spawned uWSGI worker 61 (pid: 17116, cores: 1) spawned uWSGI worker 62 (pid: 17117, cores: 1) spawned uWSGI worker 63 (pid: 17118, cores: 1) spawned uWSGI worker 64 (pid: 17119, cores: 1) *** Stats server enabled on 127.0.0.1:4000 fd: 138 ***
On Fri, Dec 6, 2013 at 4:09 PM, Roberto De Ioris <[email protected]> wrote: > >> Hi, Roberto >> Thank you for your response. I have try using http-socket and >> uwsgi-socket. But it doesn't help. There is still many connection >> reset error. >> >> Here is my config now: >> uwsgi: >> master: 1 >> procname-prefix: mkey >> processes: 64 >> uid: mkey >> gid: mkey >> chdir: /home/projects/mkey/src >> python-path: /home/projects/mkey/src >> wsgi: wsgi_handler >> need-app: 1 >> pidfile: /home/projects/mkey/var/run/ >> mkey.pid >> daemonize: /home/projects/mkey/var/logs/uwsgi.log >> disable-logging: true >> http-socket: 0.0.0.0:4004 >> stats: 127.0.0.1:4000 >> max-fd: 65535 >> idle: 30 >> reload-on-rss: 256 >> touch-logreopen: /home/projects/mkey/var/run/touch-logreopen >> touch-logrotate: /home/projects/mkey/var/run/touch-logrotate >> log-reopen: true >> log-slow: 1000 >> buffer-size: 32768 >> reload-mercy: 60 >> > > > Paste your uwsgi logs during reloads. > > Very probably your instance is dying (closing sockets) and respawning, > instead of simply patching itself > > > > > -- > Roberto De Ioris > http://unbit.it > _______________________________________________ > 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
