摘要:
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
阅读(502)
推荐(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
阅读(491)
推荐(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
阅读(940)
推荐(0)
摘要:
js >netty >flume
阅读全文
posted @ 2018-11-20 12:05
papering
阅读(542)
推荐(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
阅读(709)
推荐(0)
posted @ 2018-11-19 20:00
papering
阅读(837)
推荐(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
阅读(180)
推荐(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
阅读(434)
推荐(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
阅读(474)
推荐(0)
摘要:
大文本 mysql es mysql id longText > es longText mysqlId 大文本先入mysql,再同步至es; 文本查询逻辑交由es实现; mysql作用:生成Id,备份; 拿mysqlId取mysql大文本;
阅读全文
posted @ 2018-11-19 10:25
papering
阅读(216)
推荐(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
阅读(345)
推荐(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
阅读(732)
推荐(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
阅读(2665)
推荐(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
阅读(1480)
推荐(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
阅读(3338)
推荐(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
阅读(1154)
推荐(0)
摘要:
nginx平台初探(100%) — Nginx开发从入门到精通 http://tengine.taobao.org/book/chapter_02.html#id6 nginx的模块化体系结构¶ nginx的内部结构是由核心部分和一系列的功能模块所组成。这样划分是为了使得每个模块的功能相对简单,便于
阅读全文
posted @ 2018-11-16 17:41
papering
阅读(869)
推荐(0)
摘要:
边缘触发 水平触发 23 | Linux利器:epoll的前世今生 https://time.geekbang.org/column/article/143245 对于 edge-triggered 和 level-triggered, 官方的说法是一个是边缘触发,一个是条件触发。也有文章从电子脉冲
阅读全文
posted @ 2018-11-16 15:42
papering
阅读(1217)
推荐(0)
摘要:
nginx平台初探(100%) — Nginx开发从入门到精通 http://ten 众所周知,nginx性能高,而nginx的高性能与其架构是分不开的。那么nginx究竟是怎么样的呢?这一节我们先来初识一下nginx框架吧。 nginx在启动后,在unix系统中会以daemon的方式在后台运行,后
阅读全文
posted @ 2018-11-16 15:13
papering
阅读(575)
推荐(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
阅读(358)
推荐(0)
摘要:
负载均衡SLB产品家族介绍 https://help.aliyun.com/document_detail/196874.html 应用型负载均衡ALB(Application Load Balancer):专门面向七层,提供超强的业务处理性能,例如HTTPS卸载能力。单实例每秒查询数QPS(Que
阅读全文
posted @ 2018-11-16 14:42
papering
阅读(2921)
推荐(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
阅读(757)
推荐(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
阅读(321)
推荐(0)
摘要:
对于应用需要记录某个方法耗时的场景,必须使用clock_gettime传入CLOCK_MONOTONIC参数,该参数获得的是自系统开机起单调递增的纳秒级别精度时钟,相比gettimeofday精度提高不少,并且不受NTP等外部服务影响,能准确更准确来统计耗时(java中对应的是System.nano
阅读全文
posted @ 2018-11-15 20:34
papering
阅读(617)
推荐(0)
摘要:
Netty框架学习之路(五)—— EventLoop及事件循环机制 - 懋懋之为 - CSDN博客 https://blog.csdn.net/tjreal/article/details/79751342 netty 在半透明做代理网关下 对请求的批处理
阅读全文
posted @ 2018-11-15 19:10
papering
阅读(395)
推荐(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
阅读(542)
推荐(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
阅读(237)
推荐(0)
摘要:
jvm 前置 nginx lua
阅读全文
posted @ 2018-11-15 18:32
papering
阅读(180)
推荐(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
阅读(599)
推荐(0)
摘要:
小结: 1、 BIO 阻塞IO 程序等待处理数据-系统调用 操作系统-无数据-等待返回数据-数据准备好-数据从内核复制到用户空间-数据拷贝完成 程序可以使用数据 NIO 非阻塞IO 第一阶段阻塞,第二阶段不阻塞 IO多路复用 单个线程可以同时处多个网络IO。 AIO 系统调用aio_read 这期间
阅读全文
posted @ 2018-11-15 14:26
papering
阅读(532)
推荐(0)
摘要:
小结: 1、 线程通常将非阻塞 IO 的空闲时间用于在其他通道上执行 IO 操作,所以单独的线程可以管理多个输入和输出通道。 再有人问你Netty是什么,就把这篇文章发给他 https://mp.weixin.qq.com/s/zf_LY0MSD4S4p0wXKOyhZg 原创 陈彩华 Hollis
阅读全文
posted @ 2018-11-15 10:14
papering
阅读(951)
推荐(0)
摘要:
NIO的epoll空轮询bug - Lost blog - 博客园 https://www.cnblogs.com/JAYIT/p/8241634.html NIO的epoll空轮询bug JDK NIO的BUG,例如臭名昭著的epoll bug,它会导致Selector空轮询,最终导致CPU 10
阅读全文
posted @ 2018-11-15 10:06
papering
阅读(2368)
推荐(0)
摘要:
C:\Users\sas>ipconfig /flushdns Windows IP 配置 已成功刷新 DNS 解析缓存。 C:\Users\sas>ipconfig --help 错误: 无法识别或不完整的命令行。 用法: ipconfig [/allcompartments] [/? | /al
阅读全文
posted @ 2018-11-15 09:16
papering
阅读(1170)
推荐(0)
摘要:
Netty in action—Netty中的ByteBuf - 日积月累 - CSDN博客 https://blog.csdn.net/yjw123456/article/details/77843931
阅读全文
posted @ 2018-11-14 19:32
papering
阅读(166)
推荐(0)
摘要:
netty/example/src/main/java/io/netty/example/http/snoop at 4.1 · netty/netty https://github.com/netty/netty/tree/4.1/example/src/main/java/io/netty/ex
阅读全文
posted @ 2018-11-14 17:58
papering
阅读(289)
推荐(0)
摘要:
js清除浏览器缓存的几种方法 - 兔老霸夏 - 博客园 https://www.cnblogs.com/Mr-Rocker/p/6031096.html js清除浏览器缓存的几种方法 一、CSS和JS为什么带参数(形如.css?t=与.js?t=)怎样获取代码 css和js带参数(形如.css?t=
阅读全文
posted @ 2018-11-14 16:53
papering
阅读(1211)
推荐(0)
摘要:
场景 添加消费应用 结算中心库-mysql 表添加新应用名称详情; 支付前端redis 同步; 排故思路: 分析支付链路的各个环节:首先定环节,再定某环节下的细节 教训: 优化:通过接口修改数据库,而非直接操作数据库;再编写接口代码过程中,思考和维护相关不同数据库的数据一致性;
阅读全文
posted @ 2018-11-14 16:30
papering
阅读(156)
推荐(0)
摘要:
Static Import https://docs.oracle.com/javase/1.5.0/docs/guide/language/static-import.html In order to access static members, it is necessary to qualif
阅读全文
posted @ 2018-11-14 14:19
papering
阅读(491)
推荐(0)
摘要:
https://en.wikipedia.org/wiki/Rete_algorithm https://en.wikipedia.org/wiki/Rete_algorithm The Rete algorithm is a pattern matching algorithm for imple
阅读全文
posted @ 2018-11-14 14:01
papering
阅读(240)
推荐(0)
摘要:
业务规则引擎浅析 - Newland - 博客园 https://www.cnblogs.com/jietang/p/5321841.html Drools - Drools - Business Rules Management System (Java™, Open Source) http:/
阅读全文
posted @ 2018-11-14 13:59
papering
阅读(297)
推荐(0)