server

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2016 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MaxPodsPerChunk is the maximum number of pods we can schedule for each
	// chunk in case of failures.
	MaxPodsPerChunk = 3
	// DefaultUserImage is the image used for jobs when the user does not specify
	// an image.
	DefaultUserImage = "ubuntu:16.04"
)

Variables

This section is empty.

Functions

func GetExpectedNumWorkers added in v1.2.0

func GetExpectedNumWorkers(kubeClient *kube.Client, spec *ppsclient.ParallelismSpec) (uint64, error)

GetExpectedNumWorkers computes the expected number of workers that pachyderm will start given the ParallelismSpec 'spec'.

This is only exported for testing

func RepoNameToEnvString

func RepoNameToEnvString(repoName string) string

RepoNameToEnvString is a helper which uppercases a repo name for use in environment variable names.

Types

type APIServer

APIServer represents an api server.

func NewAPIServer

func NewAPIServer(
	hasher *ppsserver.Hasher,
	address string,
	kubeClient *kube.Client,
	namespace string,
	jobShimImage string,
	jobImagePullPolicy string,
	reporter *metrics.Reporter,
) APIServer

NewAPIServer creates an APIServer.

type JobInputs

type JobInputs []*ppsclient.JobInput

JobInputs implements sort.Interface so job inputs can be sorted We sort job inputs based on repo names

func (JobInputs) Len

func (inputs JobInputs) Len() int

func (JobInputs) Less

func (inputs JobInputs) Less(i, j int) bool

func (JobInputs) Swap

func (inputs JobInputs) Swap(i, j int)

Jump to

Keyboard shortcuts

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