engine

package
v0.0.0-...-764d95b Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2018 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const LingSize = 10

LingSize は合計稼働率totalORを保持するLINGのサイズです.

Variables

This section is empty.

Functions

func DestinationSetting

func DestinationSetting(config *models.Config)

DestinationSetting では,monitor.PowerChを常に受信し, 受信したチャネルに従って,振分先情報の追加・削除をロードバランサに通知します.

func LoadDetermination

func LoadDetermination(config *models.Config)

func ServerManagement

func ServerManagement(config *models.Config)

ServerManagement は稼働状況と負荷状況に基いてオートスケールを実行します. 稼働状況はengine/destination_setting.goが設定しています. 負荷状況はengine/load_determination.goが判断します.

func ServerStatesManager

func ServerStatesManager()

func ServerWeightInitialize

func ServerWeightInitialize(config *models.Config, startNum int)

ServerWeightInitialize はmouryou起動時にmouryou.jsonから得た情報を元に各サーバの重さを初期化します.

func WeightManager

func WeightManager(config *models.Config)

重さの操作を取り扱うメソッド タイムアウトなどのエラーがあれば重さを減らして負荷を低下させ,通常なら元の重さに戻す

Types

This section is empty.

Jump to

Keyboard shortcuts

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