- 博客(3)
- 资源 (7)
- 收藏
- 关注
原创 使用python logging处理多机多进程写同一个日志文件
MemoryHandler的性能问题: 如果target是StreamHandler的子类 上是有严重的IO性能问题 是一个for调用handler, handler中的处理侧是 io.write(), io.flush() 立马的flush到硬盘中,并有多次flush,io性能很差 logging模块本身是支持多线程写同一个文件的。但对多进程写同一个文
2012-11-08 16:17:46 9239 1
转载 nginx 限制ip并发数和限制速度
nginx限制ip并发数,也是说限制同一个ip同时连接服务器的数量 1.添加limit_zone 这个变量只能在http使用 vi /usr/local/nginx/conf/nginx.conf limit_zone one $remote_addr 10m; 2.添加limit_conn 这个变量可以在http, server, location使用 我只限制一
2012-11-06 09:48:18 1224
原创 python 的时间操作datetime ,不支持减年或月阿!!自己实现
下面是python 的时间运算操作,不支持减年或月阿。 datetime.timedelta(days=0, seconds=0, microseconds=0, milliseconds=0, minutes=0, hours=0, weeks=0)# 看上面日期比较的timedelta不支持年与月,只支持
2012-11-01 17:33:40 2970
leveldb-0.1 for windows support XP.win32-py2.6.exe
2012-12-28
ujson-1.18.win32-py2.6.exe
2012-06-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人