bundle

package
v0.0.0-...-98ba599 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: Apache-2.0 Imports: 46 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WorkflowsCacheSize   = 10000
	InvocationsCacheSize = 100000
)
View Source
const (
	FlagSchedulerPolicy            = "scheduler.policy"
	FlagSchedulerColdStartDuration = "scheduler.coldstart"
)

Variables

This section is empty.

Functions

func ParseSchedulerConfig

func ParseSchedulerConfig(c *cli.Context) (scheduler.Policy, error)

func Run

func Run(ctx context.Context, opts *Options) error

Run serves enabled components in a blocking way

func SetupScheduler

func SetupScheduler(policy scheduler.Policy) *scheduler.InvocationScheduler

Types

type App

type App struct {
	*Options
	// contains filtered or unexported fields
}

func (*App) Close

func (app *App) Close() error

func (*App) RegisterCloser

func (app *App) RegisterCloser(name string, closer io.Closer)

type FissionOptions

type FissionOptions struct {
	ExecutorAddress string
	ControllerAddr  string
	RouterAddr      string
}

type FissionProxyConfig

type FissionProxyConfig struct {
	DefaultTimeout time.Duration
	ProxyAddr      string
	WorkflowsAddr  string
	ExposeMetrics  bool
	// contains filtered or unexported fields
}

func ParseFissionProxyConfig

func ParseFissionProxyConfig(ctx *cli.Context) (*FissionProxyConfig, error)

func (*FissionProxyConfig) Close

func (c *FissionProxyConfig) Close() error

func (*FissionProxyConfig) Run

func (c *FissionProxyConfig) Run() error

type Options

type Options struct {
	NATS                 *nats.Config
	Scheduler            scheduler.Policy
	Fission              *FissionOptions
	FissionProxy         *FissionProxyConfig
	InternalRuntime      bool
	InvocationController bool
	WorkflowController   bool
	AdminAPI             bool
	WorkflowAPI          bool
	HTTPGateway          bool
	InvocationAPI        bool
	Metrics              bool
	Debug                bool
}

type Process

type Process interface {
	io.Closer
	Run() error
}

type Processes

type Processes []Process

func (Processes) Close

func (p Processes) Close() error

func (*Processes) Register

func (p *Processes) Register(process Process)

func (Processes) Start

func (p Processes) Start() error

type SchedulerPolicy

type SchedulerPolicy string

Jump to

Keyboard shortcuts

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