docker

package
v1.14.9 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunExperiment

func RunExperiment(kind Kind, fiboPlace int, sampleSize int)

Types

type ContainerStats

type ContainerStats struct {
	Read time.Time `json:"read"`
	//Preread   time.Time `json:"preread"`
	//PidsStats struct {
	//	Current int `json:"current"`
	//} `json:"pids_stats"`
	//BlkioStats struct {
	//	IoServiceBytesRecursive []interface{} `json:"io_service_bytes_recursive"`
	//	IoServicedRecursive     []interface{} `json:"io_serviced_recursive"`
	//	IoQueueRecursive        []interface{} `json:"io_queue_recursive"`
	//	IoServiceTimeRecursive  []interface{} `json:"io_service_time_recursive"`
	//	IoWaitTimeRecursive     []interface{} `json:"io_wait_time_recursive"`
	//	IoMergedRecursive       []interface{} `json:"io_merged_recursive"`
	//	IoTimeRecursive         []interface{} `json:"io_time_recursive"`
	//	SectorsRecursive        []interface{} `json:"sectors_recursive"`
	//} `json:"blkio_stats"`
	//NumProcs     int `json:"num_procs"`
	//StorageStats struct {
	//} `json:"storage_stats"`
	CPUStats struct {
		CPUUsage struct {
			TotalUsage  int64 `json:"total_usage"`
			PercpuUsage []int `json:"percpu_usage"`
		} `json:"cpu_usage"`
		SystemCPUUsage int64 `json:"system_cpu_usage"`
		OnlineCpus     int   `json:"online_cpus"`
	} `json:"cpu_stats"`
	PrecpuStats struct {
		CPUUsage struct {
			TotalUsage int64 `json:"total_usage"`
		} `json:"cpu_usage"`
		SystemCPUUsage int64 `json:"system_cpu_usage"`
	} `json:"precpu_stats"`
	MemoryStats struct {
		Usage int `json:"usage"`
		//MaxUsage int `json:"max_usage"`
		Stats struct {
			//ActiveAnon              int   `json:"active_anon"`
			//ActiveFile              int   `json:"active_file"`
			Cache int `json:"cache"`
		} `json:"stats"`
		Limit int `json:"limit"`
	} `json:"memory_stats"`
	Name string `json:"name"`
	ID   string `json:"id"`
}

type Kind

type Kind int
const (
	Udp Kind = iota
	Tcp
	Tls
	Quic
	Rpc
	Http
	Https
	Http2
	E_Rpc
	E_Grpc
	E_Rmq
	UdpTcp
)

Jump to

Keyboard shortcuts

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