initializer

package
v0.1441.2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2016 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PingGardenInterval             = time.Second
	StalledMetricHeartbeatInterval = 5 * time.Second
)

Variables

View Source
var DefaultConfiguration = Configuration{
	GardenNetwork:               "unix",
	GardenAddr:                  "/tmp/garden.sock",
	MemoryMB:                    configuration.Automatic,
	DiskMB:                      configuration.Automatic,
	TempDir:                     "/tmp",
	RegistryPruningInterval:     time.Minute,
	ContainerInodeLimit:         200000,
	ContainerMaxCpuShares:       0,
	CachePath:                   "/tmp/cache",
	MaxCacheSizeInBytes:         10 * 1024 * 1024 * 1024,
	SkipCertVerify:              false,
	HealthyMonitoringInterval:   30 * time.Second,
	UnhealthyMonitoringInterval: 500 * time.Millisecond,
	ExportNetworkEnvVars:        false,
	ContainerOwnerName:          "executor",
	CreateWorkPoolSize:          defaultCreateWorkPoolSize,
	DeleteWorkPoolSize:          defaultDeleteWorkPoolSize,
	ReadWorkPoolSize:            defaultReadWorkPoolSize,
	MetricsWorkPoolSize:         defaultMetricsWorkPoolSize,
	HealthCheckWorkPoolSize:     defaultHealthCheckWorkPoolSize,
	MaxConcurrentDownloads:      defaultMaxConcurrentDownloads,
}

Functions

func Initialize

func Initialize(logger lager.Logger, config Configuration, clock clock.Clock) (executor.Client, grouper.Members, error)

func ValidateExecutor

func ValidateExecutor(logger lager.Logger, config Configuration) bool

Types

type Configuration

type Configuration struct {
	GardenNetwork string
	GardenAddr    string

	ContainerOwnerName string

	TempDir              string
	CachePath            string
	MaxCacheSizeInBytes  uint64
	SkipCertVerify       bool
	ExportNetworkEnvVars bool

	ContainerMaxCpuShares       uint64
	ContainerInodeLimit         uint64
	HealthyMonitoringInterval   time.Duration
	UnhealthyMonitoringInterval time.Duration
	HealthCheckWorkPoolSize     int

	MaxConcurrentDownloads int

	CreateWorkPoolSize  int
	DeleteWorkPoolSize  int
	ReadWorkPoolSize    int
	MetricsWorkPoolSize int

	RegistryPruningInterval time.Duration

	MemoryMB string
	DiskMB   string

	PostSetupHook string
	PostSetupUser string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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