1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/lws-arch.adoc

20 lines
1.1 KiB
Plaintext

// Module included in the following assemblies:
//
// * ai_workloads/leader_worker_set/index.adoc
:_mod-docs-content-type: CONCEPT
[id="lws-arch_{context}"]
= LeaderWorkerSet architecture
[role="_abstract"]
Review the LeaderWorkerSet architecture to learn how the `LeaderWorkerSet` API organizes groups of pods into a single unit, with one pod as the leader and the rest as the workers, to coordinate distributed workloads.
The following diagram describes the LeaderWorkerSet architecture:
.Leader worker set architecture
image::587_OpenShift_lws_0925.png[Leader worker set architecture]
The `LeaderWorkerSet` API uses a leader stateful set to manage the deployment and lifecycle of the groups of pods. For each replica defined, a leader-worker group is created.
Each leader-worker group contains a leader pod and a worker stateful set. The worker stateful set is owned by the leader pod and manages the set of worker pods associated with that leader pod. The specified size defines the total number of pods in each leader-worker group, with the leader pod included in that number.