Project: mesos
Issue MESOS-1989: Container network stats reported by the port mapping isolator is the reverse of the actual network stats.
Looks like the TX/RX network stats reported is the reverse of the actual network stats. The reason is because we simply get TX/RX data from veth on the host. Since veth pair is a tunnel, the ingress of veth on host is the egress of eth0 in container (and vice versa). Therefore, we need to flip the data we got from veth. {noformat} [jyu@... ~]$ sudo ip netns exec 24926 /sbin/ip -s link show dev eth0 2: eth0: mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 1000 link/ether f0:4d:a2:75:74:05 brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcast 46030857691178 12561038581 0 0 0 0 TX: bytes packets errors dropped carrier collsns 29792886058561 15036798198 0 0 0 0 [jyu@... ~]$ ip -s link show dev mesos24926 7412: mesos24926: mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 1000 link/ether f0:4d:a2:75:74:05 brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcast 29793066979551 15036894749 0 0 0 0 TX: bytes packets errors dropped carrier collsns 46031126366116 12561113732 0 0 0 0 {noformat}
Story points: 1