-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CP Subsystem documentation [CN-1149] (#170)
* add CP Subsystem documentation * Apply suggestions from the code review Co-authored-by: rebekah-lawrence <[email protected]> --------- Co-authored-by: rebekah-lawrence <[email protected]>
- Loading branch information
1 parent
906eb99
commit 1d037e9
Showing
4 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
docs/modules/ROOT/examples/hazelcast-cp-subsystem-presistence.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: hazelcast.com/v1alpha1 | ||
kind: Hazelcast | ||
metadata: | ||
name: hazelcast | ||
spec: | ||
clusterSize: 3 | ||
repository: 'docker.io/hazelcast/hazelcast-enterprise' | ||
licenseKeySecretName: hazelcast-license-key | ||
persistence: | ||
pvc: | ||
accessModes: ["ReadWriteOnce"] | ||
requestStorage: 8Gi | ||
cpSubsystem: | ||
memberCount: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: hazelcast.com/v1alpha1 | ||
kind: Hazelcast | ||
metadata: | ||
name: hazelcast | ||
spec: | ||
clusterSize: 3 | ||
repository: 'docker.io/hazelcast/hazelcast-enterprise' | ||
licenseKeySecretName: hazelcast-license-key | ||
cpSubsystem: | ||
memberCount: 3 | ||
groupSize: 3 | ||
sessionTTLSeconds: 30 | ||
pvc: | ||
accessModes: ["ReadWriteOnce"] | ||
requestStorage: 8Gi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
= Enabling CP Subsystem | ||
:description: CP Subsystem is a component of a Hazelcast cluster that builds a strongly consistent layer for a set of distributed data structures. As well as network partitions, the CP Subsystem withstands server and client failures. | ||
|
||
{description} | ||
|
||
See xref:hazelcast:cp-subsystem:cp-subsystem.adoc[CP Subsystem] for more detailed information about the configuration and behavior of CP Subsystem component of Hazelcast. | ||
|
||
== Configuring CP Subsystem | ||
|
||
To enable CP Subsystem you must configure the `cpSubsystem` section in the Hazelcast custom resource. | ||
|
||
.Example of CP Subsystem | ||
[source,yaml,subs="attributes+"] | ||
---- | ||
include::ROOT:example$/hazelcast-cp-subsystem.yaml[] | ||
---- | ||
|
||
When CP subsystem is enabled, it always enables CP Subsystem Persistence. This means that a PVC must be configured before enabling CP Subsystem. | ||
When the `pvc` section is configured in `cpSubsystem`, a PVC is created and mounted for the CP Subsystem. If you want to use the same PVC for both xref:backup-restore.adoc[Persistence] and CP Subsytem, configure the Persistence but do not configure `pvc` for the CP Subsystem. | ||
|
||
.Example of CP Subsystem with Persistence | ||
[source,yaml,subs="attributes+"] | ||
---- | ||
include::ROOT:example$/hazelcast-cp-subsystem-presistence.yaml[] | ||
---- |