Skip to content

Commit

Permalink
Update envs for HA (#878)
Browse files Browse the repository at this point in the history
* fix envs

* add 3 missing envs

* Update configuration.mdx

* Update configuration.mdx

---------

Co-authored-by: Kruno Golubic <46486712+kgolubic@users.noreply.github.com>
  • Loading branch information
antoniofilipovic and kgolubic authored Jul 1, 2024
1 parent d120d58 commit 417d969
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions pages/database-management/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -512,12 +512,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

0 comments on commit 417d969

Please sign in to comment.