上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 23 下一页
摘要: worker_processes : When set to 'auto', which is also the default behavior, Tengine will create the same number of worker processes as your CPUs. worke 阅读全文
posted @ 2016-03-29 16:47 hao.ma 阅读(268) 评论(0) 推荐(0)
摘要: [opcache] ; dll地址 zend_extension=php_opcache.dll ; 开关打开 opcache.enable=1 ; 开启CLI opcache.enable_cli=1 ; 可用内存, 酌情而定, 单位为:Mb opcache.memory_consumption=528 ; Zend Optimizer + 暂存池中字符串的占内存总量.(单位:MB) opca... 阅读全文
posted @ 2016-03-29 12:44 hao.ma 阅读(271) 评论(0) 推荐(0)
摘要: 1) 上线对大表的select操作, 因为大表的select 操作, 单次请求的处理时间拉长后,单次请求处理时间拉长后请求堆积, 请求堆积服务器负载上升,服务器负载上升,夯机 2) 依赖第三方服务, 使用第三方服务,但是没有做超时处理, 服务请求超时, 阅读全文
posted @ 2016-03-16 13:45 hao.ma 阅读(128) 评论(0) 推荐(0)
摘要: 1) 第三方服务使用时候,不但要做拿不到数据的Plan B, timeout的处理也必须有, 如果没有timeout的处理,     如果第三方服务负载上升, 造成的问题是, 单个请求时间超时, 同时新来的请求不拒绝,连接数瞬间飙升, 服务器负载增加.  阅读全文
posted @ 2016-03-14 11:21 hao.ma 阅读(176) 评论(0) 推荐(0)
摘要: 同样的数据rd环境is normal, but in test environment the result of json had been intercepted 稳定定位: nginx指定的磁盘tmp目录没有写权限 client_body_temp fastcgi_temp proxy_tem 阅读全文
posted @ 2016-03-10 16:42 hao.ma 阅读(252) 评论(0) 推荐(0)
摘要: 指定一个参数 这个参数可以标识客户端唯一id的,比如用户id等 拿到这个id根据系统的hash算法会hash出一个bucket,目前支持的桶总数为10 根据后台设定的map关系(redis或配置文件)决定使用哪个upstream 详细的lua代码和nginx配置见代码: https://github 阅读全文
posted @ 2016-02-17 19:09 hao.ma 阅读(819) 评论(0) 推荐(0)
摘要: df -lh lsof | grep delete kill -9 $program_id df -lh # 搞定问题 阅读全文
posted @ 2016-02-07 18:00 hao.ma 阅读(150) 评论(0) 推荐(0)
摘要: cat access.log | awk '{print $2}' | sort | uniq -c | sort -k1nr | head -10# -k1 follow the first column nr 阅读全文
posted @ 2016-01-04 19:56 hao.ma 阅读(160) 评论(0) 推荐(0)
摘要: @link http://www.cnblogs.com/zuoyuan/p/3781953.htmlGiven an array of non-negative integers, you are initially positioned at the first index of the arr... 阅读全文
posted @ 2015-12-26 21:13 hao.ma 阅读(171) 评论(0) 推荐(0)
摘要: 谈谈Memcached与Redis(一) 1. Memcached简介Memcached是以LiveJurnal旗下Danga Interactive公司的Bard Fitzpatric为首开发的高性能分布式内存缓存服务器。其本质上就是一个内存key-value数据库,但是不支持数据的持久化,服务... 阅读全文
posted @ 2015-12-25 17:43 hao.ma 阅读(185) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 23 下一页