Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Pools []InstancePoolConfig `config:"pools"`
}
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
type InstancePoolConfig ¶
type InstancePoolConfig struct { Id string Provider core.Provider `config:"ammo"` Aggregator core.Aggregator `config:"result"` NewGun func() (core.Gun, error) `config:"gun"` RPSPerInstance bool `config:"rps-per-instance"` NewRPSSchedule func() (core.Schedule, error) `config:"rps"` StartupSchedule core.Schedule `config:"startup"` }
type Metrics ¶
type Metrics struct { Request *monitoring.Counter Response *monitoring.Counter InstanceStart *monitoring.Counter InstanceFinish *monitoring.Counter }
TODO(skipor): use something github.com/rcrowley/go-metrics based. Its high level primitives like Meter can be not fast enough, but EWMAs and Counters should good for that.
Click to show internal directories.
Click to hide internal directories.