-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Make it easier to write a batchable cluster state update #89192
Copy link
Copy link
Closed
Labels
:Distributed/Cluster CoordinationCluster formation and cluster state publication, including cluster membership and fault detection.Cluster formation and cluster state publication, including cluster membership and fault detection.>tech-debtTeam:DistributedMeta label for distributed team.Meta label for distributed team.
Description
Today submitting an unbatched ClusterStateUpdateTask to the MasterService is deprecated, and devs are encouraged to write their own batching executor instead. In principle this makes it possible to combine updates without incurring the costs of building a whole new ClusterState on each iteration, but in practice most implementations don't work at a lower level and just iteratively update a ClusterState. Moreover creating new ClusterState instances is nothing like as expensive as once it was.
We should accept this and provide some friendlier utilities for writing batched cluster state updates, ideally leaving the developer to express the desired per-task update as a ClusterState -> ClusterState operator.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
:Distributed/Cluster CoordinationCluster formation and cluster state publication, including cluster membership and fault detection.Cluster formation and cluster state publication, including cluster membership and fault detection.>tech-debtTeam:DistributedMeta label for distributed team.Meta label for distributed team.
Type
Fields
Give feedbackNo fields configured for issues without a type.