Documentation ¶
Index ¶
Constants ¶
View Source
const ( AvailabilityCheckTimeout = 5 * time.Second )
Variables ¶
View Source
var ( ErrNoAvailableWorkerNode = errors.New("no available worker node in the pool") ErrNoAvailableDistributor = errors.New("no distributor available") )
Functions ¶
This section is empty.
Types ¶
type InitialWorkerNodeSet ¶
type WorkerNode ¶
type WorkerNode interface { InitializePool(ctx context.Context, nodeEntries []models.NodeEntry) AddWorkerNode(ctx context.Context, node models.NodeEntry) error WorkerNodeAvailabilityCheck(ctx context.Context) DistributeWork(ctx context.Context, jobID models.Job, tasks []models.Task) ([]models.Task, []models.DistributeError, error) IsAvailableWorkerNode() bool RemoveNodeFromPool(ctx context.Context, nodeID string) CheckRunningTaskInEachWorkerNode(ctx context.Context) map[primitive.ObjectID]bool }
func ProvideWorkerNode ¶
func ProvideWorkerNode(caCertificate cert.CACertificate, distributorMapper distribution.DistributorMapper, grpcResolver grpc.RAJDSGRPCResolver, meter metric.Meter) WorkerNode
Click to show internal directories.
Click to hide internal directories.