当前位置:网站首页>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.
边栏推荐
- Management and thesis of job management system based on SSM
- Apple submitted the new MAC model to the regulatory database before the spring conference
- 2022-07-03:数组里有0和1,一定要翻转一个区间,翻转:0变1,1变0。 请问翻转后可以使得1的个数最多是多少? 来自小红书。3.13笔试。
- Which product is better if you want to go abroad to insure Xinguan?
- Katalon框架测试web(二十一)获取元素属性断言
- 图解网络:什么是热备份路由器协议HSRP?
- Pandora IOT development board learning (HAL Library) - Experiment 6 independent watchdog experiment (learning notes)
- XSS prevention
- Katalon框架测试web(二十六)自动发邮件
- New year's first race, submit bug reward more!
猜你喜欢
随机推荐
疫情来袭--远程办公之思考|社区征文
Zigzag scan
思考的小记录
Eh, the log time of MySQL server is less than 8h?
2022-07-03: there are 0 and 1 in the array. Be sure to flip an interval. Flip: 0 becomes 1, 1 becomes 0. What is the maximum number of 1 after turning? From little red book. 3.13 written examination.
STM32外接DHT11显示温湿度
pytest多进程/多线程执行测试用例
JSON string conversion in unity
【愚公系列】2022年7月 Go教学课程 002-Go语言环境安装
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?
[PaddleSeg 源码阅读] PaddleSeg计算Dice
JDBC advanced
Detailed explanation of PPTC self recovery fuse
Aperçu du code source futur - série juc
Huawei cloud Kunpeng engineer training (Guangxi University)
Simple dialogue system -- text classification using transformer
Cesiumjs 2022^ source code interpretation [0] - article directory and source code engineering structure
Future源碼一觀-JUC系列
vim映射命令
Balance between picture performance of unity mobile game performance optimization spectrum and GPU pressure









