You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Minor update to interal distributed guide for multi-project (elastic#125556)
This PR adds a minimal amount information about multi-project so that
the existing distributed guide is up-to-date.
Relates: elastic#123565 Resolves:
ES-10985
The [Metadata] of a [ClusterState] is persisted on disk and comprises information from two categories:
118
+
1. Cluster scope information such as `clusterUUID`, `CoordinationMetadata`
119
+
2. Project scope information ([ProjectMetadata]) such as indices and templates belong to each project.
120
+
121
+
Some concepts are applicable to both cluster and project scopes, e.g. [persistent tasks](#persistent-tasks). The state of a persistent task is therefore stored accordingly depending on the task's scope.
122
+
113
123
#### Master Service
114
124
115
125
#### Cluster State Publication
@@ -306,7 +316,7 @@ policies.
306
316
307
317
### How cluster capacity is determined
308
318
309
-
[AutoscalingMetadata][] implements [Metadata.Custom][] in order to persist autoscaling policies. Each
319
+
[AutoscalingMetadata][] implements [Metadata.ClusterCustom][] in order to persist autoscaling policies. Each
310
320
Decider is an implementation of [AutoscalingDeciderService][]. The [AutoscalingCalculateCapacityService][]
311
321
is responsible for running the calculation.
312
322
@@ -322,7 +332,7 @@ calls [through the CapacityResponseCache][], into the `AutoscalingCalculateCapac
Up until now we have discussed only ephemeral tasks. If we want a task to survive node failures, it needs to be registered as a persistent task at the cluster level.
519
532
520
-
Plugins can register persistent tasks definitions by implementing [PersistentTaskPlugin] and returning one or more [PersistentTasksExecutor] instances. These are collated into a [PersistentTasksExecutorRegistry] which is provided to [PersistentTasksNodeService] active on each node in the cluster, and a [PersistentTasksClusterService] active on the master.
533
+
Plugins can register persistent tasks definitions by implementing [PersistentTaskPlugin] and returning one or more [PersistentTasksExecutor] instances. These are collated into a [PersistentTasksExecutorRegistry] which is provided to [PersistentTasksNodeService] active on each node in the cluster, and a [PersistentTasksClusterService] active on the master. A [PersistentTasksExecutor] can declare either [project][PersistentTasksExecutor.Scope.Project] or [cluster][PersistentTasksExecutor.Scope.Cluster] scope, but not both. A project scope task is not able to access data on a different project.
521
534
522
-
The [PersistentTasksClusterService] runs on the master to manage the set of running persistent tasks. It periodically checks that all persistent tasks are assigned to live nodes and handles the creation, completion, removal and updates-to-the-state of persistent task instances in the cluster state (see [PersistentTasksCustomMetadata]).
535
+
The [PersistentTasksClusterService] runs on the master to manage the set of running persistent tasks. It periodically checks that all persistent tasks are assigned to live nodes and handles the creation, completion, removal and updates-to-the-state of persistent task instances in the cluster state (see [PersistentTasksCustomMetadata] and [ClusterPersistentTasksCustomMetadata]).
523
536
524
537
The [PersistentTasksNodeService] monitors the cluster state to:
525
538
- Start any tasks allocated to it (tracked in the local [TaskManager] by an [AllocatedPersistentTask])
@@ -529,7 +542,7 @@ If a node leaves the cluster while it has a persistent task allocated to it, the
529
542
530
543
Some examples of the use of persistent tasks include:
531
544
-[ShardFollowTasksExecutor]: Defined by [cross-cluster replication](#cross-cluster-replication-ccr) to poll a remote cluster for updates
532
-
-[HealthNodeTaskExecutor]: Used to schedule work related to monitoring cluster health
545
+
-[HealthNodeTaskExecutor]: Used to schedule work related to monitoring cluster health. This is currently the only example of a cluster scope persistent task.
533
546
-[SystemIndexMigrationExecutor]: Manages the migration of system indices after an upgrade
0 commit comments