performance

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

README

This Directory contains E2E Performance tests

KWOK Performance tests

KWOK (Kubernetes WithOut Kubelet) is a high-performance, lightweight Kubernetes simulation and testing tool. It allows you to simulate a Kubernetes cluster environment without the need to run the kubelet or other node components. This makes it an efficient tool for quickly deploying and testing clusters, especially for scenarios that don't require full-fledged nodes.

Workflow of the KWOK E2E test

  • Create fake nodes
  • Create fake VMIs
  • Delete fake VMIs
  • Collect metrics
  • Create fake VMs
  • Delete fake VMs
  • Collect metrics
  • Delete fake nodes

Running tests locally

To run tests locally, you will first need to set up a Kubernetes cluster using KWOK and then deploy KubeVirt on the cluster

export KUBEVIRT_DEPLOY_KWOK = "true"
export KUBEVIRT_DEPLOY_PROMETHEUS = "true"

make cluster-up

Once the cluster is up, deploy KubeVirt by running the following command:

make cluster-sync

Open port-forward tunnel to connect to prometheus

kubectl port-forward -n monitoring svc/prometheus-nodeport 30007:9090

You can customize the number of nodes and virtual machines (VMs) you want to run the tests against. If not specified, the following default values will be used, NODE_COUNT = 100 and VM_COUNT = 1000.

export KWOK_NODE_COUNT = "10"
export VM_COUNT = "100"

With the environment set up, run the performance tests using the following command:

make kwok-perftest

Documentation

Overview

Copyright 2024 The KubeVirt Authors. 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.

Index

Constants

This section is empty.

Variables

View Source
var (
	RunPerfTests bool

	RunPerfRealtime bool
)
View Source
var PrometheusScrapeInterval = time.Duration(30 * time.Second)

Functions

func FSIGDescribe

func FSIGDescribe(text string, args ...interface{}) bool

func KWOKDescribe added in v1.4.0

func KWOKDescribe(text string, args ...interface{}) bool

func SIGDescribe

func SIGDescribe(text string, args ...interface{}) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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