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: regression-tests/README.md
+97-1
Original file line number
Diff line number
Diff line change
@@ -7,4 +7,100 @@ Before using, please update the line,
7
7
8
8
ACCESS_TOKEN="abcd"
9
9
10
-
with the appropriate token in regression_test.py
10
+
with the appropriate token in regression_test.py
11
+
12
+
13
+
14
+
#Network Testing
15
+
16
+
##Objective
17
+
18
+
To start two instance of <i>matchbox</i> and prototype a Matchmaker Exchange (MME) network instance on your machine, so the two instances could mimic a real-time conversation between two instances across the network.
19
+
20
+
## To do this test, you will need:
21
+
22
+
1. Docker (https://www.docker.com/)
23
+
24
+
## The recipe
25
+
26
+
1. You will need two instances of MongoDB listening on two different ports to accurately mimic two MME nodes running in two distinct locations around the world. Since this is a test and proof of concept, we will use unauthenticated instances. When using a single instance in production, we strongly encourage password protected MongoDB instances.
27
+
28
+
i. Create two distinct data directories for the mongod instances
29
+
```
30
+
mkdir data18
31
+
mkdir data19
32
+
```
33
+
34
+
ii. Start two mongod instance containers listening on two different ports
35
+
36
+
```
37
+
docker run --name mongo18 -d -p 27018:27017 -v data18:/data/db mongo
38
+
docker run --name mongo19 -d -p 27019:27017 -v data19:/data/db mongo
39
+
```
40
+
41
+
```
42
+
Note: these can be brought down by first,
43
+
docker container kill mongo18
44
+
docker container rm mongo18
45
+
docker container kill mongo19
46
+
docker container rm mongo19
47
+
48
+
Verify that they are gone,
49
+
docker container ls
50
+
```
51
+
52
+
iii. Make two directories for the two distinct matchbox instances we will start up
53
+
54
+
```
55
+
mkdir matchbox18
56
+
mkdir matchbox19
57
+
```
58
+
59
+
iv. Clone a <i>matchbox</i> Master branch into each
0 commit comments