首页 > 代码库 > calico性能测试
calico性能测试
硬件环境:
三台虚拟机:
192.168.99.129 master(kube-apiserver、kube-controller-manager、kube-proxy、kube-scheduler、kubelet、etcd、calico、docker)
192.168.99.130 slave1(kube-proxy、kubelet、etcd proxy、calico、docker、dns)
192.168.99.131 slave2(kube-proxy、kubelet、etcd proxy、calico、docker)
软件环境:
kubernetes 1.5.2
etcd 3.1.0
calico 0.23.1
qperf (网络性能测试工具,安装方法:yum install -y qperf)
测试结果:
【物理机到物理机】
[root@slave2 kubernetes]# qperf 192.168.99.130 -oo msg_size:1:64K:*2 tcp_bw tcp_lattcp_bw: bw = 2.49 MB/sectcp_bw: bw = 4.69 MB/sectcp_bw: bw = 8.18 MB/sectcp_bw: bw = 14.3 MB/sectcp_bw: bw = 22.2 MB/sectcp_bw: bw = 29.5 MB/sectcp_bw: bw = 35.2 MB/sectcp_bw: bw = 40.6 MB/sectcp_bw: bw = 64.9 MB/sectcp_bw: bw = 47.5 MB/sectcp_bw: bw = 49.6 MB/sectcp_bw: bw = 59.1 MB/sectcp_bw: bw = 88.9 MB/sectcp_bw: bw = 151 MB/sectcp_bw: bw = 178 MB/sectcp_bw: bw = 203 MB/sectcp_bw: bw = 209 MB/sectcp_lat: latency = 1.08 mstcp_lat: latency = 1.21 mstcp_lat: latency = 180 ustcp_lat: latency = 68.4 ustcp_lat: latency = 69 ustcp_lat: latency = 70.9 ustcp_lat: latency = 70.5 ustcp_lat: latency = 67.9 ustcp_lat: latency = 75.5 ustcp_lat: latency = 69.9 ustcp_lat: latency = 81.1 ustcp_lat: latency = 87.1 ustcp_lat: latency = 88.8 ustcp_lat: latency = 112 ustcp_lat: latency = 145 ustcp_lat: latency = 218 ustcp_lat: latency = 502 us
【容器到容器】
[root@slave2 kubernetes]# qperf 192.168.140.199 -oo msg_size:1:64K:*2 tcp_bw tcp_lat conftcp_bw: bw = 2.67 MB/sectcp_bw: bw = 4.86 MB/sectcp_bw: bw = 8.44 MB/sectcp_bw: bw = 15.6 MB/sectcp_bw: bw = 23 MB/sectcp_bw: bw = 32.6 MB/sectcp_bw: bw = 43.8 MB/sectcp_bw: bw = 45 MB/sectcp_bw: bw = 48.6 MB/sectcp_bw: bw = 53.1 MB/sectcp_bw: bw = 59.4 MB/sectcp_bw: bw = 69.1 MB/sectcp_bw: bw = 103 MB/sectcp_bw: bw = 156 MB/sectcp_bw: bw = 178 MB/sectcp_bw: bw = 203 MB/sectcp_bw: bw = 209 MB/sectcp_lat: latency = 88.7 ustcp_lat: latency = 82.3 ustcp_lat: latency = 88.4 ustcp_lat: latency = 93 ustcp_lat: latency = 84.1 ustcp_lat: latency = 89.8 ustcp_lat: latency = 84.8 ustcp_lat: latency = 83.8 ustcp_lat: latency = 82.7 ustcp_lat: latency = 83.1 ustcp_lat: latency = 88.6 ustcp_lat: latency = 101 ustcp_lat: latency = 105 ustcp_lat: latency = 127 ustcp_lat: latency = 170 ustcp_lat: latency = 283 ustcp_lat: latency = 618 us
【容器到物理机】
[root@slave2 kubernetes]# qperf 192.168.99.129 -oo msg_size:1:64K:*2 tcp_bw tcp_lat conftcp_bw: bw = 2.65 MB/sectcp_bw: bw = 4.92 MB/sectcp_bw: bw = 8.66 MB/sectcp_bw: bw = 15.2 MB/sectcp_bw: bw = 23.3 MB/sectcp_bw: bw = 30.4 MB/sectcp_bw: bw = 37.5 MB/sectcp_bw: bw = 43 MB/sectcp_bw: bw = 48.9 MB/sectcp_bw: bw = 51.5 MB/sectcp_bw: bw = 54.9 MB/sectcp_bw: bw = 67.6 MB/sectcp_bw: bw = 103 MB/sectcp_bw: bw = 147 MB/sectcp_bw: bw = 175 MB/sectcp_bw: bw = 206 MB/sectcp_bw: bw = 213 MB/sectcp_lat: latency = 76.5 ustcp_lat: latency = 77.6 ustcp_lat: latency = 76.5 ustcp_lat: latency = 77.7 ustcp_lat: latency = 74.7 ustcp_lat: latency = 79.6 ustcp_lat: latency = 79.3 ustcp_lat: latency = 81.4 ustcp_lat: latency = 81.5 ustcp_lat: latency = 82.1 ustcp_lat: latency = 80.3 ustcp_lat: latency = 92.3 ustcp_lat: latency = 93.7 ustcp_lat: latency = 112 ustcp_lat: latency = 155 ustcp_lat: latency = 237 ustcp_lat: latency = 609 us
结论:calico的性能几乎与物理网卡的性能一样。
calico性能测试
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。