-
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.
- Loading branch information
Showing
5 changed files
with
98 additions
and
7 deletions.
There are no files selected for viewing
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
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,72 @@ | ||
## Memgraph high availability Kubernetes Helm Chart | ||
A Helm Chart for deploying Memgraph in [high-availability setup](https://memgraph.com/docs/clustering/high-availability). | ||
|
||
Memgraph HA cluster includes 3 coordinators, 2 data instances by default. The cluster setup is performed via the cluster-setup job. The HA cluster is still work in progress and started with "--experimental-enabled=high-availability". | ||
The cluster is started in the configuration without the node selector, which means that in the current configuration, it is not highly available if the node fails. | ||
|
||
## Installing the Memgraph Helm Chart | ||
To install the Memgraph HA Helm Chart, follow the steps below: | ||
``` | ||
helm install <release-name> memgraph/memgraph-high-availability --set memgraph.env.MEMGRAPH_ENTERPRISE_LICENSE=<your-license>,memgraph.env.MEMGRAPH_ORGANIZATION_NAME=<your-organization-name> | ||
``` | ||
Replace `<release-name>` with a name of your choice for the release and set the enterprise license. | ||
|
||
## Changing the default chart values | ||
To change the default chart values, run the command with the specified set of flags: | ||
``` | ||
helm install <resource-name> memgraph/memgraph-high-availability --set <flag1>=<value1>,<flag2>=<value2>,... | ||
``` | ||
Or you can modify a `values.yaml` file and override the desired values: | ||
``` | ||
helm install <resource-name> memgraph/memgraph-high-availability-f values.yaml | ||
``` | ||
|
||
|
||
## Configuration Options | ||
|
||
The following table lists the configurable parameters of the Memgraph chart and their default values. | ||
|
||
| Parameter | Description | Default | | ||
|---------------------------------------------|-----------------------------------------------------------------------------------------------------|-----------------------------------------| | ||
| `memgraph.image.repository` | Memgraph Docker image repository | `memgraph/memgraph` | | ||
| `memgraph.image.tag` | Specific tag for the Memgraph Docker image. Overrides the image tag whose default is chart version. | `2.17.0` | | ||
| `memgraph.image.pullPolicy` | Image pull policy | `IfNotPresent` | | ||
| `memgraph.env.MEMGRAPH_ENTERPRISE_LICENSE` | Memgraph enterprise license | `<your-license>` | | ||
| `memgraph.env.MEMGRAPH_ORGANIZATION_NAME` | Organization name | `<your-organization-name>` | | ||
| `memgraph.probes.startup.failureThreshold` | Startup probe failure threshold | `30` | | ||
| `memgraph.probes.startup.periodSeconds` | Startup probe period in seconds | `10` | | ||
| `memgraph.probes.readiness.initialDelaySeconds` | Readiness probe initial delay in seconds | `5` | | ||
| `memgraph.probes.readiness.periodSeconds` | Readiness probe period in seconds | `5` | | ||
| `memgraph.probes.liveness.initialDelaySeconds` | Liveness probe initial delay in seconds | `30` | | ||
| `memgraph.probes.liveness.periodSeconds` | Liveness probe period in seconds | `10` | | ||
| `memgraph.data.volumeClaim.storagePVC` | Enable storage PVC | `true` | | ||
| `memgraph.data.volumeClaim.storagePVCSize` | Size of the storage PVC | `1Gi` | | ||
| `memgraph.data.volumeClaim.logPVC` | Enable log PVC | `false` | | ||
| `memgraph.data.volumeClaim.logPVCSize` | Size of the log PVC | `256Mi` | | ||
| `memgraph.coordinators.volumeClaim.storagePVC` | Enable storage PVC for coordinators | `true` | | ||
| `memgraph.coordinators.volumeClaim.storagePVCSize` | Size of the storage PVC for coordinators | `1Gi` | | ||
| `memgraph.coordinators.volumeClaim.logPVC` | Enable log PVC for coordinators | `false` | | ||
| `memgraph.coordinators.volumeClaim.logPVCSize` | Size of the log PVC for coordinators | `256Mi` | | ||
| `data` | Configuration for data instances | See `data` section | | ||
| `coordinators` | Configuration for coordinator instances | See `coordinators` section | | ||
|
||
For the `data` and `coordinators` sections, each item in the list has the following parameters: | ||
|
||
| Parameter | Description | Default | | ||
|---------------------------------------------|-----------------------------------------------------------------------------------------------------|-----------------------------------------| | ||
| `id` | ID of the instance | `0` for data, `1` for coordinators | | ||
| `boltPort` | Bolt port of the instance | `7687` | | ||
| `managementPort` (data only) | Management port of the data instance | `10000` | | ||
| `replicationPort` (data only) | Replication port of the data instance | `20000` | | ||
| `coordinatorPort` (coordinators only) | Coordinator port of the coordinator instance | `12000` | | ||
| `args` | List of arguments for the instance | See `args` section | | ||
|
||
The `args` section contains a list of arguments for the instance. The default values are the same for all instances: | ||
|
||
```markdown | ||
- "--also-log-to-stderr" | ||
- "--log-level=TRACE" | ||
- "--replication-restore-state-on-startup=true" | ||
``` | ||
|
||
For all available database settings, refer to the [Configuration settings reference guide](https://memgraph.com/docs/memgraph/reference-guide/configuration). |
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