You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/clustering/high-availability.mdx
+42-1
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,20 @@ use bolt+routing in different programming languages [here](https://github.com/me
68
68
It is important to note that setting up the cluster on one coordinator (registration of data instances and coordinators, setting main) must be done using bolt connection
69
69
since bolt+routing is only used for routing data-related queries, not coordinator-based queries.
70
70
71
+
## System configuration
72
+
73
+
<Callouttype="warning">
74
+
Important note if you're using native Memgraph deployment with Red Hat.
75
+
76
+
Red Hat uses SELinux to enforce security policies.
77
+
SELinux (Security-Enhanced Linux) is a security mechanism for implementing mandatory access control (MAC) in the Linux kernel.
78
+
It restricts programs, users, and processes to only the resources they require, following a least-privilege model.
79
+
When deploying Memgraph with high availability (HA), consider checking out this attribute for instance visibility and
80
+
setting the level of security mechanism to permissive.
81
+
82
+
This rule could also apply to CentOS and Fedora, but at the moment it's not tested and verified.
83
+
</Callout>
84
+
71
85
## Starting instances
72
86
73
87
You can start the data and coordinator instances using environment flags or configuration flags.
If during cluster setup or at some later stage of cluster life, the user decides to remove some coordinator instance, `REMOVE COORDINATOR` query can be used.
219
+
Only on leader can this query be executed in order to remove followers. Current cluster's leader cannot be removed since this is prohibited
220
+
by NuRaft. In order to remove the current leader, you first need to trigger leadership change.
221
+
222
+
```plaintext
223
+
REMOVE COORDINATOR <COORDINATOR-ID>;
224
+
```
225
+
226
+
202
227
### Set instance to MAIN
203
228
204
229
Once all data instances are registered, one data instance should be promoted to MAIN. This can be achieved by using the following query:
@@ -276,6 +301,22 @@ followers will execute actions in this exact order:
276
301
SHOW INSTANCES;
277
302
```
278
303
304
+
### Show instance
305
+
306
+
You can check the state of the current coordinator to which you are connected by running the following query:
307
+
308
+
```plaintext
309
+
SHOW INSTANCE;
310
+
```
311
+
312
+
This query will return the information about:
313
+
1. instance name
314
+
2. external bolt server to which you can connect using Memgraph clients
315
+
3. coordinator server over which Raft communication is done
316
+
4. management server which is also used for inter-coordinators communication and
317
+
5. cluster role: whether the coordinator is currently a leader of the follower.
318
+
319
+
279
320
## Setting config for highly-available cluster
280
321
281
322
There are several flags that you can use for managing the cluster. Flag `--management-port` is used by both data instances
@@ -748,4 +789,4 @@ that and automatically promote the first alive REPLICA to become the new MAIN. T
Copy file name to clipboardExpand all lines: pages/custom-query-modules/manage-query-modules.mdx
+8-1
Original file line number
Diff line number
Diff line change
@@ -124,7 +124,14 @@ update was successful.
124
124
125
125
### `mg.load`
126
126
127
-
Loads or reloads the given module. A module can only be reloaded if it is not in use. If the module that would be reloaded is being used by another thread while this is run then this will fail the error: `Unable to unload module 'module_name', it is currently being used`. To resolve this rerun the procedure when the module isn't in use.
127
+
Loads or reloads the given module. The module name provided in the input file is a module name string without the file extension.
128
+
A module can only be reloaded if it is not in use and if it exists in the module directory.
129
+
If the module that would be reloaded is being used by another thread while this is run, then this will fail
130
+
the error: `Unable to unload module 'module_name', either it doesn't exist, or it is currently being used.
131
+
In order to check whether the module exists, please use CALL mg.procedures() YIELD * for custom
132
+
query procedures, or CALL mg.functions() YIELD * for custom query functions.`
133
+
134
+
To resolve this rerun the procedure when the module isn't in use.
Copy file name to clipboardExpand all lines: pages/deployment/aws.mdx
+11-2
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,12 @@ Memgraph supports multiple Linux distributions. Memgraph packages for supported
32
32
from the [following page](/getting-started/install-memgraph/direct-download-links#linux)
33
33
34
34
Running Memgraph natively will bring some speed improvements compared to the
35
-
Docker version of Memgraph.
35
+
Docker version of Memgraph. However, deploying Memgraph with Docker is a more straightforward approach
36
+
since it comes with built-in Memgraph MAGE algorithms.
37
+
Memgraph MAGE contains graph algorithms and utility modules written in C++, Python and Rust. If you decided to run Memgraph natively, then you need to build MAGE from source, which requires manual work. For native deployment, check the guide on
38
+
[how to build Memgraph MAGE algorithms from source](/custom-query-modules#install-mage-and-import-query-modules).
39
+
If you're trying out Memgraph for the first time, and running your own benchmarks against it, Docker is the
40
+
recommended way to run Memgraph, as it accelerates the time to value.
36
41
37
42
If you are going to use the Memgraph Docker image, pick the Linux you are most familiar with.
38
43
@@ -75,6 +80,10 @@ If you are running Memgraph in `ON_DISK_TRANSACTIONAL` storage mode, you need to
Copy file name to clipboardExpand all lines: pages/deployment/azure.mdx
+11-2
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,12 @@ Memgraph supports multiple Linux distributions. Memgraph packages for supported
37
37
from the [following page](/getting-started/install-memgraph/direct-download-links#linux)
38
38
39
39
Running Memgraph natively will bring some speed improvements compared to the
40
-
Docker version of Memgraph.
40
+
Docker version of Memgraph. However, deploying Memgraph with Docker is a more straightforward approach
41
+
since it comes with built-in Memgraph MAGE algorithms.
42
+
Memgraph MAGE contains graph algorithms and utility modules written in C++, Python and Rust. If you decided to run Memgraph natively, then you need to build MAGE from source, which requires manual work. For native deployment, check the guide on
43
+
[how to build Memgraph MAGE algorithms from source](/custom-query-modules#install-mage-and-import-query-modules).
44
+
If you're trying out Memgraph for the first time, and running your own benchmarks against it, Docker is the
45
+
recommended way to run Memgraph, as it accelerates the time to value.
41
46
42
47
If you are going to use the Memgraph Docker image, pick the Linux you are most familiar with.
43
48
@@ -79,6 +84,10 @@ If you are running Memgraph in `ON_DISK_TRANSACTIONAL` storage mode, you need to
Copy file name to clipboardExpand all lines: pages/deployment/gcp.mdx
+11-2
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,12 @@ Memgraph supports multiple Linux distributions. Memgraph packages for supported
36
36
from the [following page](/getting-started/install-memgraph/direct-download-links#linux)
37
37
38
38
Running Memgraph natively will bring some speed improvements compared to the
39
-
Docker version of Memgraph.
39
+
Docker version of Memgraph. However, deploying Memgraph with Docker is a more straightforward approach
40
+
since it comes with built-in Memgraph MAGE algorithms.
41
+
Memgraph MAGE contains graph algorithms and utility modules written in C++, Python and Rust. If you decided to run Memgraph natively, then you need to build MAGE from source, which requires manual work. For native deployment, check the guide on
42
+
[how to build Memgraph MAGE algorithms from source](/custom-query-modules#install-mage-and-import-query-modules).
43
+
If you're trying out Memgraph for the first time, and running your own benchmarks against it, Docker is the
44
+
recommended way to run Memgraph, as it accelerates the time to value.
40
45
41
46
If you are going to use the Memgraph Docker image, pick the Linux you are most familiar with.
42
47
@@ -86,6 +91,10 @@ If you are running Memgraph in `ON_DISK_TRANSACTIONAL` storage mode, you need to
|`convert.str2object`|`convert.str2object(string: string) -> (object: any)`| Converts the input string to an object it presents using Python's `json.dumps` function. |
0 commit comments