package
0.0.0-20221107231338-b44688ae358d
Repository: https://github.com/intelsdi-x/swan.git
Documentation: pkg.go.dev
# Functions
CentOSVersion returns OS version as stated in /etc/redhat-release In case of an error empty string is returned.
Configure handles configuration parsing, generation and restoration based on config-* flags.
CPUModelName reads /proc/cpuinfo and returns line 'model name' line.
CPUTopology returns CPU topology returned by 'lscpu -e' command.
CreateExperimentDir creates directory structure for the experiment.
CreateRepetitionDir creates folders that store repetition logs inside experiment's directory.
DefaultMetadataConfig applies the Cassandra settings from the command line flags and environment variables.
DockerVersion returns docker version as returned by 'docker version' command.
EtcdVersion returns etcd version as returned by 'etcd --version'.
GetPeakLoad runs tuning in order to determine the peak load.
GetPlatformMetrics returns map of strings with platform metrics.
IRQAffinity returns semicolon (;) separated list of pairs iface {comma separated list of pairs queue:affinity} Example: enp0s31f6 {134:6};enp3s0 {129:5,130:4,131:3,132:2,133:2} In case of an error empty string is returned.
KernelVersion return kernel version as stated in /proc/version In case of an error empty string is returned.
LaunchKubernetesCluster starts new Kubernetes cluster using configuration provided with flags.
NewMetadata returns the Metadata helper from an experiment id and configuration.
PowerGovernor returns a comma separated list of CPU:power_policy.
ShouldLaunchKubernetesCluster checks RunOnKubernetesFlag and RunOnExistingKubernetesFlag and returns information if Kubernetes cluster should be launched.
SnapteldVersion returns snapteld version as returned by 'snapteld -v' command.
# Constants
AggressorNameKey defines the key for Snap tag.
CentOSVersionKey defines a key in the platform metrics map.
CPUModelNameKey defines a key in the platform metrics map.
CPUTopologyKey defines a key in the platform metrics map.
DockerVersionKey defines a key in the platform metrics map.
EtcdVersionKey defines a key in the platform metrics map.
ExIOErr represents input/output error exit code.
ExperimentKey defines the key for Snap tag.
ExSoftware represents internal software error exit code.
ExUsage represents command line user error exit code.
IRQAffinityKey defines a key in the platform metrics map.
KernelVersionKey defines a key in the platform metrics map.
LoadPointQPSKey defines the key for Snap tag.
PhaseKey defines the key for Snap tag.
PowerGovernorKey defines a key in the platform metrics map.
RepetitionKey defines the key for Snap tag.
SnapteldVersionKey defines a key in the platform metrics map.
# Variables
RunOnExistingKubernetesFlag indicates that experiment should not set up a Kubernetes cluster but use an existing one.
RunOnKubernetesFlag indicates that experiment is to be run on K8s cluster.
# Structs
Metadata is a helper struct which keeps the Cassandra session alive, holds the active configuration and the experiment id to tag the metadata with.
MetadataConfig encodes the settings for connecting to the database.
# Type aliases
MetadataMap encodes the key value pairs to be stored in Cassandra.