Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PolicyNames ¶
func PolicyNames() []string
Types ¶
type Policy ¶
type Policy int
Policy is an integer representing the opensvc object placement policy.
const ( // Invalid is for invalid kinds Invalid Policy = iota // None is the policy used by special objects like sec, cfg, usr. None // NodesOrder is the policy where node priorities are assigned to nodes descending from left to right in the nodes list. NodesOrder // LastStart is the policy where node priorities are assigned to nodes based on instance last start time. The more recent, the higher the priority. LastStart // LoadAvg is the policy where node priorities are assigned to nodes based on load average. The higher the load, the lower the priority. LoadAvg // Shift is the policy where node priorities are assigned to nodes based on the scaler slice number. Shift // Spread is the policy where node priorities are assigned to nodes based on nodename hashing. The node priority is stable as long as the cluster members are stable. Spread // Score is the policy where node priorities are assigned to nodes based on score. The higher the score, the higher the priority. Score )
func (Policy) MarshalText ¶
MarshalText marshals the enum as a quoted json string
func (*Policy) UnmarshalText ¶
UnmarshalText unmashals a quoted json string to the enum value
type State ¶
type State int
State is optimal when the running <n> instances are placed on the <n> first nodes of the candidate list sorted by the selected placement policy.
func (State) MarshalText ¶
MarshalText marshals the enum as a quoted json string
func (*State) UnmarshalText ¶
UnmarshalText unmashals a quoted json string to the enum value
Click to show internal directories.
Click to hide internal directories.