router

package
v0.93.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type R

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

R manages the routing table of models to engines.

func New

func New(c config.InferenceManagerEngineConfig, k8sClient *k8s.Client) *R

New creates a new router.

func (*R) GetEngineForModel

func (r *R) GetEngineForModel(ctx context.Context, modelID string) (string, error)

GetEngineForModel returns the engine address (ip and port) for the given model.

func (*R) Run

func (r *R) Run(ctx context.Context, errCh chan error) error

Run updates the routes periodically and upon pod events.

Jump to

Keyboard shortcuts

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