Gunicorn: 19.7 ๋ฆด๋ฆฌ์Šค

์— ๋งŒ๋“  2017๋…„ 02์›” 26์ผ  ยท  4์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: benoitc/gunicorn

19.7 ๋ฒ„์ „์˜ ๋ฆด๋ฆฌ์Šค๋ฅผ ์ถ”์ ํ•˜๋Š” ํ‹ฐ์ผ“

  • [x] ํ”„๋กœ์ ํŠธ ๊ด€๋ฆฌ ํŽ˜์ด์ง€ ์ถ”๊ฐ€
  • [x] ์ƒˆ ํ”„๋กœ์ ํŠธ์˜ ๋ฒ„๊ทธ ๋ถ„๋ฅ˜
  • [x] ๋ณ€๊ฒฝ ๋กœ๊ทธ ์ค€๋น„
) top priority - Mailing List - release

๊ฐ€์žฅ ์œ ์šฉํ•œ ๋Œ“๊ธ€

19.7 ์ถœ์‹œ

๋ชจ๋“  4 ๋Œ“๊ธ€

์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ํ”„๋กœ์ ํŠธ ํŽ˜์ด์ง€: https://github.com/benoitc/gunicorn/wiki/Project-management

๋ณ€๊ฒฝ ๋กœ๊ทธ๊ฐ€ ์™„๋ฃŒ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ๋ฆด๋ฆฌ์Šค๋Š” ๋‚ด์ผ ์™„๋ฃŒ๋ฉ๋‹ˆ๋‹ค

19.7 ์ถœ์‹œ

์„œ๋ฒ„ ์ค‘ ํ•˜๋‚˜์—์„œ gunicorn์„ ์‹คํ–‰ ์ค‘์ž…๋‹ˆ๋‹ค. Postgres ์—ฐ๊ฒฐ ๋ฌธ์ œ ํ›„์—๋„ ์—ฌ์ „ํžˆ ๋‹ค์Œ ์˜ˆ์™ธ๊ฐ€ ๋ฐœ์ƒํ•œ๋‹ค๋Š” ๊ฒƒ์„ ์•Œ์•˜์Šต๋‹ˆ๋‹ค.

2018-02-12 02:01:02 [1769] [ERROR] Exception in post_request hook
Traceback (most recent call last):
  File "/nix/store/ciwd5mg0mkcnw4bwhzap8g3k9630a0mp-python2.7-gunicorn-19.7.1/lib/python2.7/site-packages/gunicorn/workers/async.py", line 144, in handle_request
    self.cfg.post_request(self, req, environ, resp)
  File "/home/xxx/conf/gunicorn_prod.py", line 132, in post_request
    worker.nr, req.method, req.path, resp.status_code, total_time)
AttributeError: 'Response' object has no attribute 'status_code'

๋‹ค์Œ์€ post_request ์ฝ”๋“œ์ž…๋‹ˆ๋‹ค.

def post_request(worker, req, environ, resp):
    total_time = time.time() - worker.start_time
    worker.log.debug(
        "GNCRN POST WORKER [cnt:%s]: %s %s resp: %s, Load Time: %.3fs",
        worker.nr, req.method, req.path, resp.status_code, total_time)
์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰