Skip to content

Instantly share code, notes, and snippets.

View MarineJoker's full-sized avatar
🎯
Focusing

MarineJoker

🎯
Focusing
View GitHub Profile
@MarineJoker
MarineJoker / graceful_shutdown_tornado_web_server.py
Created June 23, 2021 09:01 — forked from wonderbeyond/graceful_shutdown_tornado_web_server.py
The example to how to shutdown tornado web server gracefully...
#!/usr/bin/env python
"""
How to use it:
1. Just `kill -2 PROCESS_ID` or `kill -15 PROCESS_ID`,
The Tornado Web Server Will shutdown after process all the request.
2. When you run it behind Nginx, it can graceful reboot your production server.
"""
import time
@MarineJoker
MarineJoker / mysql-status.md
Created October 14, 2019 04:08 — forked from jhjguxin/mysql-status.md
通过show status 来优化MySQL数据库 from lxneng
  1. 查看MySQL服务器配置信息
mysql> show variables;
  1. 查看MySQL服务器运行的各种状态值
mysql> show global status;