python - gunicorn booting unlimited workers -
i have flask application running behind gunicorn 0.17.2. after reinstall of dependencies (but no change in versions), gunicorn has started booting unlimited workers - or, more likely, starting, dying , being restarted (there no error reported however). cause of behaviour?
root@d7a9b49aef07:~# gunicorn --debug --log-level debug --workers=2 myapp.wsgi:app 2014-08-18 09:28:16 [572] [debug] current configuration: 2014-08-18 09:28:16 [572] [debug] daemon: false 2014-08-18 09:28:16 [572] [debug] check_config: false 2014-08-18 09:28:16 [572] [debug] graceful_timeout: 30 2014-08-18 09:28:16 [572] [debug] proxy_protocol: false 2014-08-18 09:28:16 [572] [debug] proxy_allow_ips: ['127.0.0.1'] 2014-08-18 09:28:16 [572] [debug] post_fork: <function post_fork @ 0x7f5b532467d0> 2014-08-18 09:28:16 [572] [debug] pre_request: <function pre_request @ 0x7f5b53246aa0> 2014-08-18 09:28:16 [572] [debug] certfile: none 2014-08-18 09:28:16 [572] [debug] logger_class: simple 2014-08-18 09:28:16 [572] [debug] group: 0 2014-08-18 09:28:16 [572] [debug] tmp_upload_dir: none 2014-08-18 09:28:16 [572] [debug] default_proc_name: myapp.wsgi:app 2014-08-18 09:28:16 [572] [debug] syslog_facility: user 2014-08-18 09:28:16 [572] [debug] keyfile: none 2014-08-18 09:28:16 [572] [debug] limit_request_fields: 100 2014-08-18 09:28:16 [572] [debug] limit_request_field_size: 8190 2014-08-18 09:28:16 [572] [debug] django_settings: none 2014-08-18 09:28:16 [572] [debug] worker_class: sync 2014-08-18 09:28:16 [572] [debug] backlog: 2048 2014-08-18 09:28:16 [572] [debug] when_ready: <function when_ready @ 0x7f5b53246500> 2014-08-18 09:28:16 [572] [debug] pre_fork: <function pre_fork @ 0x7f5b53246668> 2014-08-18 09:28:16 [572] [debug] pre_exec: <function pre_exec @ 0x7f5b53246938> 2014-08-18 09:28:16 [572] [debug] user: 0 2014-08-18 09:28:16 [572] [debug] secure_scheme_headers: {'x-forwarded-proto': 'https', 'x-forwarded-protocol': 'ssl', 'x-forwarded-ssl': 'on'} 2014-08-18 09:28:16 [572] [debug] pythonpath: none 2014-08-18 09:28:16 [572] [debug] debug: true 2014-08-18 09:28:16 [572] [debug] worker_connections: 1000 2014-08-18 09:28:16 [572] [debug] keepalive: 2 2014-08-18 09:28:16 [572] [debug] logconfig: none 2014-08-18 09:28:16 [572] [debug] config: none 2014-08-18 09:28:16 [572] [debug] on_starting: <function on_starting @ 0x7f5b53246230> 2014-08-18 09:28:16 [572] [debug] on_reload: <function on_reload @ 0x7f5b53246398> 2014-08-18 09:28:16 [572] [debug] post_request: <function post_request @ 0x7f5b53246b90> 2014-08-18 09:28:16 [572] [debug] spew: false 2014-08-18 09:28:16 [572] [debug] loglevel: debug 2014-08-18 09:28:16 [572] [debug] pidfile: none 2014-08-18 09:28:16 [572] [debug] umask: 0 2014-08-18 09:28:16 [572] [debug] x_forwarded_for_header: x-forwarded-for 2014-08-18 09:28:16 [572] [debug] accesslog: none 2014-08-18 09:28:16 [572] [debug] access_log_format: "%(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s" 2014-08-18 09:28:16 [572] [debug] syslog_addr: udp://localhost:514 2014-08-18 09:28:16 [572] [debug] syslog: false 2014-08-18 09:28:16 [572] [debug] proc_name: none 2014-08-18 09:28:16 [572] [debug] worker_exit: <function worker_exit @ 0x7f5b53246cf8> 2014-08-18 09:28:16 [572] [debug] bind: ['127.0.0.1:8000'] 2014-08-18 09:28:16 [572] [debug] preload_app: false 2014-08-18 09:28:16 [572] [debug] max_requests: 0 2014-08-18 09:28:16 [572] [debug] errorlog: - 2014-08-18 09:28:16 [572] [debug] timeout: 30 2014-08-18 09:28:16 [572] [debug] syslog_prefix: none 2014-08-18 09:28:16 [572] [debug] workers: 2 2014-08-18 09:28:16 [572] [debug] nworkers_changed: <function nworkers_changed @ 0x7f5b53246e60> 2014-08-18 09:28:16 [572] [debug] forwarded_allow_ips: ['127.0.0.1'] 2014-08-18 09:28:16 [572] [debug] limit_request_line: 4094 2014-08-18 09:28:16 [572] [info] starting gunicorn 0.17.2 2014-08-18 09:28:16 [572] [debug] arbiter booted 2014-08-18 09:28:16 [572] [info] listening at: http://127.0.0.1:8000 (572) 2014-08-18 09:28:16 [572] [info] using worker: sync 2014-08-18 09:28:16 [577] [info] booting worker pid: 577 2014-08-18 09:28:16 [578] [info] booting worker pid: 578 2014-08-18 09:28:16 [579] [info] booting worker pid: 579 2014-08-18 09:28:16 [580] [info] booting worker pid: 580 2014-08-18 09:28:16 [581] [info] booting worker pid: 581 2014-08-18 09:28:16 [582] [info] booting worker pid: 582 2014-08-18 09:28:16 [583] [info] booting worker pid: 583 2014-08-18 09:28:16 [584] [info] booting worker pid: 584 2014-08-18 09:28:17 [585] [info] booting worker pid: 585 2014-08-18 09:28:17 [586] [info] booting worker pid: 586 2014-08-18 09:28:17 [587] [info] booting worker pid: 587 2014-08-18 09:28:17 [588] [info] booting worker pid: 588 2014-08-18 09:28:17 [590] [info] booting worker pid: 590 2014-08-18 09:28:17 [591] [info] booting worker pid: 591 2014-08-18 09:28:17 [592] [info] booting worker pid: 592 2014-08-18 09:28:17 [593] [info] booting worker pid: 593 2014-08-18 09:28:17 [594] [info] booting worker pid: 594 2014-08-18 09:28:17 [595] [info] booting worker pid: 595 2014-08-18 09:28:17 [596] [info] booting worker pid: 596 2014-08-18 09:28:17 [597] [info] booting worker pid: 597 2014-08-18 09:28:17 [598] [info] booting worker pid: 598 2014-08-18 09:28:17 [599] [info] booting worker pid: 599 2014-08-18 09:28:17 [600] [info] booting worker pid: 600 2014-08-18 09:28:17 [601] [info] booting worker pid: 601 2014-08-18 09:28:17 [602] [info] booting worker pid: 602 2014-08-18 09:28:17 [603] [info] booting worker pid: 603 2014-08-18 09:28:17 [604] [info] booting worker pid: 604 .... etc
application running in docker container, python interpreter causing segmentation faults when running on particular host machine. so, more of docker problem gunicorn problem.
Comments
Post a Comment