CentaurusInfra / mizar

Mizar – Experimental, High Scale and High Performance Cloud Network https://mizar.readthedocs.io
https://mizar.readthedocs.io
GNU General Public License v2.0
111 stars 50 forks source link

Network bandwidth limiting viaEDT - use bytes/sec and use node src IP as key in EDT eBPF map #496

Closed vinaykul closed 3 years ago

vinaykul commented 3 years ago

What does this change do? This PR fixes egress bandwidth in Mizar code to use bytes per second instead of bits per second to align with the unit used by K8s annotation. It also uses the droplet host IP as key for the EDT rate-limiting BFP map.

Why is it needed? This is a clean consistent way to manage bandwidth units, and use a key that can work for multiple NIC scenarios (when we do that in the future)

How was this tested? Manual E2E testing. (Unit tests are already in with previous PR

Are there any user facing / API changes? No.