ovsdb

package module
v0.0.0-...-e37e67b Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Benchmark etcd

A ovsdb benchmark tool based on fperf

Installing

go get github.com/hunchback/fperf-ovsdb/bin/fperf

Usage

./fperf -server tcp:127.0.0.1:12345 -connection 256 -tick 1s ovsdb [put|get|delete|range]

The key is randomly generated with the default key-size = 4 bytes, so the key space is 2^32.

Server

ovsdb-tool create-cluster \
	/opt/ovn/ovnsb_db.db \
	/opt/ovn/ovn-sb.ovsschema \
	tcp:127.0.0.1:12345
ovsdb-server \
	-vfile:info \
	--log-file=/opt/ovn/ovsdb-server-sb.log \
	--pidfile=/opt/ovn/ovnsb_db.pid \
	--detach --no-chdir \
	--unixctl=/opt/ovn/ovnsb_db.ctl \
	--remote=ptcp:6642  /opt/ovn/ovnsb_db.db
ovsdb-client -v dump tcp:127.0.0.1:12345 OVN_Southbound

Documentation

Index

Constants

View Source
const (
	OP_INSERT string = "insert"
	OP_UPDATE string = "update"
	OP_DELETE string = "delete"
	OP_SELECT string = "select"
	OP_MUTATE string = "mutate"
)
View Source
const (
	DBNAME string = "OVN_Southbound"
	TABLE  string = "DHCP_Options"
)

Variables

This section is empty.

Functions

func New

func New(fs *fperf.FlagSet) fperf.Client

New creates a fperf client

Types

type Op

type Op string

Op is the operation type

const (
	Insert Op = "insert"
	Select Op = "select"
	Update Op = "update"
	Mutate Op = "mutate"
	Delete Op = "delete"
)

Operations

Directories

Path Synopsis
bin
fperf command

Jump to

Keyboard shortcuts

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