Skip to content
This repository was archived by the owner on Dec 13, 2023. It is now read-only.

Commit 5c7659a

Browse files
authored
Added multiple Coordinator endpoint support for arangobench, arangodump, arangorestore - APM-173 (#777)
1 parent 446fc10 commit 5c7659a

File tree

4 files changed

+106
-4
lines changed

4 files changed

+106
-4
lines changed

3.9/programs-arangobench.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,17 @@ The most important general _arangobench_ options are:
2626

2727
- `--server.endpoint`: the server endpoint to connect to. This can be a remote
2828
server or a server running on the same host. The endpoint also specifies
29-
whether encryption at transit (TLS) should be used.
29+
whether encryption at transit (TLS) should be used. Multiple endpoints can be
30+
provided. Example:
31+
32+
```
33+
arangobench \
34+
--server.endpoint tcp://[::1]::8529 \
35+
--server.endpoint tcp://[::1]::8530 \
36+
--server.endpoint tcp://[::1]::8531 \
37+
...
38+
```
39+
3040
- `--server.username` and `--server.password`: these can be used to authenticate
3141
with an existing ArangoDB installation.
3242
- `--test-case`: selects the test case to be executed by _arangobench_. A list

3.9/programs-arangodump-examples.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,41 @@ Note that the specified user must have access to the databases.
3838
Here's an example of dumping data from a non-standard endpoint, using a dedicated
3939
[database name](appendix-glossary.html#database-name):
4040

41-
arangodump --server.endpoint tcp://192.168.173.13:8531 --server.username backup --server.database mydb --output-directory "dump"
41+
```
42+
arangodump \
43+
--server.endpoint tcp://192.168.173.13:8531 \
44+
--server.username backup \
45+
--server.database mydb \
46+
--output-directory "dump"
47+
```
4248

4349
In contrast to the above call `--server.database` must not be specified when dumping
4450
all databases using `--all-databases true`:
4551

46-
arangodump --server.endpoint tcp://192.168.173.13:8531 --server.username backup --all-databases true --output-directory "dump-multiple"
52+
```
53+
arangodump \
54+
--server.endpoint tcp://192.168.173.13:8531 \
55+
--server.username backup \
56+
--all-databases true \
57+
--output-directory "dump-multiple"
58+
```
4759

4860
When finished, _arangodump_ will print out a summary line with some aggregate
4961
statistics about what it did, e.g.:
5062

5163
Processed 43 collection(s), wrote 408173500 byte(s) into datafiles, sent 88 batch(es)
5264

65+
Also, more than one endpoint can be provided, such as:
66+
67+
```
68+
arangodump \
69+
--server.endpoint tcp://192.168.173.13:8531 \
70+
--server.endpoint tcp://192.168.173.13:8532 \
71+
--server.username backup \
72+
--all-databases true \
73+
--output-directory "dump-multiple"
74+
```
75+
5376
By default, _arangodump_ will dump both structural information and documents from all
5477
non-system collections. To adjust this, there are the following command-line
5578
arguments:

3.9/programs-arangorestore-examples.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,24 @@ The `--force-same-database` option is set to `false` by default to ensure backwa
5757
Here's an example of reloading data to a non-standard endpoint, using a dedicated
5858
[database name](appendix-glossary.html#database-name):
5959

60-
arangorestore --server.endpoint tcp://192.168.173.13:8531 --server.username backup --server.database mydb --input-directory "dump"
60+
```
61+
arangorestore \
62+
--server.endpoint tcp://192.168.173.13:8531 \
63+
--server.username backup \
64+
--server.database mydb \
65+
--input-directory "dump" \
66+
```
67+
68+
Also, more than one endpoint can be provided, such as:
69+
70+
```
71+
arangorestore \
72+
--server.endpoint tcp://192.168.173.13:8531 \
73+
--server.endpoint tcp://192.168.173.13:8532 \
74+
--server.username backup \
75+
--server.database mydb \
76+
--input-directory "dump"
77+
```
6178

6279
To create the target database when restoring, use a command like this:
6380

3.9/release-notes-new-features39.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,58 @@ target real world use cases but were rather writing for some internal testing.
483483
The deprecated test cases will be removed in a future version to clear up
484484
the list of test cases.
485485

486+
_arangobench_ now supports multiple Coordinators. The flag `--server.endpoint`
487+
can be specified multiple times, as in the example below:
488+
489+
```
490+
arangobench \
491+
--server.endpoint tcp://[::1]::8529 \
492+
--server.endpoint tcp://[::1]::8530 \
493+
--server.endpoint tcp://[::1]::8531 \
494+
...
495+
```
496+
497+
This does not compromise the use of the other client tools, that preserve
498+
the behavior of having one Coordinator and one endpoint.
499+
500+
Also see [_arangobench_ Options](programs-arangobench.html#general-configuration)
501+
502+
### arangodump
503+
504+
_arangodump_ now supports multiple Coordinators. The flag `--server.endpoint`
505+
can be used multiple times, as in the example below:
506+
507+
```
508+
arangodump \
509+
--server.endpoint tcp://[::1]::8529 \
510+
--server.endpoint tcp://[::1]::8530 \
511+
--server.endpoint tcp://[::1]::8531 \
512+
...
513+
```
514+
515+
This does not compromise the use of the other client tools that preserve
516+
the behavior of having one Coordinator and one endpoint.
517+
518+
Also see [_arangodump_ examples](programs-arangodump-examples.html)
519+
520+
### arangorestore
521+
522+
_arangorestore_ now supports multiple Coordinators. The flag `--server.endpoint`
523+
can be used multiple times, as in the example below:
524+
525+
```
526+
arangorestore \
527+
--server.endpoint tcp://[::1]::8529 \
528+
--server.endpoint tcp://[::1]::8530 \
529+
--server.endpoint tcp://[::1]::8531 \
530+
...
531+
```
532+
533+
This does not compromise the use of the other client tools that preserve
534+
the behavior of having one Coordinator and one endpoint.
535+
536+
Also see [_arangorestore_ examples](programs-arangorestore-examples.html)
537+
486538
### arangovpack
487539

488540
The _arangovpack_ utility supports more input and output formats (JSON and

0 commit comments

Comments
 (0)