Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is the node manager responsible for managing the online nodes
func NewManager ¶
func NewManager(lr repo.LockedRepo, ec *etcdcli.Client, configFunc dtypes.GetSchedulerConfigFunc) (*Manager, error)
NewManager creates a new instance of the node manager
func (*Manager) RequestAndBecomeMaster ¶
RequestAndBecomeMaster tries to acquire a lock from etcd. If the lock is successfully acquired, the function sets the server as the master and returns true. Otherwise, it returns false.
Click to show internal directories.
Click to hide internal directories.