Comments (1)
- https://blog.cloudflare.com/graceful-upgrades-in-go/
类似于 Nginx 这类处理 TCP数据的程序需要平滑更新,因为在新版本开始处理请求和旧版本停止运行之间有时间差,这个时间差内,listen queue 可能会因为队列满而拒绝新的请求。
Nginx 是通过主进程处理重启,主进程收到重启指令后,创建新的主进程和 worker 进程,并不在接受新请求,直到老 worker 处理完成请求退出。
很多处理 http 层面重启的 go 的代码库,但是无法处理 tcp 层面信息。
-
https://stackoverflow.com/questions/45396155/iptables-do-not-block-ip-with-ipset-immediately
iptables 对加入ipset的 ip 不能马上拦截,因为出于对性能的考虑,iptables对 tcp 包的检查只检查连接状态的包syn、syn+ack、ack,放行已经建立连接的包。若攻击者建立连接后,通过大量的数据包进行 ddos 攻击,iptables 可能不能即时匹配。
ao -
https://openacid.github.io/tech/algorithm/slimtrie-design/#
- 索引构建的2个基本思路:无序的 hash map 型,有序的 tree 结构
- hash map: 在内存中一次检索定位到数据,O(n)时间复杂度。key 只能等值匹配,不支持<>操作,内存开销大,无序。
- tree: key 是排序的可以顺序查找,有成熟实现(B, B+, skiplist)。内存开销大。
- 索引构建的2个基本思路:无序的 hash map 型,有序的 tree 结构
from jackyxiong.github.io.
Related Issues (4)
- Nginx 负载均衡
- 电子书资源记录
- 网络安全 DDoS资料 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jackyxiong.github.io.