ycsb

package
v0.0.0-...-b44688a Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateWorkloadCommandParameters

func CalculateWorkloadCommandParameters(qps int, duration time.Duration, config *Config)

CalculateWorkloadCommandParameters parses parameters from config and creates command.

func New

func New(exec executor.Executor, config Config) executor.LoadGenerator

New is a contructor for YCSB.

Types

type Config

type Config struct {
	PathToBinary                string
	RedisHost                   string
	RedisPort                   int
	RedisClusterMode            bool // Redis cluster mode.
	Workload                    string
	WorkloadRecordCount         int
	WorkloadOperationCount      int64
	WorkloadReadAllFields       bool
	WorkloadReadProportion      float64
	WorkloadUpdateProportion    float64
	WorkloadScanProportion      float64
	WorkloadInsertProportion    float64
	WorkloadRequestDistribution string
	// contains filtered or unexported fields
}

Config is a config for the YCSB.

func DefaultYcsbConfig

func DefaultYcsbConfig() Config

DefaultYcsbConfig is a constructor for YcsbConfig with default parameters.

Jump to

Keyboard shortcuts

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