Documentation ¶
Index ¶
Constants ¶
View Source
const LoadReportInterval = 5 * time.Minute
Interval at which babysitters report load to the manager.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BabysitterClient ¶
type BabysitterClient interface { CheckHealth(context.Context, *protos.GetHealthRequest) (*protos.GetHealthReply, error) RunProfiling(context.Context, *protos.GetProfileRequest) (*protos.GetProfileReply, error) }
BabysitterClient is a client to a babysitter.
type DistributorClient ¶
type DistributorClient interface { Distribute(context.Context, *nanny.ApplicationDistributionRequest) error Cleanup(context.Context, *nanny.ApplicationCleanupRequest) error GetApplicationState(context.Context, *nanny.ApplicationStateAtDistributorRequest) (*nanny.ApplicationStateAtDistributor, error) GetPublicTrafficAssignment(context.Context) (*nanny.TrafficAssignment, error) GetPrivateTrafficAssignment(context.Context) (*nanny.TrafficAssignment, error) RunProfiling(context.Context, *nanny.GetProfileRequest) (*protos.GetProfileReply, error) }
DistributorClient is a client to a distributor.
type ManagerClient ¶
type ManagerClient interface { Deploy(context.Context, *nanny.ApplicationDeploymentRequest) error Stop(context.Context, *nanny.ApplicationStopRequest) error Delete(context.Context, *nanny.ApplicationDeleteRequest) error GetReplicaSetState(context.Context, *nanny.GetReplicaSetStateRequest) (*nanny.ReplicaSetState, error) ActivateComponent(context.Context, *nanny.ActivateComponentRequest) error RegisterReplica(context.Context, *nanny.RegisterReplicaRequest) error ReportLoad(context.Context, *nanny.LoadReport) error GetListenerAddress(context.Context, *nanny.GetListenerAddressRequest) (*protos.GetListenerAddressReply, error) ExportListener(context.Context, *nanny.ExportListenerRequest) (*protos.ExportListenerReply, error) GetRoutingInfo(context.Context, *nanny.GetRoutingRequest) (*nanny.GetRoutingReply, error) GetComponentsToStart(context.Context, *nanny.GetComponentsRequest) (*nanny.GetComponentsReply, error) }
ManagerClient is a client to a manager.
Click to show internal directories.
Click to hide internal directories.