Giter Club home page Giter Club logo

kube-bandwidth-isolation's Introduction

bandwidth

cni bandwidth for cilium

Test

OS: Ubuntu 18.04 Kernel: 5.4.0

Pod A and Pod B install tc and iperf3.

Pod A annotations add:

annotations:
  kubernetes.io/ingress-bandwidth: 10M
  kubernetes.io/egress-bandwidth: 10M

Pod ingress bandwidth limit test:

Pod A:

# iperf3 -s

Pod B:

# iperf3 -c 10.0.0.51 -b 15M

Pod A receiver result:

-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 10.0.0.208, port 58454
[  5] local 10.0.0.51 port 5201 connected to 10.0.0.208 port 58456
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  1.14 MBytes  9.59 Mbits/sec                  
[  5]   1.00-2.00   sec  1.14 MBytes  9.52 Mbits/sec                  
[  5]   2.00-3.00   sec  1.14 MBytes  9.57 Mbits/sec                  
[  5]   3.00-4.00   sec  1.14 MBytes  9.56 Mbits/sec                  
[  5]   4.00-5.00   sec  1.14 MBytes  9.58 Mbits/sec                  
[  5]   5.00-6.00   sec  1.14 MBytes  9.57 Mbits/sec                  
[  5]   6.00-7.00   sec  1.14 MBytes  9.56 Mbits/sec                  
[  5]   7.00-8.00   sec  1.14 MBytes  9.57 Mbits/sec                  
[  5]   8.00-9.00   sec  1.14 MBytes  9.55 Mbits/sec                  
[  5]   9.00-10.00  sec  1.14 MBytes  9.57 Mbits/sec                  
[  5]  10.00-10.01  sec  5.66 KBytes  7.70 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-10.01  sec  11.4 MBytes  9.56 Mbits/sec           receiver

Pod egress bandwidth limit test:

Pod A:

# iperf3 -s

Pod B:

# iperf3 -c 10.0.0.51 -R -b 15M

Pod B receiver result:

Connecting to host 10.0.0.51, port 5201
Reverse mode, remote host 10.0.0.51 is sending
[  4] local 10.0.0.208 port 59376 connected to 10.0.0.51 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec  1.14 MBytes  9.58 Mbits/sec                  
[  4]   1.00-2.00   sec  1.14 MBytes  9.55 Mbits/sec                  
[  4]   2.00-3.00   sec  1.14 MBytes  9.55 Mbits/sec                  
[  4]   3.00-4.00   sec  1.14 MBytes  9.57 Mbits/sec                  
[  4]   4.00-5.00   sec  1.14 MBytes  9.55 Mbits/sec                  
[  4]   5.00-6.00   sec  1.14 MBytes  9.58 Mbits/sec                  
[  4]   6.00-7.00   sec  1.14 MBytes  9.57 Mbits/sec                  
[  4]   7.00-8.00   sec  1.14 MBytes  9.54 Mbits/sec                  
[  4]   8.00-9.00   sec  1.14 MBytes  9.59 Mbits/sec                  
[  4]   9.00-10.00  sec  1.14 MBytes  9.56 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec  12.2 MBytes  10.3 Mbits/sec    0             sender
[  4]   0.00-10.00  sec  11.5 MBytes  9.67 Mbits/sec                  receiver

kube-bandwidth-isolation's People

Contributors

alandtsang avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.