Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update envs for HA #878

Merged
merged 4 commits into from
Jul 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions pages/database-management/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -517,12 +517,22 @@ This section contains the list of environment variables that can be used to conf
Before the running of Memgraph, you can set the following environment variables:


| Variable | Description | Type |
|-------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------|
| MEMGRAPH_USER | Specifies the username for connecting to Memgraph. If the user does not exist, a new one is created with this username. Manual entry of credentials is always necessary when accessing Memgraph using Memgraph Lab. | `[string]` |
| MEMGRAPH_PASSWORD | Specifies the password for the user. If creating a new user, this password is assigned. For existing users, this setting does not change the password. Manual entry of credentials is always necessary when accessing Memgraph using Memgraph Lab. | `[string]` |
| MEMGRAPH_PASSFILE | Path to file that contains username and password for creating a user. Data in file should be in format `username:password` if your username or password contains `:` just add `\` before for example `us\:ername:password` | `[string]`
| MEMGRAPH_CONFIG | Path to the additional configuration file. | `[string]` |
| Variable | Description | Type |
|----------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------|
| MEMGRAPH_USER | Specifies the username for connecting to Memgraph. If the user does not exist, a new one is created with this username. Manual entry of credentials is always necessary when accessing Memgraph using Memgraph Lab. | `[string]` |
| MEMGRAPH_PASSWORD | Specifies the password for the user. If creating a new user, this password is assigned. For existing users, this setting does not change the password. Manual entry of credentials is always necessary when accessing Memgraph using Memgraph Lab. | `[string]` |
| MEMGRAPH_PASSFILE | Path to the file that contains the username and password for creating a user. Data in the file should be in the format `username:password`. If your username or password contains `:`, add `\` before it, for example, `us\:ername:password`. | `[string]` |
| MEMGRAPH_CONFIG | Path to the additional configuration file. | `[string]` |
| MEMGRAPH_MANAGEMENT_PORT | Port on which data instance management servers or the coordinator management server will be started. | `[int]` |
| MEMGRAPH_COORDINATOR_PORT | Port on which Raft servers will be started. | `[int]` |
| MEMGRAPH_COORDINATOR_ID | Unique ID of the Raft server. | `[int]` |
| MEMGRAPH_HA_DURABILITY | Whether to use durability for coordinator logs and snapshots. | `[bool]` |
| MEMGRAPH_NURAFT_LOG_FILE | Path to the file where NuRaft logs are saved. | `[string]` |
| MEMGRAPH_COORDINATOR_HOSTNAME | Instance's hostname. Used as output of the `SHOW INSTANCES` query. | `[string]` |
| MEMGRAPH_HA_CLUSTER_INIT_QUERIES | Path to the file with queries to initialize the HA cluster. | `[string]` |
| MEMGRAPH_BOLT_PORT | Bolt port used for Bolt server. | `[int]` |
| MEMGRAPH_EXPERIMENTAL_ENABLED | List of experimental features which the user wants to use. | `[string]` |


In order to apply the environment variables with Memgraph, you can follow the steps below:

Expand Down