rainbond: github.com/goodrain/rainbond/eventlog/cluster/distribution Index | Files

package distribution

import "github.com/goodrain/rainbond/eventlog/cluster/distribution"

Index

Package Files

distribution.go

type Distribution Uses

type Distribution struct {
    // contains filtered or unexported fields
}

Distribution 数据分区

func NewDistribution Uses

func NewDistribution(dis discover.Manager, log *logrus.Entry) *Distribution

func (*Distribution) GetSuitableInstance Uses

func (d *Distribution) GetSuitableInstance(serviceID string) *discover.Instance

GetSuitableInstance 获取推荐节点

func (*Distribution) Start Uses

func (d *Distribution) Start() error

Start 开始健康监测

func (*Distribution) Stop Uses

func (d *Distribution) Stop()

Stop 停止

func (*Distribution) Update Uses

func (d *Distribution) Update(m db.MonitorData)

Update 更新监控数据

Package distribution imports 7 packages (graph) and is imported by 2 packages. Updated 2018-04-24. Refresh now. Tools for package owners.