Documentation ¶
Index ¶
Constants ¶
View Source
const LingSize = 10
LingSize は合計稼働率totalORを保持するLINGのサイズです.
Variables ¶
This section is empty.
Functions ¶
func DestinationSetting ¶
DestinationSetting では,monitor.PowerChを常に受信し, 受信したチャネルに従って,振分先情報の追加・削除をロードバランサに通知します.
func LoadDetermination ¶
func ServerManagement ¶
ServerManagement は稼働状況と負荷状況に基いてオートスケールを実行します. 稼働状況はengine/destination_setting.goが設定しています. 負荷状況はengine/load_determination.goが判断します.
func ServerStatesManager ¶
func ServerStatesManager()
func ServerWeightInitialize ¶
ServerWeightInitialize はmouryou起動時にmouryou.jsonから得た情報を元に各サーバの重さを初期化します.
func WeightManager ¶
重さの操作を取り扱うメソッド タイムアウトなどのエラーがあれば重さを減らして負荷を低下させ,通常なら元の重さに戻す
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.