1.看官网文档,使用-HUP可以优雅重启,不过我在测试的时候,却是直接杀死了,并没有等待请求处理结束(难道是因为我使用time.sleep(10)来模拟长作业的缘故?),日志如下,虽然显示200,不过浏览器那边却“连接已中断”...gracefullykillingworkers...Gracefullykillingworker2(pid:9610)...Gracefullykillingworker1(pid:9609)...Gracefullykillingworker3(pid:9611)...Gracefullykillingworker4(pid:9639)...worker1buriedafter1secondsworker2buriedafter1secondsworker3buriedafter1seconds[pid:9639|app:0|req:11/14]111.206.83.99(){42varsin1782bytes}[TueJul817:59:162014]GET/config/long=>generated2bytesin5005msecs(HTTP/1.1200)1headersin51bytes(1switchesoncore14)worker4buriedafter4seconds2.如何安全停止服务器?文档中似乎只有-INT是停止,不过似乎是直接干掉了uwsgi,并不等所有请求处理完成3.PythonWebservice在数据一致性,服务可靠性要求高的情况下,如何选择服务器?要求可以优雅停止、重启。
添加回答
举报
0/150
提交
取消