Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Benchmark ¶
type Benchmark struct { BrokerdHost string BrokerName string BrokerHost string BrokerPort string PeerHosts []string NumMessages uint MessageSize uint64 Publishers uint Subscribers uint StartupSleep uint DaemonTimeout uint }
Benchmark contains configuration settings for broker tests.
type Client ¶
type Client struct { Benchmark *Benchmark // contains filtered or unexported fields }
Client provides an API for interacting with Flotilla.
func NewClient ¶
NewClient creates and returns a new Client from the provided Benchmark configuration. It returns an error if the Benchmark is not valid or it can't communicate with any of the specified peers.
func (*Client) Start ¶
func (c *Client) Start() ([]*ResultContainer, error)
Start begins the broker test.
type LatencyResults ¶
type LatencyResults struct { Min int64 `json:"min"` Q1 int64 `json:"q1"` Q2 int64 `json:"q2"` Q3 int64 `json:"q3"` Max int64 `json:"max"` Mean float64 `json:"mean"` StdDev float64 `json:"std_dev"` }
LatencyResults contains the latency result data for a single peer.
type Result ¶
type Result struct { Duration float32 `json:"duration,omitempty"` Throughput float32 `json:"throughput,omitempty"` Latency LatencyResults `json:"latency,omitempty"` Err string `json:"error"` }
Result contains test result data for a single peer.
type ResultContainer ¶
ResultContainer contains the Results for a single node.
Click to show internal directories.
Click to hide internal directories.