Documentation
¶
Index ¶
Constants ¶
View Source
const ( // run simple txn to test tidb WorkloadTypeTXN = "TXN" // run select(*) to test tikv and tiflash WorkloadTypeSelectCount = "SelectCount" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option interface {
With(opts *Options)
}
func MaxExecutionTime ¶
func MaxLifeTime ¶
func RegionCount ¶
func TiFlashReplicas ¶
func WorkloadType ¶
type Options ¶
type Options struct {
Port int
User string
Password string
TLS bool
CA string
CertKeyPair string
RegionCount int
// MaxExecutionTime is max_execution_time of tidb in millisecond
// Default is 2000
MaxExecutionTime int
TiFlashReplicas int
// MaxLifeTime is max life time in seconds of sql connections
// Default is 60
MaxLifeTime int
// WorkloadType defines type of the workload
// Only support TXN and SelectCount now
WorkloadType string
}
func DefaultOptions ¶
func DefaultOptions() *Options
type WithOption ¶
type WithOption func(opts *Options)
func (WithOption) With ¶
func (opt WithOption) With(opts *Options)
Click to show internal directories.
Click to hide internal directories.