当前位置:网站首页>Why is the probability of pod increasing after IPtable
Why is the probability of pod increasing after IPtable
2022-07-04 04:04:00 【BanFS】
Project clusters use k8s Managed , Traffic distribution uses iptable, According to the pressure measurement feedback, the load is unbalanced , I was so scared that I hurried to check , It turns out that the pressure test student made a mistake . During the query , Find out iptable After rule probability More and more big , Record the reason .
[email protected]:/home/admin# iptables -t nat -nL
...
Chain KUBE-SVC-7XZINH2IMK6FHKPK (2 references)
target prot opt source destination
KUBE-SEP-TOX5PBICM2IS3QEP all -- 0.0.0.0/0 0.0.0.0/0 statistic mode random probability 0.20000000019
KUBE-SEP-BHWNMZ5XNYG7AESG all -- 0.0.0.0/0 0.0.0.0/0 statistic mode random probability 0.25000000000
KUBE-SEP-OQLKQS2OMOJTYZF6 all -- 0.0.0.0/0 0.0.0.0/0 statistic mode random probability 0.33332999982
KUBE-SEP-EQOKMESPFMECIZJJ all -- 0.0.0.0/0 0.0.0.0/0 statistic mode random probability 0.50000000000
KUBE-SEP-GVLV4E5D2AGR4O5J all -- 0.0.0.0/0 0.0.0.0/0
...
You can see , in total 5 Bar record , At first probability by 0.2—>0.25—>0.33—>0.5— nothing , Why is that? .
Because after the flow enters , according to iptable Rule forwarding , public 5 strip , So the first reception 20% Of traffic .
There are still left. 4 strip , The next one should receive the remaining traffic 1/4, That is to say 25%.
There are still left. 3 strip , The next one should receive the remaining traffic 1/3, That is to say 33%.
…
The last one, because it's the only one left , All traffic will go here , So you don't have to write probability.
边栏推荐
- [untitled]
- postgresql 用户不能自己创建表格配置
- Apple submitted the new MAC model to the regulatory database before the spring conference
- Is it really so difficult to learn redis? Today, a fan will share his personal learning materials!
- Katalon framework test web (XXVI) automatic email
- system information
- Defensive programming skills
- vim正确加区间注释
- 【华为云IoT】读书笔记之《万物互联:物联网核心技术与安全》第3章(上)
- JDBC advanced
猜你喜欢
[untitled]
Typical applications of minimum spanning tree
How about the ratings of 2022 Spring Festival Gala in all provinces? Map analysis helps you show clearly!
LNK2038 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MDd_DynamicDebug”(main.obj 中)
Balance between picture performance of unity mobile game performance optimization spectrum and GPU pressure
ctf-pikachu-CSRF
Go 语言入门很简单:Go 实现凯撒密码
渗透实战-guest账户-mimikatz-向日葵-sql提权-离线解密
AAAI2022 | Word Embeddings via Causal Inference: Gender Bias Reducing and Semantic Information Preserving
Getting started with the go language is simple: go implements the Caesar password
随机推荐
EV6 helps the product matrix, and Kia is making efforts in the high-end market. The global sales target in 2022 is 3.15 million?
Spa in SDP
[PaddleSeg 源码阅读] PaddleSeg Transform 的 Normalize操作
Katalon框架测试web(二十六)自动发邮件
深度优先搜索简要讲解(附带基础题)
Session learning diary 1
Eh, the log time of MySQL server is less than 8h?
JVM family -- heap analysis
Go 语言入门很简单:Go 实现凯撒密码
Tcpclientdemo for TCP protocol interaction
Which product is better for 2022 annual gold insurance?
The new data center helps speed up the construction of a digital economy with data as a key element
The property of judging odd or even numbers about XOR.
毕业总结
Introduction to asynchronous task capability of function calculation - task trigger de duplication
Pytest multi process / multi thread execution test case
laravel admin里百度编辑器自定义路径和文件名
Which product is better if you want to go abroad to insure Xinguan?
[paddleseg source code reading] paddleseg custom data class
Defensive programming skills