当前位置:网站首页>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.
边栏推荐
- 毕业总结
- CSP drawing
- Support the first triggered go ticker
- Two sides of the evening: tell me about the bloom filter and cuckoo filter? Application scenario? I'm confused..
- Graduation summary
- STM32外接DHT11显示温湿度
- mysql数据库的存储
- [paddleseg source code reading] paddleseg custom data class
- Objective-C member variable permissions
- Add IDM to Google browser
猜你喜欢

【罗技】m720

Nbear introduction and use diagram

如何有效远程办公之我见 | 社区征文

选择排序与冒泡排序模板

Package details_ Four access control characters_ Two details of protected

Easy to win insert sort
![[source code analysis] model parallel distributed training Megatron (5) -- pipestream flush](/img/98/3e5f1094141e34d7e77f908e12acda.jpg)
[source code analysis] model parallel distributed training Megatron (5) -- pipestream flush

Tcpclientdemo for TCP protocol interaction

Storage of MySQL database

JSON string conversion in unity
随机推荐
The new data center helps speed up the construction of a digital economy with data as a key element
Unity移动端游戏性能优化简谱之 画面表现与GPU压力的权衡
MySQL backup notes
Day05 錶格
Recursive structure
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?
How to dynamically cache components in Vue multi-level route nesting
SQL語句加强練習(MySQL8.0為例)
Infiltration practice guest account mimikatz sunflower SQL rights lifting offline decryption
logistic regression
[PaddleSeg 源码阅读] PaddleSeg Transform 的 Normalize操作
渗透实战-guest账户-mimikatz-向日葵-sql提权-离线解密
Formulaire day05
Aperçu du code source futur - série juc
PostgreSQL users cannot create table configurations by themselves
XSS prevention
STM32 external DHT11 display temperature and humidity
[paddleseg source code reading] paddleseg calculates Miou
疫情来袭--远程办公之思考|社区征文
Tcpclientdemo for TCP protocol interaction