k8s-performance-benchmark

command module
v0.0.0-...-e94c852 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

README

k8s-performance-benchmark - The kubernetes cni and application load benchmark tool


Dependencies

  • jq
  • awk
  • kubectl

Usage


cni benchmark
root@shell:/srv# ./k8s-performance-benchmark cni -c node01 -s node02 
2021-07-06 03:39:42 [ℹ]  start running tmp-k8s-cluster cluster cni benchmarks
2021-07-06 03:39:42 [ℹ]  server node will be node02
2021-07-06 03:39:42 [ℹ]  client node will be node01
2021-07-06 03:39:42 [ℹ]  deploying server monitor on node node02
2021-07-06 03:39:48 [ℹ]  deploying client monitor on node node01
2021-07-06 03:39:55 [ℹ]  deploying iperf server on node node02
2021-07-06 03:39:59 [ℹ]  check CPU
2021-07-06 03:39:59 [ℹ]  check kernel version
2021-07-06 03:40:00 [ℹ]  check kubernetes version
2021-07-06 03:40:00 [ℹ]  check cni mtu
2021-07-06 03:40:00 [ℹ]  starting pod kpb-client-idle-14 on node node01
2021-07-06 03:40:15 [ℹ]  waiting for pod kpb-client-idle-14 to be completed
2021-07-06 03:40:18 [ℹ]  starting pod kpb-client-tcp-p2p-14 on node node01
2021-07-06 03:40:33 [ℹ]  waiting for pod kpb-client-tcp-p2p-14 to be completed
2021-07-06 03:40:37 [ℹ]  starting pod kpb-client-udp-p2p-14 on node node01
2021-07-06 03:40:52 [ℹ]  waiting for pod kpb-client-udp-p2p-14 to be completed
2021-07-06 03:40:56 [ℹ]  starting pod kpb-client-tcp-p2s-14 on node node01
2021-07-06 03:41:14 [ℹ]  waiting for pod kpb-client-tcp-p2s-14 to be completed
2021-07-06 03:41:17 [ℹ]  starting pod kpb-client-udp-p2s-14 on node node01
2021-07-06 03:41:33 [ℹ]  waiting for pod kpb-client-udp-p2s-14 to be completed
2021-07-06 03:41:37 [ℹ]  
=========================================================
Benchmark Results
=========================================================
Name            : ./k8s-performance-benchmark
Date            : 2021-07-06 03:39:42
Version         : v1.0
Server          : node02
Client          : node01
UDP Socket size : auto
Title           : tmp-k8s-cluster cluster cni benchmarks
=========================================================
  Discovered CPU         : AMD EPYC 7H12 64-Core Processor
  Discovered Kernel      : 5.10.0-051000-generic
  Discovered k8s version : v1.19.11
  Discovered MTU         : 1500
  Idle :    |
        bandwidth  = 0 Mbit/s
        client cpu = total 0.15% (user 0.09%, nice 0.00%, system 0.06%, iowait 0.00%, steal 0.00%)
        server cpu = total 0.10% (user 0.08%, nice 0.00%, system 0.02%, iowait 0.00%, steal 0.00%)
        client ram = 6391 MB
        server ram = 6103 MB
  Pod to pod :
    TCP :    |
        bandwidth  = 14089 Mbit/s
        client cpu = total 0.56% (user 0.07%, nice 0.00%, system 0.49%, iowait 0.00%, steal 0.00%)
        server cpu = total 0.78% (user 0.05%, nice 0.00%, system 0.73%, iowait 0.00%, steal 0.00%)
        client ram = 6392 MB
        server ram = 6119 MB
    UDP :    |
        bandwidth  = 1502 Mbit/s
        client cpu = total 0.52% (user 0.10%, nice 0.00%, system 0.42%, iowait 0.00%, steal 0.00%)
        server cpu = total 0.45% (user 0.08%, nice 0.00%, system 0.37%, iowait 0.00%, steal 0.00%)
        client ram = 6388 MB
        server ram = 6122 MB
  Pod to Service :
    TCP :    |
        bandwidth  = 12899 Mbit/s
        client cpu = total 0.58% (user 0.09%, nice 0.00%, system 0.49%, iowait 0.00%, steal 0.00%)
        server cpu = total 0.79% (user 0.05%, nice 0.00%, system 0.74%, iowait 0.00%, steal 0.00%)
        client ram = 6392 MB
        server ram = 6137 MB
    UDP :    |
        bandwidth  = 13139 Mbit/s
        client cpu = total 0.60% (user 0.09%, nice 0.00%, system 0.51%, iowait 0.00%, steal 0.00%)
        server cpu = total 0.93% (user 0.15%, nice 0.00%, system 0.78%, iowait 0.00%, steal 0.00%)
        client ram = 6390 MB
        server ram = 6159 MB
=========================================================
2021-07-06 03:41:37 [ℹ]  starting plotly-orca pod kpb-plotly-orca-14
2021-07-06 03:41:43 [ℹ]  plotting data ...
2021-07-06 03:41:54 [ℹ]  plotting image table success, path = /srv/20210706
2021-07-06 03:41:54 [ℹ]  cleaning kubernetes resources ...

application load benchmark

wait update...

Documentation

Overview

Copyright © 2021 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
common
pod
controll
cni
pkg
log

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL