Documentation
¶
Index ¶
- Constants
- func ConfigJobWithTLS(job *batchv1.Job, o *Options) *batchv1.Job
- type Option
- func FromDescOption(o *desc.Options) Option
- func MaxExecutionTime(ms int) Option
- func MaxLifeTime(sec int) Option
- func Port(port int) Option
- func RegionCount(count int) Option
- func TLS(ca, certKeyPair string) Option
- func TiFlashReplicas(replicas int) Option
- func User(user, password string) Option
- func WorkloadType(t string) Option
- type Options
- type WithOption
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 FromDescOption ¶
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.