摘要:
repl_test:PRIMARY> show dbsadmin 0.000GBdirect_vote_resource 16.474GBlocal 14.860GBpersonas 30.771GBrecommendation 0.370GBstatistics_visit 0.137GBsupe
阅读全文
posted @ 2018-11-22 11:52
papering
阅读(307)
推荐(0)
摘要:
def strIntersection(s0, s1, margin=0.2): set0, set1 = set([i for i in s0]), set([i for i in s1]) I = set0 & set1 return len(I) / len(set0) >= margin or len(I) / len(set1) >= margindef diffS...
阅读全文
posted @ 2018-11-22 09:08
papering
阅读(331)
推荐(0)
posted @ 2018-11-21 20:30
papering
阅读(149)
推荐(0)
摘要:
自己开发Thinkpad电源管理程序 - 知乎 https://zhuanlan.zhihu.com/p/20706403
阅读全文
posted @ 2018-11-21 14:10
papering
阅读(317)
推荐(0)
摘要:
Golang开发支持平滑升级(优雅重启)的HTTP服务 - tabalt的博客 http://tabalt.net/blog/graceful-http-server-for-golang/ https://github.com/tabalt/gracehttp Golang开发支持平滑升级(优雅重
阅读全文
posted @ 2018-11-21 14:04
papering
阅读(692)
推荐(0)
摘要:
socks5_百度百科 https://baike.baidu.com/item/socks5/8915011?fr=aladdin 如果您的机器具有一个合法的 Internet IP 地址, 或者您利用自己机器上的调制解调器拨号上网, 可以自由和 Internet 上任何主机沟通, 那么您通常不必
阅读全文
posted @ 2018-11-21 11:58
papering
阅读(279)
推荐(0)
摘要:
API网关的开源解决方案那么多,为什么我们却还要选择自研? - SDK.CN - 中国领先的开发者服务平台 https://sdk.cn/news/8001 技术细节Microservice+SOA状态维持在web层(spring session+redis)每层都可以Cache(spring ca
阅读全文
posted @ 2018-11-21 11:43
papering
阅读(159)
推荐(0)
摘要:
Graphite http://graphiteapp.org/ Graphite is an enterprise-ready monitoring tool that runs equally well on cheap hardware or Cloud infrastructure. Tea
阅读全文
posted @ 2018-11-21 11:22
papering
阅读(238)
推荐(0)
摘要:
https://www.alibabacloud.com/blog/detailed-explanation-of-guava-ratelimiters-throttling-mechanism_594820 限流算法实践 https://mp.weixin.qq.com/s/2f5-2bydqbe
阅读全文
posted @ 2018-11-21 11:07
papering
阅读(649)
推荐(0)
摘要:
硅谷Spring项目组专家教你利用Spring Cloud构建微服务 https://dbaplus.cn/news-21-506-1.html
阅读全文
posted @ 2018-11-21 10:32
papering
阅读(235)
推荐(0)
摘要:
不按照预期响应请求 nginx.conf中worker_connections 与ulimt -n 配置的冲突
阅读全文
posted @ 2018-11-21 09:17
papering
阅读(1313)
推荐(0)
摘要:
Socket (Java Platform SE 7 ) https://docs.oracle.com/javase/7/docs/api/java/net/Socket.html#sendUrgentData(int) sendUrgentData Send one byte of urgent
阅读全文
posted @ 2018-11-20 21:31
papering
阅读(506)
推荐(0)
摘要:
6.5 — Variable shadowing (name hiding) | Learn C++ https://www.learncpp.com/cpp-tutorial/variable-shadowing-name-hiding/ Go的50度灰:Golang新开发者要注意的陷阱和常见错误
阅读全文
posted @ 2018-11-20 18:56
papering
阅读(498)
推荐(0)
摘要:
user nginx; worker_processes 8; # = cpu num; error_log /data/nginx/log/error/error.log warn; # warn, error crit, alert, and emerg levels are logged. NGINX Docs | Configuring Logging https://do...
阅读全文
posted @ 2018-11-20 15:54
papering
阅读(942)
推荐(0)
摘要:
js >netty >flume
阅读全文
posted @ 2018-11-20 12:05
papering
阅读(545)
推荐(0)
摘要:
[root@d java]# netstat -tulpnActive Internet connections (only servers)Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program nametcp 0 0
阅读全文
posted @ 2018-11-20 11:15
papering
阅读(713)
推荐(0)
posted @ 2018-11-19 20:00
papering
阅读(844)
推荐(0)
摘要:
Delete API | Elasticsearch Reference [6.5] | Elastic https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete.html
阅读全文
posted @ 2018-11-19 15:44
papering
阅读(188)
推荐(0)
摘要:
PacificA: Replication in Log-Based Distributed Storage Systems - Microsoft Research https://www.microsoft.com/en-us/research/publication/pacifica-repl
阅读全文
posted @ 2018-11-19 14:25
papering
阅读(440)
推荐(0)
摘要:
BSON Types — MongoDB Manual https://docs.mongodb.com/manual/reference/bson-types/#objectid ObjectId ObjectIds are small, likely unique, fast to genera
阅读全文
posted @ 2018-11-19 11:04
papering
阅读(480)
推荐(0)
摘要:
大文本 mysql es mysql id longText > es longText mysqlId 大文本先入mysql,再同步至es; 文本查询逻辑交由es实现; mysql作用:生成Id,备份; 拿mysqlId取mysql大文本;
阅读全文
posted @ 2018-11-19 10:25
papering
阅读(224)
推荐(0)
摘要:
【旧的场景】1、x.a.com指向负载均衡服务器ipL;2、代码所在的应用服务器ipA,ipB,ipC,运行nginx-phpFPM服务,提供2个服务; 2.1、应用服务器ipA,ipB,ipC中web服务: webPage-URL: http://x.a.com/m-phpPage/c/v; 2.
阅读全文
posted @ 2018-11-17 17:17
papering
阅读(350)
推荐(0)
摘要:
NGINX Docs | Configuring Logging https://docs.nginx.com/nginx/admin-guide/monitoring/logging/【 在上层设置error_log目录,底层设置覆盖高层设置; 】 动手 error_log /data/nginx
阅读全文
posted @ 2018-11-17 16:09
papering
阅读(736)
推荐(0)
摘要:
[root@a ~]# traceroute www.ijntv.cntraceroute to www.ijntv.cn (42.81.61.31), 30 hops max, 60 byte packets 1 * * * 2 * * * 3 11.220.30.77 (11.220.30.77
阅读全文
posted @ 2018-11-17 11:50
papering
阅读(2683)
推荐(0)
摘要:
[root@a ~]# /usr/local/nginx/sbin/nginx -s reload;nginx: [alert] kill(18834, 1) failed (3: No such process) root 15808 0.0 0.0 51288 1488 ? Ss Oct22 0
阅读全文
posted @ 2018-11-17 11:26
papering
阅读(1486)
推荐(0)
摘要:
NGINX Docs | NGINX Reverse Proxy https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/ NGINX Reverse Proxy This article describes the bas
阅读全文
posted @ 2018-11-17 10:38
papering
阅读(3346)
推荐(0)
摘要:
Using nginx as HTTP load balancer Using nginx as HTTP load balancer http://nginx.org/en/docs/http/load_balancing.html Using nginx as HTTP load balance
阅读全文
posted @ 2018-11-17 10:31
papering
阅读(1166)
推荐(0)
摘要:
nginx平台初探(100%) — Nginx开发从入门到精通 http://tengine.taobao.org/book/chapter_02.html#id6 nginx的模块化体系结构¶ nginx的内部结构是由核心部分和一系列的功能模块所组成。这样划分是为了使得每个模块的功能相对简单,便于
阅读全文
posted @ 2018-11-16 17:41
papering
阅读(877)
推荐(0)
摘要:
边缘触发 水平触发 23 | Linux利器:epoll的前世今生 https://time.geekbang.org/column/article/143245 对于 edge-triggered 和 level-triggered, 官方的说法是一个是边缘触发,一个是条件触发。也有文章从电子脉冲
阅读全文
posted @ 2018-11-16 15:42
papering
阅读(1224)
推荐(0)
摘要:
nginx平台初探(100%) — Nginx开发从入门到精通 http://ten 众所周知,nginx性能高,而nginx的高性能与其架构是分不开的。那么nginx究竟是怎么样的呢?这一节我们先来初识一下nginx框架吧。 nginx在启动后,在unix系统中会以daemon的方式在后台运行,后
阅读全文
posted @ 2018-11-16 15:13
papering
阅读(584)
推荐(0)
摘要:
Module ngx_http_upstream_module http://nginx.org/en/docs/http/ngx_http_upstream_module.html#sticky This directive appeared in version 1.5.7. Enables s
阅读全文
posted @ 2018-11-16 14:48
papering
阅读(370)
推荐(0)
摘要:
负载均衡SLB产品家族介绍 https://help.aliyun.com/document_detail/196874.html 应用型负载均衡ALB(Application Load Balancer):专门面向七层,提供超强的业务处理性能,例如HTTPS卸载能力。单实例每秒查询数QPS(Que
阅读全文
posted @ 2018-11-16 14:42
papering
阅读(2935)
推荐(0)
摘要:
Title http://www.cse.msu.edu/~alexliu/publications/Cookie/cookie.pdf AbstractCookies are the primary means for web applicationsto authenticate HTTP re
阅读全文
posted @ 2018-11-16 14:19
papering
阅读(772)
推荐(0)
摘要:
Elastic Load Balancing with Sticky Sessions — Shlomo Swidler https://shlomoswidler.com/2010/04/elastic-load-balancing-with-sticky-sessions.html Elasti
阅读全文
posted @ 2018-11-16 11:49
papering
阅读(326)
推荐(0)
摘要:
对于应用需要记录某个方法耗时的场景,必须使用clock_gettime传入CLOCK_MONOTONIC参数,该参数获得的是自系统开机起单调递增的纳秒级别精度时钟,相比gettimeofday精度提高不少,并且不受NTP等外部服务影响,能准确更准确来统计耗时(java中对应的是System.nano
阅读全文
posted @ 2018-11-15 20:34
papering
阅读(623)
推荐(0)
摘要:
Netty框架学习之路(五)—— EventLoop及事件循环机制 - 懋懋之为 - CSDN博客 https://blog.csdn.net/tjreal/article/details/79751342 netty 在半透明做代理网关下 对请求的批处理
阅读全文
posted @ 2018-11-15 19:10
papering
阅读(398)
推荐(0)
摘要:
[root@d log]# ps -aux | grep javaroot 550 0.2 1.9 6000924 641384 pts/1 Sl+ 17:39 0:13 /usr/java/jdk1.8.0_101/bin/java -Xmx20m -Dflume.root.logger=INFO
阅读全文
posted @ 2018-11-15 19:08
papering
阅读(544)
推荐(0)
摘要:
Environment Variables (The Java™ Tutorials > Essential Classes > The Platform Environment) https://docs.oracle.com/javase/tutorial/essential/environme
阅读全文
posted @ 2018-11-15 18:47
papering
阅读(241)
推荐(0)
摘要:
jvm 前置 nginx lua
阅读全文
posted @ 2018-11-15 18:32
papering
阅读(185)
推荐(0)
摘要:
Chapter 7. Advanced topics http://hc.apache.org/httpcomponents-client-ga/tutorial/html/advanced.html 7.3. Using the FutureRequestExecutionService 7.3.
阅读全文
posted @ 2018-11-15 15:46
papering
阅读(608)
推荐(0)