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: README.md
+29-27Lines changed: 29 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@ This is a basic configuration of a multiple-node MooseFS cluster based on the De
4
4
5
5
# Updates
6
6
7
+
- Update cluster to version 4.57.6
8
+
- The use of the MooseFS repository in containers has been discontinued. Binary files are compiled from source. This approach will make it easier to run the cluster on different CPU architectures.
7
9
- All MooseFS processes are now correctly handling signals.
8
10
- Metadata and data are now persistent and mounted as volumes.
9
11
- TEST and PROD moosefs master metadata behavior defined by `MFS_ENV` variable.
@@ -23,13 +25,14 @@ This is a basic configuration of a multiple-node MooseFS cluster based on the De
23
25
- Chunkserver 2: `172.20.0.12`, labels: `M, B`
24
26
- Chunkserver 3: `172.20.0.13`, labels: `M, B`
25
27
- Chunkserver 4: `172.20.0.14`, labels: `B`
26
-
- Client: `172.168.20.0.100`
28
+
- Client1: `172.168.20.0.101`
29
+
- Client2: `172.168.20.0.102`
27
30
28
31
# Setup
29
32
30
-
Install Docker with Docker Composer from [https://docs.docker.com/compose/install](https://docs.docker.com/compose/install)
You can also run `dockercompose`in detached mode. All running Docker nodes will run in the background, so Docker console output will be invisible.
47
50
48
51
```
49
-
sudo -E docker-compose build
50
-
sudo -E docker-compose up
51
-
```
52
-
53
-
You can also run `docker-compose` in detached mode. All running Docker nodes will run in the background, so Docker console output will be invisible.
54
-
55
-
```
56
-
sudo -E docker-compose build
57
-
sudo -E docker-compose up -d
52
+
docker compose up -d
58
53
```
59
54
60
55
You can check if instances are running:
@@ -63,26 +58,27 @@ You can check if instances are running:
63
58
docker ps
64
59
```
65
60
66
-
You should have 1 Master Server, 1 Metalogger, 4 Chunkservers and 1 Client running (first configuration). The expected output should be similar to the following:
61
+
You should have 1 Master Server, 1 Metalogger, 4 Chunkservers and 2 Clients running. The expected output should be similar to the following:
67
62
68
63
```
69
-
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
70
-
abf5910b53bc moosefsdockercluster_mfsclient "mfsmount -f /mnt/mo…" 7 minutes ago Up 7 minutes mfsclient
71
-
7a1152cc31f3 moosefsdockercluster_mfschunkserver3 "chunkserver.sh" 7 minutes ago Up 7 minutes 9422/tcp mfschunkserver3
72
-
b8c2cd770187 moosefsdockercluster_mfschunkserver2 "chunkserver.sh" 7 minutes ago Up 7 minutes 9422/tcp mfschunkserver2
73
-
100f20683b3a moosefsdockercluster_mfschunkserver1 "chunkserver.sh" 7 minutes ago Up 7 minutes 9422/tcp mfschunkserver1
74
-
68ffb70ab361 moosefsdockercluster_mfschunkserver4 "chunkserver.sh" 7 minutes ago Up 7 minutes 9422/tcp mfschunkserver4
75
-
82a2c3bd831d moosefsdockercluster_mfsmetalogger "metalogger.sh" 7 minutes ago Up 7 minutes mfsmetalogger
76
-
05736e4bdd3c moosefsdockercluster_mfscgi "mfscgiserv -f" 7 minutes ago Up 7 minutes 0.0.0.0:9425->9425/tcp mfscgi
77
-
e83a1fb062a1 moosefsdockercluster_mfsmaster "master.sh" 7 minutes ago Up 7 minutes 9419-9421/tcp mfsmaster
64
+
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
65
+
f104d5b2f737 moosefs-docker-cluster-mfsclient2 "mount.sh" 3 minutes ago Up 3 seconds mfsclient2
66
+
74de405a4baa moosefs-docker-cluster-mfsclient1 "mount.sh" 3 minutes ago Up 3 seconds mfsclient1
67
+
4d8637367bbd moosefs-docker-cluster-mfschunkserver3 "chunkserver.sh" 3 minutes ago Up 3 seconds 9422/tcp mfschunkserver3
68
+
8bbe27c0a913 moosefs-docker-cluster-mfschunkserver4 "chunkserver.sh" 3 minutes ago Up 3 seconds 9422/tcp mfschunkserver4
69
+
bdceb9669fae moosefs-docker-cluster-mfschunkserver2 "chunkserver.sh" 3 minutes ago Up 3 seconds 9422/tcp mfschunkserver2
70
+
15de9aef85ec moosefs-docker-cluster-mfschunkserver1 "chunkserver.sh" 3 minutes ago Up 3 seconds 9422/tcp mfschunkserver1
71
+
11465da54cb9 moosefs-docker-cluster-mfsmetalogger "metalogger.sh" 3 minutes ago Up 3 seconds mfsmetalogger
72
+
3f7c572225c4 moosefs-docker-cluster-mfscgi "cgiserver.sh" 3 minutes ago Up 3 seconds 0.0.0.0:9425->9425/tcp mfscgi
73
+
afd43c5c460f moosefs-docker-cluster-mfsmaster "master.sh" 3 minutes ago Up 4 seconds 0.0.0.0:9419-9421->9419-9421/tcp mfsmaster
78
74
```
79
75
80
76
# Attach / detach to / from container
81
77
82
78
For example, if you like to **attach** to the client node execute this command:
83
79
84
80
```
85
-
docker exec -it mfsclient bash
81
+
docker exec -it mfsclient1 bash
86
82
```
87
83
88
84
To **detach** from container, just press `Ctrl + D` keys combination.
@@ -110,7 +106,13 @@ The MooseFS CGI Monitoring Interface is available here: [http://localhost:9425](
110
106
111
107
Also on Linux, CGI Server container is available at the IP address: [http://172.20.0.3:9425](http://172.20.0.3:9425) (be aware of a local `172.20.0.x` network).
0 commit comments