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: wiki/content/deploy/index.md
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -198,8 +198,8 @@ Dgraph cluster nodes use different ports to communicate over gRPC and http. User
198
198
If you are using Dgraph v1.0.2 (or older) then the default ports are 7080, 8080 for zero, so when following instructions for different setup guides below override zero port using `--port_offset`.
199
199
200
200
```sh
201
-
dgraph zero --idx=1 --lru_mb=<typically half the RAM> --port_offset -2000
202
-
dgraph zero --idx=2 --lru_mb=<typically half the RAM> --port_offset -1999
201
+
dgraph zero --idx=1 --lru_mb=<typically one-third the RAM> --port_offset -2000
202
+
dgraph zero --idx=2 --lru_mb=<typically one-third the RAM> --port_offset -1999
203
203
```
204
204
Ratel's default port is 8081, so override it using -p 8000.
205
205
@@ -258,8 +258,8 @@ For all other various flags, run `dgraph zero --help`.
258
258
**Run dgraph server**
259
259
260
260
```sh
261
-
dgraph server --lru_mb=<typically half the RAM> --my=IPADDR:7080 --zero=localhost:5080
262
-
dgraph server --lru_mb=<typically half the RAM> --my=IPADDR:7081 --zero=localhost:5080 -o=1
261
+
dgraph server --lru_mb=<typically one-third the RAM> --my=IPADDR:7080 --zero=localhost:5080
262
+
dgraph server --lru_mb=<typically one-third the RAM> --my=IPADDR:7081 --zero=localhost:5080 -o=1
263
263
```
264
264
Notice the use of -o for the second server to add offset to the default ports used by server. Zero automatically assigns an unique ID to each Dgraph server, which is persisted in the write ahead log (wal) directory, users can specify the index using `--idx` option. Dgraph servers use two location to persist data and wal logs and have to be different for each server if they are running on the same host. User can use `-p` and `-w` to change the location of data and WAL. For all other flags, run
mkdir ~/server1 # Or any other directory where data should be stored.
295
295
296
-
docker run -it -p 7080:7080 -p 8080:8080 -p 9080:9080 -v ~/server1:/dgraph dgraph/dgraph:latest dgraph server --lru_mb=<typically half the RAM> --zero=HOSTIPADDR:5080 --my=HOSTIPADDR:7080
296
+
docker run -it -p 7080:7080 -p 8080:8080 -p 9080:9080 -v ~/server1:/dgraph dgraph/dgraph:latest dgraph server --lru_mb=<typically one-third the RAM> --zero=HOSTIPADDR:5080 --my=HOSTIPADDR:7080
297
297
298
298
mkdir ~/server2 # Or any other directory where data should be stored.
299
299
300
-
docker run -it -p 7081:7081 -p 8081:8081 -p 9081:9081 -v ~/server2:/dgraph dgraph/dgraph:latest dgraph server --lru_mb=<typically half the RAM> --zero=HOSTIPADDR:5080 --my=HOSTIPADDR:7081 -o=1
300
+
docker run -it -p 7081:7081 -p 8081:8081 -p 9081:9081 -v ~/server2:/dgraph dgraph/dgraph:latest dgraph server --lru_mb=<typically one-third the RAM> --zero=HOSTIPADDR:5080 --my=HOSTIPADDR:7081 -o=1
301
301
```
302
302
Notice the use of -o for server2 to override the default ports for server2.
303
303
@@ -1416,7 +1416,7 @@ During bulk loading of data, Dgraph can consume more memory than usual, due to h
1416
1416
1417
1417
The recommended minimum RAM to run on desktops and laptops is 16GB. Dgraph can take up to 7-8 GB with the default setting `-lru_mb` set to 4096; so having the rest 8GB for desktop applications should keep your machine humming along.
1418
1418
1419
-
On EC2/GCE instances, the recommended minimum is 8GB. It's recommended to set `-lru_mb` to half of RAM size.
1419
+
On EC2/GCE instances, the recommended minimum is 8GB. It's recommended to set `-lru_mb` to one-third of RAM size.
Copy file name to clipboardExpand all lines: wiki/content/get-started/index.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -150,7 +150,7 @@ Run 'dgraph-ratel' to start Dgraph UI. This can be used to do mutations and quer
150
150
dgraph-ratel
151
151
```
152
152
153
-
{{% notice "tip" %}}You need to set the estimated memory Dgraph server can take through `lru_mb` flag. This is just a hint to the Dgraph server and actual usage would be higher than this. It's recommended to set lru_mb to half the available RAM.{{% /notice %}}
153
+
{{% notice "tip" %}}You need to set the estimated memory Dgraph server can take through `lru_mb` flag. This is just a hint to the Dgraph server and actual usage would be higher than this. It's recommended to set lru_mb to one-third the available RAM.{{% /notice %}}
If you are using Dgraph v1.0.2 (or older) then the default ports are 7080, 8080 for zero, so when following instructions for different setup guides override zero port using `--port_offset`.
212
212
213
213
```sh
214
-
dgraph zero --lru_mb=<typically half the RAM> --port_offset -2000
214
+
dgraph zero --lru_mb=<typically one-third the RAM> --port_offset -2000
215
215
```
216
216
Ratel's default port is 8081, so override it using -p 8000.
0 commit comments