config

package
v0.0.0-...-3a733ff Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExperimentCommonConfig

type ExperimentCommonConfig struct {
	SpecFilePath       string         `json:"spec_file_path"`
	RunConfigPath      string         `json:"run_config_path"`
	DataDirPrefix      string         `json:"data_dir_prefix"`
	KubeConfigPath     string         `json:"kube_config_path"`
	NodeCount          int32          `json:"node_count"`
	PayloadSize        int32          `json:"payload_size"`
	DatapointTime      types.Duration `json:"datapoint_time"`
	ScaleDatapointTime types.Duration `json:"scale_datapoint_time"`
}

type ExperimentConfig

type ExperimentConfig struct {
	ExperimentCommonConfig
	Algorithms []struct {
		Name                peerpb.Algorithm `json:"name"`
		MaxFailures         uint64           `json:"max_failures"`
		KeyFile             string           `json:"key_file"`
		FastResponsePercent int              `json:"fast_response_percent"`
		NumChains           int              `json:"num_chains"`
	} `json:"algorithms"`
	RequestCounts []struct {
		InflightRequestCounts []int32 `json:"inflight_request_counts"`
		ClientCounts          []int32 `json:"client_counts"`
	} `json:"request_counts"`
	ClientBatchCounts []int32 `json:"client_batch_counts"`
}

type ExperimentPlan

type ExperimentPlan struct {
	ExperimentCommonConfig
	Count   int            `json:"count"`
	Batches []PerBatchPlan `json:"batches"`
}

func GenerateDetailConfig

func GenerateDetailConfig(config ExperimentConfig) ExperimentPlan

type PerAlgPlan

type PerAlgPlan struct {
	Name                  peerpb.Algorithm  `json:"name"`
	MaxFailures           uint64            `json:"max_failures"`
	KeyFile               string            `json:"key_file"`
	InflightRequestCounts []PerInflightPlan `json:"inflight_request_counts"`
	FastResponsePercent   int               `json:"fast_response_percent"`
	NumChains             int               `json:"num_chains"`
}

type PerBatchPlan

type PerBatchPlan struct {
	BatchSize  int32        `json:"batch_size"`
	Algorithms []PerAlgPlan `json:"algorithms"`
}

type PerInflightPlan

type PerInflightPlan struct {
	InflightRequestCount int32   `json:"inflight_request_count"`
	ClientCounts         []int32 `json:"client_counts"`
}

Jump to

Keyboard shortcuts

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