endpoint

package
v1.2.5-beta.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2016 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package service provides EndpointController implementation to manage and sync service endpoints.

CAUTION: If you update code in this file, you may need to also update code

in contrib/mesos/pkg/service/endpoints_controller.go

Index

Constants

View Source
const (
	// We'll attempt to recompute EVERY service's endpoints at least this
	// often. Higher numbers = lower CPU/network load; lower numbers =
	// shorter amount of time before a mistaken endpoint is corrected.
	FullServiceResyncPeriod = 30 * time.Second

	// We must avoid syncing service until the pod store has synced. If it hasn't synced, to
	// avoid a hot loop, we'll wait this long between checks.
	PodStoreSyncedPollPeriod = 100 * time.Millisecond
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EndpointController

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

EndpointController manages selector-based service endpoints.

func NewEndpointController

func NewEndpointController(client *clientset.Clientset, resyncPeriod controller.ResyncPeriodFunc) *EndpointController

NewEndpointController returns a new *EndpointController.

func (*EndpointController) Run

func (e *EndpointController) Run(workers int, stopCh <-chan struct{})

Runs e; will not return until stopCh is closed. workers determines how many endpoints will be handled in parallel.

Jump to

Keyboard shortcuts

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