Documentation ¶
Index ¶
- Variables
- func GetNodeIPAddress() string
- type CPUPerfScalingReq
- type CPUPerfScalingResp
- type CPUPerfScalingRespColl
- type Config
- func (*Config) Descriptor() ([]byte, []int)
- func (m *Config) GetFreqScalPolicies() map[string]*Policy
- func (m *Config) GetFreqSensorUrl() string
- func (m *Config) GetHighToLowScaler() string
- func (m *Config) GetLowToHighScaler() string
- func (m *Config) GetScalingFreqPolicy() string
- func (m *Config) GetThermalBoundThrottleRetention() bool
- func (m *Config) GetThermalBoundThrottleRetentionThreshold() int32
- func (m *Config) GetThermalSensorUrl() string
- func (m *Config) GetThrottleRetention() bool
- func (m *Config) GetTimeBoundThrottleRetention() bool
- func (m *Config) GetTimeBoundThrottleRetentionDuration() int32
- func (m *Config) Marshal() (dAtA []byte, err error)
- func (m *Config) MarshalTo(dAtA []byte) (int, error)
- func (m *Config) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Config) ProtoMessage()
- func (m *Config) Reset()
- func (m *Config) Size() (n int)
- func (m *Config) String() string
- func (m *Config) Unmarshal(dAtA []byte) error
- func (m *Config) XXX_DiscardUnknown()
- func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Config) XXX_Merge(src proto.Message)
- func (*Config) XXX_MessageName() string
- func (m *Config) XXX_Size() int
- func (m *Config) XXX_Unmarshal(b []byte) error
- type HFS
- func (hfs *HFS) CheckThermalThreshold()
- func (*HFS) ConfigURL() string
- func (hfs *HFS) EnforceTimeBoundScaler()
- func (hfs *HFS) Entry()
- func (hfs *HFS) HostFrequencyScaling(node types.Node, freqScalPolicy string)
- func (hfs *HFS) Init(api types.ModuleAPIClient)
- func (*HFS) Name() string
- func (*HFS) NewConfig() proto.Message
- func (hfs *HFS) ReadCPUTemp() int32
- func (hfs *HFS) SetDiscoveryChan(d chan<- types.Event)
- func (hfs *HFS) SetMutationChan(c <-chan types.Event)
- func (hfs *HFS) Stop()
- func (hfs *HFS) UpdateConfig(cfg proto.Message) (e error)
- type Policy
- func (*Policy) Descriptor() ([]byte, []int)
- func (m *Policy) GetNodeArch() string
- func (m *Policy) GetNodePlatform() string
- func (m *Policy) GetScalingGovernor() string
- func (m *Policy) GetScalingMaxFreq() string
- func (m *Policy) GetScalingMinFreq() string
- func (m *Policy) Marshal() (dAtA []byte, err error)
- func (m *Policy) MarshalTo(dAtA []byte) (int, error)
- func (m *Policy) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Policy) ProtoMessage()
- func (m *Policy) Reset()
- func (m *Policy) Size() (n int)
- func (m *Policy) String() string
- func (m *Policy) Unmarshal(dAtA []byte) error
- func (m *Policy) XXX_DiscardUnknown()
- func (m *Policy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Policy) XXX_Merge(src proto.Message)
- func (*Policy) XXX_MessageName() string
- func (m *Policy) XXX_Size() int
- func (m *Policy) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type CPUPerfScalingReq ¶
type CPUPerfScalingReq struct { ScalingGovernor string `json:"scalinggovernor"` ScalingMinFreq string `json:"scalingminfreq"` ScalingMaxFreq string `json:"scalingmaxfreq"` NodesAddressList []string `json:"nodesaddresslist,omitempty"` Timeout int `json:"timeout,omitempty"` }
CPUPerfScalingReq is payload for RFAggregator API call
type CPUPerfScalingResp ¶
type CPUPerfScalingResp struct { TimeStamp time.Time `json:"timestamp"` HostAddress string `json:"hostaddress"` CurScalingGovernor string `json:"curscalinggovernor"` ScalingMinFreq string `json:"scalingminfreq"` ScalingMaxFreq string `json:"scalingmaxfreq"` ScalingCurFreq string `json:"scalingcurfreq"` CPUCurFreq string `json:"cpucurfreq"` CPUMinFreq string `json:"cpuminfreq"` CPUMaxFreq string `json:"cpumaxfreq"` }
CPUPerfScalingResp structure for API response from RFAggregator
type CPUPerfScalingRespColl ¶
type CPUPerfScalingRespColl struct {
CPUPerfScalingRespCollection []CPUPerfScalingResp `json:"cpuperfscalingrespcollection"`
}
CPUPerfScalingRespColl structure for collection of response
type Config ¶
type Config struct { FreqScalPolicies map[string]*Policy `` /* 199-byte string literal not displayed */ FreqSensorUrl string `protobuf:"bytes,2,opt,name=freq_sensor_url,json=freqSensorUrl,proto3" json:"freq_sensor_url,omitempty"` ScalingFreqPolicy string `protobuf:"bytes,3,opt,name=scaling_freq_policy,json=scalingFreqPolicy,proto3" json:"scaling_freq_policy,omitempty"` LowToHighScaler string `protobuf:"bytes,4,opt,name=low_to_high_scaler,json=lowToHighScaler,proto3" json:"low_to_high_scaler,omitempty"` HighToLowScaler string `protobuf:"bytes,5,opt,name=high_to_low_scaler,json=highToLowScaler,proto3" json:"high_to_low_scaler,omitempty"` TimeBoundThrottleRetentionDuration int32 `` /* 170-byte string literal not displayed */ ThrottleRetention bool `protobuf:"varint,7,opt,name=throttle_retention,json=throttleRetention,proto3" json:"throttle_retention,omitempty"` ThermalSensorUrl string `protobuf:"bytes,8,opt,name=thermal_sensor_url,json=thermalSensorUrl,proto3" json:"thermal_sensor_url,omitempty"` TimeBoundThrottleRetention bool `` /* 144-byte string literal not displayed */ ThermalBoundThrottleRetention bool `` /* 154-byte string literal not displayed */ ThermalBoundThrottleRetentionThreshold int32 `` /* 183-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Config) Descriptor ¶
func (*Config) GetFreqScalPolicies ¶
func (*Config) GetFreqSensorUrl ¶
func (*Config) GetHighToLowScaler ¶
func (*Config) GetLowToHighScaler ¶
func (*Config) GetScalingFreqPolicy ¶
func (*Config) GetThermalBoundThrottleRetention ¶
func (*Config) GetThermalBoundThrottleRetentionThreshold ¶
func (*Config) GetThermalSensorUrl ¶
func (*Config) GetThrottleRetention ¶
func (*Config) GetTimeBoundThrottleRetention ¶
func (*Config) GetTimeBoundThrottleRetentionDuration ¶
func (*Config) MarshalToSizedBuffer ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) XXX_DiscardUnknown ¶
func (m *Config) XXX_DiscardUnknown()
func (*Config) XXX_Marshal ¶
func (*Config) XXX_MessageName ¶
func (*Config) XXX_Unmarshal ¶
type HFS ¶
type HFS struct {
// contains filtered or unexported fields
}
HFS provides rfcpufreqscaling module capabilities
func (*HFS) CheckThermalThreshold ¶
func (hfs *HFS) CheckThermalThreshold()
CheckThermalThreshold validates whether current thermal is less than preset threshold and if so set the PS enforcement to false
func (*HFS) EnforceTimeBoundScaler ¶
func (hfs *HFS) EnforceTimeBoundScaler()
EnforceTimeBoundScaler keep low frequency scaler like "powersave" for a certain duration
func (*HFS) HostFrequencyScaling ¶
HostFrequencyScaling scales CPU frequency according to given parameters
func (*HFS) Init ¶
func (hfs *HFS) Init(api types.ModuleAPIClient)
Init is used to intialize an executable module prior to entrypoint
func (*HFS) ReadCPUTemp ¶
ReadCPUTemp returns the current CPU thermal
func (*HFS) SetDiscoveryChan ¶
SetDiscoveryChan sets the current discovery channel
func (*HFS) SetMutationChan ¶
SetMutationChan sets the current mutation channel this is generally done by the API
type Policy ¶
type Policy struct { ScalingGovernor string `protobuf:"bytes,1,opt,name=scaling_governor,json=scalingGovernor,proto3" json:"scaling_governor,omitempty"` ScalingMinFreq string `protobuf:"bytes,2,opt,name=scaling_min_freq,json=scalingMinFreq,proto3" json:"scaling_min_freq,omitempty"` ScalingMaxFreq string `protobuf:"bytes,3,opt,name=scaling_max_freq,json=scalingMaxFreq,proto3" json:"scaling_max_freq,omitempty"` NodeArch string `protobuf:"bytes,4,opt,name=node_arch,json=nodeArch,proto3" json:"node_arch,omitempty"` NodePlatform string `protobuf:"bytes,5,opt,name=node_platform,json=nodePlatform,proto3" json:"node_platform,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Policy) Descriptor ¶
func (*Policy) GetNodeArch ¶
func (*Policy) GetNodePlatform ¶
func (*Policy) GetScalingGovernor ¶
func (*Policy) GetScalingMaxFreq ¶
func (*Policy) GetScalingMinFreq ¶
func (*Policy) MarshalToSizedBuffer ¶
func (*Policy) ProtoMessage ¶
func (*Policy) ProtoMessage()
func (*Policy) XXX_DiscardUnknown ¶
func (m *Policy) XXX_DiscardUnknown()