摘要:
Beware! Async modes will not speed up your app, they are aimed at improving concurrency. Do not expect that enabling some of the modes will work flawl
阅读全文
posted @ 2019-05-09 10:22
papering
阅读(647)
推荐(0)
摘要:
fcgi vs. gunicorn vs. uWSGI - Peterbe.comhttps://www.peterbe.com/plog/fcgi-vs-gunicorn-vs-uwsgi uWSGI vs. Gunicorn, or How to Make Python Go Faster th
阅读全文
posted @ 2019-05-09 09:54
papering
阅读(472)
推荐(0)
摘要:
小结: 1、 禁用 Python GC,Instagram 性能提升10% - Python - 伯乐在线 http://python.jobbole.com/87447/ 通过关闭 Python 垃圾收集(GC)机制,该机制通过收集和释放未使用的数据来回收内存,Instagram 的运行效率提高了
阅读全文
posted @ 2019-05-09 02:56
papering
阅读(544)
推荐(0)
摘要:
https://mp.weixin.qq.com/s/rQxvp2Sq8E4pBn-E9-COww IPC远程入侵 黑客网络技术 4月19日 一、什么是IPC进程间通信(IPC,Inter-Process Communication),指至少两个进程或线程间传送数据或信号的一些技术或方法。进程是计算
阅读全文
posted @ 2019-05-09 02:48
papering
阅读(563)
推荐(0)
摘要:
--thunder-lock is available since uWSGI 1.4.6 but never got documentation (of any kind) Serializing accept(), AKA Thundering Herd, AKA the Zeeg Proble
阅读全文
posted @ 2019-05-09 01:48
papering
阅读(311)
推荐(0)
摘要:
小结: 1、线程与惊群效应 Serializing accept(), AKA Thundering Herd, AKA the Zeeg Problem — uWSGI 2.0 documentationhttps://uwsgi-docs.readthedocs.io/en/latest/art
阅读全文
posted @ 2019-05-09 01:30
papering
阅读(162)
推荐(0)
摘要:
Things to know (best practices and “issues”) READ IT !!! — uWSGI 2.0 documentationhttps://uwsgi-docs.readthedocs.io/en/latest/ThingsToKnow.html If you
阅读全文
posted @ 2019-05-09 01:21
papering
阅读(696)
推荐(0)
摘要:
Serializing accept(), AKA Thundering Herd, AKA the Zeeg Problem — uWSGI 2.0 documentationhttps://uwsgi-docs.readthedocs.io/en/latest/articles/Serializ
阅读全文
posted @ 2019-05-09 00:05
papering
阅读(372)
推荐(0)
摘要:
小结: 1、不必要的唤醒 惊群效应 https://github.com/benoitc/gunicorn/issues/792#issuecomment-46718939 https://www.citi.umich.edu/u/cel/linux-scalability/reports/acce
阅读全文
posted @ 2019-05-08 23:56
papering
阅读(208)
推荐(0)
摘要:
https://uwsgi-docs.readthedocs.io/en/latest/articles/SerializingAccept.html One of the historical problems in the UNIX world is the “thundering herd”.
阅读全文
posted @ 2019-05-08 23:23
papering
阅读(611)
推荐(0)
摘要:
https://mp.weixin.qq.com/s/wIDTs2J1ZkLkAEHqQnkYnw 什么是分叉?为何对区块链发展至关重要? Uselink公有链 Uselink公有链 2018-12-20 在区块链世界,我们经常可以听到“分叉”、“软分叉”、“硬分叉”等等字眼,首先,什么是分叉? 什
阅读全文
posted @ 2019-05-08 22:06
papering
阅读(686)
推荐(0)
摘要:
hey is a tiny program that sends some load to a web application. DOS attack DOS攻击生成 https://github.com/rakyll/hey github.com/rakyll/boom
阅读全文
posted @ 2019-05-08 21:54
papering
阅读(295)
推荐(0)
摘要:
A fork() in the road - Microsoft Research https://www.microsoft.com/en-us/research/publication/a-fork-in-the-road/ fork() 成为负担,需要淘汰 - OSCHINA https://
阅读全文
posted @ 2019-05-08 21:40
papering
阅读(1780)
推荐(0)
摘要:
小结: 1、 在gunicorn这种pre-fork模型中,master(gunicorn 中Arbiter)会fork出指定数量的worker进程,worker进程在同样的端口上监听,谁先监听到网络连接请求,谁就提供服务,这也是worker进程之间的负载均衡。 2、 worker 进程数,4-12
阅读全文
posted @ 2019-05-08 20:10
papering
阅读(535)
推荐(0)
摘要:
? 这是个很好的问题。Go 当前的 GC 显然做了一些额外的工作,但它也跟其他的工作并行执行,所以在具有备用 CPU 的系统上,Go 正在作出合理的选择。请看 https://golang.org/issue/17969 结束语(Closing notes) 通过研究 Go 垃圾收集器,我能够理解
阅读全文
posted @ 2019-05-07 22:02
papering
阅读(396)
推荐(0)
摘要:
https://kombu.readthedocs.io/en/stable/introduction.html
阅读全文
posted @ 2019-05-07 21:44
papering
阅读(271)
推荐(0)
posted @ 2019-05-07 21:42
papering
阅读(164)
推荐(0)
posted @ 2019-05-07 21:42
papering
阅读(145)
推荐(0)
posted @ 2019-05-07 09:48
papering
阅读(198)
推荐(0)
posted @ 2019-05-07 09:48
papering
阅读(120)
推荐(0)
摘要:
秒杀系统“减库存”设计的核心逻辑 https://mp.weixin.qq.com/s/CanwLod3te8BAPEfNXUjvw 如果要设计一套秒杀系统,那我想你的老板肯定会先对你说:千万不要超卖,这是大前提。 如果你第一次接触秒杀,那你可能还不太理解,库存 100 件就卖 100 件,在数据库
阅读全文
posted @ 2019-05-07 09:48
papering
阅读(480)
推荐(0)
摘要:
https://mp.weixin.qq.com/s/gjKOy4SDpsjUXDC3Q1YdFw Gokit微服务-服务链路追踪 原创: 兮一昂吧 兮一昂吧 2月28日
阅读全文
posted @ 2019-05-06 13:02
papering
阅读(488)
推荐(0)
摘要:
https://github.com/golang/go/wiki/CodeReviewComments https://studygolang.com/articles/6054
阅读全文
posted @ 2019-05-06 13:01
papering
阅读(194)
推荐(0)
摘要:
https://www.cnblogs.com/33568639/archive/2008/12/29/1364222.html https://baike.sogou.com/v7818386.htm?fromTitle=VSTS “Visual Studio Team System 是一套高生产
阅读全文
posted @ 2019-05-06 13:00
papering
阅读(244)
推荐(0)
摘要:
https://mp.weixin.qq.com/s/eof_M-cxNRXgQ8f1zyBTxg 软件质量的黄金准则 Gabriel Gonzalez InfoQ 前天 作者 | Gabriel Gonzalez译者 | 马可薇策划 | 万佳 在关于软件质量的相关谈论中,我通常会引用一条经验法则。
阅读全文
posted @ 2019-05-06 00:00
papering
阅读(256)
推荐(0)
摘要:
Apache SkyWalking™ | SkyWalking Teamhttp://skywalking.apache.org/zh/ Application performance monitor tool for distributed systems, especially designed
阅读全文
posted @ 2019-05-05 23:54
papering
阅读(323)
推荐(0)
posted @ 2019-05-05 12:30
papering
阅读(140)
推荐(0)
摘要:
Go Style | styleguide https://google.github.io/styleguide/go/index Document Link Primary Audience Normative CanonicalStyle Guide https://google.github
阅读全文
posted @ 2019-05-05 09:22
papering
阅读(265)
推荐(0)
摘要:
https://msdn.microsoft.com/zh-cn/vstudio/ms648068(v=vs.90)
阅读全文
posted @ 2019-05-04 23:44
papering
阅读(181)
推荐(0)
摘要:
https://leetcode.com/problems/score-of-parentheses/solution/ (4) Score of Parentheses - LeetCode Articleshttps://leetcode.com/articles/score-of-parent
阅读全文
posted @ 2019-05-04 23:09
papering
阅读(261)
推荐(0)
摘要:
https://github.com/gopherchina/conference/blob/master/2019/2.7%20花椒直播基于golang的中台技术实践%20-%20周洋.pdf 花椒直播基于golang的中台技术实践 - 周洋.pdf
阅读全文
posted @ 2019-05-04 22:45
papering
阅读(1100)
推荐(0)
摘要:
用栈实现队列 - 力扣(LeetCode)https://leetcode-cn.com/problems/implement-queue-using-stacks/ https://leetcode.com/problems/implement-queue-using-stacks/solutio
阅读全文
posted @ 2019-05-03 23:24
papering
阅读(169)
推荐(0)
摘要:
https://mp.weixin.qq.com/s/d0ce3-Pw0cv-3hH7gZMBTg
阅读全文
posted @ 2019-05-03 23:22
papering
阅读(157)
推荐(0)
摘要:
conference/2.3 高性能高可用的微服务框架TarsGo的腾讯实践 - 陈明杰.pdf at master · gopherchina/conferencehttps://github.com/gopherchina/conference/blob/master/2019/2.3%20%E
阅读全文
posted @ 2019-05-03 23:19
papering
阅读(782)
推荐(0)
摘要:
Dockerfile 最佳实践 | Docker 从入门到实践 https://vuepress.mirror.docker-practice.com/appendix/best_practices.html#dockerfile-%E6%8C%87%E4%BB%A4 https://github.
阅读全文
posted @ 2019-05-02 20:41
papering
阅读(528)
推荐(0)
摘要:
小结: 1、 微服务中某个服务出现随机延迟、某个服务不可用。 存储系统磁盘 IO 延迟增加、IO 吞吐量过低、落盘时间长。 调度系统中出现热点,某个调度指令失败。 充值系统中模拟第三方重复请求充值成功回调接口。 游戏开发中模拟玩家网络不稳定、掉帧、延迟过大等,以及各种异常输入(外挂请求)情况下系统是
阅读全文
posted @ 2019-05-02 20:22
papering
阅读(661)
推荐(0)
摘要:
小结: 1、内存优化1.一个消息一定只有一块内存使用 Job 聚合消息,Comet 指针引用。 2.一个用户的内存尽量放到栈上内存创建在对应的用户 Goroutine(Go 程)中。 3.内存由自己控制主要是针对 Comet 模块所做的优化,可以查看模块中各个分配内存的地方,使用内存池。 2、模块优
阅读全文
posted @ 2019-05-02 09:25
papering
阅读(465)
推荐(0)
摘要:
小结: 1、 常数时间内检索到最小元素 2、存储 存储绝对值?相对值 存储差异 3、 java-ide-debug 最小栈 - 力扣(LeetCode)https://leetcode-cn.com/problems/min-stack/ 设计一个支持 push,pop,top 操作,并能在常数时间
阅读全文
posted @ 2019-05-01 23:23
papering
阅读(2294)
推荐(0)
摘要:
小结: 1、 海量异构数据的存储问题 如何将不同品类,异构的数据统一存储起来呢? (1)全品类通用属性统一存储; (2)单品类特有属性,品类类型与通用属性json来进行存储; 2、 入口层是Java研发的,聚合层与检索层都是C语言研发的 3、 (1)数据库提供“帖子id”的正排查询需求; (2)所有
阅读全文
posted @ 2019-05-01 22:57
papering
阅读(537)
推荐(0)
摘要:
有效的括号 - LeetCode 阅读https://leetcode-cn.com/articles/valid-parentheses/ 给定一个只包括 '(',')','{','}','[',']' 的字符串,判断字符串是否有效。 有效字符串需满足: 注意空字符串可被认为是有效字符串。 让我们
阅读全文
posted @ 2019-04-30 22:43
papering
阅读(371)
推荐(0)