initializer

package
v0.0.0-...-1ada680 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2017 License: Apache-2.0 Imports: 40 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

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

Variables

View Source
var DefaultConfiguration = ExecutorConfig{
	GardenNetwork:                      "unix",
	GardenAddr:                         "/tmp/garden.sock",
	MemoryMB:                           configuration.Automatic,
	DiskMB:                             configuration.Automatic,
	TempDir:                            "/tmp",
	ReservedExpirationTime:             durationjson.Duration(time.Minute),
	ContainerReapInterval:              durationjson.Duration(time.Minute),
	ContainerInodeLimit:                200000,
	ContainerMaxCpuShares:              0,
	CachePath:                          "/tmp/cache",
	EnableDeclarativeHealthcheck:       false,
	MaxCacheSizeInBytes:                10 * 1024 * 1024 * 1024,
	SkipCertVerify:                     false,
	HealthyMonitoringInterval:          durationjson.Duration(30 * time.Second),
	UnhealthyMonitoringInterval:        durationjson.Duration(500 * time.Millisecond),
	ExportNetworkEnvVars:               false,
	ContainerOwnerName:                 "executor",
	HealthCheckContainerOwnerName:      "executor-health-check",
	CreateWorkPoolSize:                 defaultCreateWorkPoolSize,
	DeleteWorkPoolSize:                 defaultDeleteWorkPoolSize,
	ReadWorkPoolSize:                   defaultReadWorkPoolSize,
	MetricsWorkPoolSize:                defaultMetricsWorkPoolSize,
	HealthCheckWorkPoolSize:            defaultHealthCheckWorkPoolSize,
	MaxConcurrentDownloads:             defaultMaxConcurrentDownloads,
	GardenHealthcheckInterval:          durationjson.Duration(10 * time.Minute),
	GardenHealthcheckEmissionInterval:  durationjson.Duration(30 * time.Second),
	GardenHealthcheckTimeout:           durationjson.Duration(10 * time.Minute),
	GardenHealthcheckCommandRetryPause: durationjson.Duration(time.Second),
	GardenHealthcheckProcessArgs:       []string{},
	GardenHealthcheckProcessEnv:        []string{},
	ContainerMetricsReportInterval:     durationjson.Duration(15 * time.Second),
}

Functions

func CredManagerFromConfig

func CredManagerFromConfig(logger lager.Logger, metronClient loggregator_v2.IngressClient, config ExecutorConfig, clock clock.Clock) (containerstore.CredManager, error)

func Initialize

func Initialize(logger lager.Logger, config ExecutorConfig, gardenHealthcheckRootFS string, metronClient loggregator_v2.IngressClient, clock clock.Clock) (executor.Client, grouper.Members, error)

func TLSConfigFromConfig

func TLSConfigFromConfig(logger lager.Logger, certsRetriever CertPoolRetriever, config ExecutorConfig) (*tls.Config, error)

Types

type CertPoolRetriever

type CertPoolRetriever interface {
	SystemCerts() *x509.CertPool
}

type ExecutorConfig

type ExecutorConfig struct {
	AutoDiskOverheadMB                 int                   `json:"auto_disk_capacity_overhead_mb"`
	CachePath                          string                `json:"cache_path,omitempty"`
	ContainerInodeLimit                uint64                `json:"container_inode_limit,omitempty"`
	ContainerMaxCpuShares              uint64                `json:"container_max_cpu_shares,omitempty"`
	ContainerMetricsReportInterval     durationjson.Duration `json:"container_metrics_report_interval,omitempty"`
	ContainerOwnerName                 string                `json:"container_owner_name,omitempty"`
	ContainerReapInterval              durationjson.Duration `json:"container_reap_interval,omitempty"`
	CreateWorkPoolSize                 int                   `json:"create_work_pool_size,omitempty"`
	DeleteWorkPoolSize                 int                   `json:"delete_work_pool_size,omitempty"`
	DiskMB                             string                `json:"disk_mb,omitempty"`
	EnableDeclarativeHealthcheck       bool                  `json:"enable_declarative_healthcheck,omitempty"`
	DeclarativeHealthcheckPath         string                `json:"declarative_healthcheck_path,omitempty"`
	ExportNetworkEnvVars               bool                  `json:"export_network_env_vars,omitempty"`
	GardenAddr                         string                `json:"garden_addr,omitempty"`
	GardenHealthcheckCommandRetryPause durationjson.Duration `json:"garden_healthcheck_command_retry_pause,omitempty"`
	GardenHealthcheckEmissionInterval  durationjson.Duration `json:"garden_healthcheck_emission_interval,omitempty"`
	GardenHealthcheckInterval          durationjson.Duration `json:"garden_healthcheck_interval,omitempty"`
	GardenHealthcheckProcessArgs       []string              `json:"garden_healthcheck_process_args,omitempty"`
	GardenHealthcheckProcessDir        string                `json:"garden_healthcheck_process_dir"`
	GardenHealthcheckProcessEnv        []string              `json:"garden_healthcheck_process_env,omitempty"`
	GardenHealthcheckProcessPath       string                `json:"garden_healthcheck_process_path"`
	GardenHealthcheckProcessUser       string                `json:"garden_healthcheck_process_user"`
	GardenHealthcheckTimeout           durationjson.Duration `json:"garden_healthcheck_timeout,omitempty"`
	GardenNetwork                      string                `json:"garden_network,omitempty"`
	HealthCheckContainerOwnerName      string                `json:"healthcheck_container_owner_name,omitempty"`
	HealthCheckWorkPoolSize            int                   `json:"healthcheck_work_pool_size,omitempty"`
	HealthyMonitoringInterval          durationjson.Duration `json:"healthy_monitoring_interval,omitempty"`
	InstanceIdentityCAPath             string                `json:"instance_identity_ca_path,omitempty"`
	InstanceIdentityCredDir            string                `json:"instance_identity_cred_dir,omitempty"`
	InstanceIdentityPrivateKeyPath     string                `json:"instance_identity_private_key_path,omitempty"`
	InstanceIdentityValidityPeriod     durationjson.Duration `json:"instance_identity_validity_period,omitempty"`
	MaxCacheSizeInBytes                uint64                `json:"max_cache_size_in_bytes,omitempty"`
	MaxConcurrentDownloads             int                   `json:"max_concurrent_downloads,omitempty"`
	MemoryMB                           string                `json:"memory_mb,omitempty"`
	MetricsWorkPoolSize                int                   `json:"metrics_work_pool_size,omitempty"`
	PathToCACertsForDownloads          string                `json:"path_to_ca_certs_for_downloads"`
	PathToTLSCert                      string                `json:"path_to_tls_cert"`
	PathToTLSKey                       string                `json:"path_to_tls_key"`
	PathToTLSCACert                    string                `json:"path_to_tls_ca_cert"`
	PostSetupHook                      string                `json:"post_setup_hook"`
	PostSetupUser                      string                `json:"post_setup_user"`
	ReadWorkPoolSize                   int                   `json:"read_work_pool_size,omitempty"`
	ReservedExpirationTime             durationjson.Duration `json:"reserved_expiration_time,omitempty"`
	SkipCertVerify                     bool                  `json:"skip_cert_verify,omitempty"`
	TempDir                            string                `json:"temp_dir,omitempty"`
	TrustedSystemCertificatesPath      string                `json:"trusted_system_certificates_path"`
	UnhealthyMonitoringInterval        durationjson.Duration `json:"unhealthy_monitoring_interval,omitempty"`
	VolmanDriverPaths                  string                `json:"volman_driver_paths"`
}

func (*ExecutorConfig) Validate

func (config *ExecutorConfig) Validate(logger lager.Logger) bool

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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