server

package
v0.0.0-...-3c654f8 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

package server provides embed etcd server in the process. In stress we use etcd server to store stats across all target servers to get over all performance stats. In this package we minimize etcd server configuration for minimal usage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartAndServe

func StartAndServe(cfg Config)

StartAndServe the etcd server permanently

func StartEmbedServer

func StartEmbedServer(cfg Config) (*embed.Etcd, error)

Start etcd embed server

Types

type Config

type Config struct {
	ListenPeerURLs      []url.URL
	ListenClientURLs    []url.URL
	AdvertisePeerURLs   []url.URL
	AdvertiseClientURLs []url.URL
	Name                string
	InitialCluster      string
	InitialClusterToken string
}

Config is the configuration interface of etcd embed server used by stress target

Jump to

Keyboard shortcuts

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