etcd-replayer

command module
v0.0.0-...-08780fe Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: Apache-2.0 Imports: 26 Imported by: 0

README

load-simulator

Usage of load-simulator:
  -clean
    	only do clean up operation
  -concurrent int
    	number of concurrent clients (default 10)
  -duration int
    	duration for running this test, in second (default 10)
  -kubeconfig string
    	absolute path to the kubeconfig file (default "/Users/ianzhang/.kube/config")
  -pprof
    	enable pprof or not
  -template string
    	path to the template file, default is ./testdata/manifestwork-template.yaml (default "./testdata/manifestwork-template.yaml")
  -update
    	do continous update after creation (default true)

Behaviour

load-simulator will apply template to k8s cluster(pointed by kubeconfig) in the following manner.

Open concurrent connections, and create or update the template every interval (default is 5 milliseconds).

Note: your local env, such as your MACBook, might not have enough resource to run this with 1000 connections. You might want to use a large EC2 instance.

Debug

You can use lsof -i | grep main to confirm if there's expected connection opened on your manchine.

In addition, if you have performance concern over this, you can use the pprof flag to enable the golang pprof.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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