Documentation ¶
Index ¶
Constants ¶
View Source
const (
GRPCContextKeyAcceptVNodes = "dapr-accept-vnodes"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PlacementServiceOpts ¶ added in v1.13.0
type PlacementServiceOpts struct { RaftNode *raft.Server MaxAPILevel *uint32 MinAPILevel uint32 SecProvider security.Provider }
PlacementServiceOpts contains options for the NewPlacementService method.
type PlacementTables ¶
type Service ¶ added in v0.2.0
type Service struct {
// contains filtered or unexported fields
}
Service updates the Dapr runtimes with distributed hash tables for stateful entities.
func NewPlacementService ¶
func NewPlacementService(opts PlacementServiceOpts) *Service
NewPlacementService returns a new placement service.
func (*Service) GetPlacementTables ¶ added in v1.12.0
func (p *Service) GetPlacementTables() (*PlacementTables, error)
GetPlacementTables returns the current placement host infos.
func (*Service) MonitorLeadership ¶ added in v1.0.0
MonitorLeadership is used to monitor if we acquire or lose our role as the leader in the Raft cluster. There is some work the leader is expected to do, so we must react to changes
reference: https://github.com/hashicorp/consul/blob/master/agent/consul/leader.go
func (*Service) ReportDaprStatus ¶ added in v0.2.0
func (p *Service) ReportDaprStatus(stream placementv1pb.Placement_ReportDaprStatusServer) error
ReportDaprStatus gets a heartbeat report from different Dapr hosts.
Directories ¶
Path | Synopsis |
---|---|
Package placement is an implementation of Consistent Hashing and Consistent Hashing With Bounded Loads.
|
Package placement is an implementation of Consistent Hashing and Consistent Hashing With Bounded Loads. |
Click to show internal directories.
Click to hide internal directories.