Here’s a quick script to check the network bandwidth/throughput on a Nutanix cluster. SSH into a Nutanix CVM and run:
1
allssh ./diagnostics/diagnostics.py run_iperf
This will loop through each CVM and test network performance to the other CVM’s in the cluster. It leverages the diagnostics.py
script that is builtin to each CVM.
Use caution when executing this script as iPerf is designed to push the network bandwidth to the max. I typically only use this when setting up a new cluster to validate network performance or if troubleshooting a network performance issue.
In the example below, you can see we are getting close to line-rate speeds between CVM’s on a 10Gbps network.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
login as: nutanix
Nutanix Controller VM
nutanix@NTNX-CLUSTER password:
Last login: Wed Nov 11 09:41:00 2018 from 10.20.30.108
nutanix@NTNX-8675309-A-CVM:10.20.30.103:~$ allssh ./diagnostics/diagnostics.py run_iperf
================== 10.20.30.101 =================
Running Iperf Test between CVMs
bandwidth between 10.20.30.101 and 10.20.30.102 is: 9.44 Gbits
bandwidth between 10.20.30.101 and 10.20.30.103 is: 9.41 Gbits
bandwidth between 10.20.30.101 and 10.20.30.104 is: 9.49 Gbits
bandwidth between 10.20.30.101 and 10.20.30.105 is: 9.34 Gbits
bandwidth between 10.20.30.101 and 10.20.30.106 is: 9.44 Gbits
bandwidth between 10.20.30.101 and 10.20.30.107 is: 9.46 Gbits
bandwidth between 10.20.30.101 and 10.20.30.108 is: 9.45 Gbits
================== 10.20.30.102 =================
Running Iperf Test between CVMs
bandwidth between 10.20.30.102 and 10.20.30.101 is: 9.45 Gbits
bandwidth between 10.20.30.102 and 10.20.30.103 is: 9.47 Gbits
bandwidth between 10.20.30.102 and 10.20.30.104 is: 9.47 Gbits
bandwidth between 10.20.30.102 and 10.20.30.105 is: 9.45 Gbits
bandwidth between 10.20.30.102 and 10.20.30.106 is: 9.42 Gbits
bandwidth between 10.20.30.102 and 10.20.30.107 is: 9.46 Gbits
bandwidth between 10.20.30.102 and 10.20.30.108 is: 9.4 Gbits
================== 10.20.30.103 =================
Running Iperf Test between CVMs
bandwidth between 10.20.30.103 and 10.20.30.101 is: 9.43 Gbits
bandwidth between 10.20.30.103 and 10.20.30.102 is: 9.45 Gbits
bandwidth between 10.20.30.103 and 10.20.30.104 is: 9.4 Gbits
bandwidth between 10.20.30.103 and 10.20.30.105 is: 9.44 Gbits
bandwidth between 10.20.30.103 and 10.20.30.106 is: 9.42 Gbits
bandwidth between 10.20.30.103 and 10.20.30.107 is: 9.48 Gbits
bandwidth between 10.20.30.103 and 10.20.30.108 is: 9.43 Gbits
================== 10.20.30.104 =================
Running Iperf Test between CVMs
bandwidth between 10.20.30.104 and 10.20.30.101 is: 9.46 Gbits
bandwidth between 10.20.30.104 and 10.20.30.102 is: 9.49 Gbits
bandwidth between 10.20.30.104 and 10.20.30.103 is: 9.43 Gbits
bandwidth between 10.20.30.104 and 10.20.30.105 is: 9.46 Gbits
bandwidth between 10.20.30.104 and 10.20.30.106 is: 9.45 Gbits
bandwidth between 10.20.30.104 and 10.20.30.107 is: 9.43 Gbits
bandwidth between 10.20.30.104 and 10.20.30.108 is: 9.48 Gbits
================== 10.20.30.105 =================
Running Iperf Test between CVMs
bandwidth between 10.20.30.105 and 10.20.30.101 is: 9.47 Gbits
bandwidth between 10.20.30.105 and 10.20.30.102 is: 9.48 Gbits
bandwidth between 10.20.30.105 and 10.20.30.103 is: 9.43 Gbits
bandwidth between 10.20.30.105 and 10.20.30.104 is: 9.48 Gbits
bandwidth between 10.20.30.105 and 10.20.30.106 is: 9.46 Gbits
bandwidth between 10.20.30.105 and 10.20.30.107 is: 9.36 Gbits
bandwidth between 10.20.30.105 and 10.20.30.108 is: 9.46 Gbits
================== 10.20.30.106 =================
Running Iperf Test between CVMs
bandwidth between 10.20.30.106 and 10.20.30.101 is: 9.45 Gbits
bandwidth between 10.20.30.106 and 10.20.30.102 is: 9.44 Gbits
bandwidth between 10.20.30.106 and 10.20.30.103 is: 9.43 Gbits
bandwidth between 10.20.30.106 and 10.20.30.104 is: 9.48 Gbits
bandwidth between 10.20.30.106 and 10.20.30.105 is: 9.43 Gbits
bandwidth between 10.20.30.106 and 10.20.30.107 is: 9.44 Gbits
bandwidth between 10.20.30.106 and 10.20.30.108 is: 9.47 Gbits
================== 10.20.30.107 =================
Running Iperf Test between CVMs
bandwidth between 10.20.30.107 and 10.20.30.101 is: 9.43 Gbits
bandwidth between 10.20.30.107 and 10.20.30.102 is: 9.41 Gbits
bandwidth between 10.20.30.107 and 10.20.30.103 is: 9.45 Gbits
bandwidth between 10.20.30.107 and 10.20.30.104 is: 9.41 Gbits
bandwidth between 10.20.30.107 and 10.20.30.105 is: 9.48 Gbits
bandwidth between 10.20.30.107 and 10.20.30.106 is: 9.46 Gbits
bandwidth between 10.20.30.107 and 10.20.30.108 is: 9.42 Gbits
================== 10.20.30.108 =================
Running Iperf Test between CVMs
bandwidth between 10.20.30.108 and 10.20.30.101 is: 9.44 Gbits
bandwidth between 10.20.30.108 and 10.20.30.102 is: 9.46 Gbits
bandwidth between 10.20.30.108 and 10.20.30.103 is: 9.43 Gbits
bandwidth between 10.20.30.108 and 10.20.30.104 is: 9.4 Gbits
bandwidth between 10.20.30.108 and 10.20.30.105 is: 9.44 Gbits
bandwidth between 10.20.30.108 and 10.20.30.106 is: 9.47 Gbits
bandwidth between 10.20.30.108 and 10.20.30.107 is: 9.43 Gbits
nutanix@NTNX-8675309-A-CVM:10.20.30.103:~$