1.add default route table of pod1
ip route add default via 192.168.101.126 dev eth2 table track_first
ip route add default via 192.168.103.126 dev eth3 table track_second
2.add cross-track route of pod1
ip route add 192.168.102.0/25 via 192.168.101.126 dev eth2
ip route add 192.168.104.0/25 via 192.168.103.126 dev eth3
3.add rule of pod1
ip rule add from 192.168.101.0/25 table track_first
ip rule add from 192.168.102.0/25 table track_first
ip rule add from 192.168.103.0/25 table track_second
ip rule add from 192.168.104.0/25 table track_second
4.add default route table of pod2
ip route add default via 192.168.102.126 dev eth2 table track_first
ip route add default via 192.168.104.126 dev eth3 table track_second
5.add cross-track route of pod2
ip route add 192.168.101.0/25 via 192.168.102.126 dev eth2
ip route add 192.168.103.0/25 via 192.168.104.126 dev eth3
6.add rule of pod2
ip rule add from 192.168.101.0/25 table track_first
ip rule add from 192.168.102.0/25 table track_first
ip rule add from 192.168.103.0/25 table track_second
ip rule add from 192.168.104.0/25 table track_second
What would you like to be added?
Spiderpool supports the same track routing configuration
1.add route of pod1 ip route add 192.168.101.0/25 via 192.168.101.126 dev eth2 ip route add 192.168.103.0/25 via 192.168.103.126 dev eth3
2.add route of pod2 ip route add 192.168.102.0/25 via 192.168.102.126 dev eth2 ip route add 192.168.104.0/25 via 192.168.104.126 dev eth3
The container manually configures the cross-track routing policy
cat /etc/iproute2/rt_tables 101 track_first 102 track_second
1.add default route table of pod1 ip route add default via 192.168.101.126 dev eth2 table track_first ip route add default via 192.168.103.126 dev eth3 table track_second
2.add cross-track route of pod1 ip route add 192.168.102.0/25 via 192.168.101.126 dev eth2 ip route add 192.168.104.0/25 via 192.168.103.126 dev eth3
3.add rule of pod1 ip rule add from 192.168.101.0/25 table track_first ip rule add from 192.168.102.0/25 table track_first ip rule add from 192.168.103.0/25 table track_second ip rule add from 192.168.104.0/25 table track_second
4.add default route table of pod2 ip route add default via 192.168.102.126 dev eth2 table track_first ip route add default via 192.168.104.126 dev eth3 table track_second
5.add cross-track route of pod2 ip route add 192.168.101.0/25 via 192.168.102.126 dev eth2 ip route add 192.168.103.0/25 via 192.168.104.126 dev eth3
6.add rule of pod2 ip rule add from 192.168.101.0/25 table track_first ip rule add from 192.168.102.0/25 table track_first ip rule add from 192.168.103.0/25 table track_second ip rule add from 192.168.104.0/25 table track_second
4.nccl test
Why is this needed?
Therefore, cross-track performance is better than non-cross-track, And the default setting for the application is to enable cross-track.
How to implement it (if possible)?
No response
Additional context
No response