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
+26-29Lines changed: 26 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,33 +1,33 @@
1
1
# MooseFS Docker Cluster
2
2
3
-
This is a basic configuration of a multiple nodes MooseFS cluster based on the Debian Buster Docker image. It consists of a master server, a CGI server, 4 chunk servers, and one client. After a successful installation, you will have a fully working MooseFS cluster to play with its amazing features.
3
+
This is a basic configuration of a multiple-node MooseFS cluster based on the Debian Buster Docker image. It consists of a Master Server, a CGI Monitoring Interface Server, 4 Chunkservers, and one Client. After a successful installation, you will have a fully working MooseFS cluster to play with its amazing features.
4
4
5
5
# Updates
6
6
7
-
- All moosefs processes are now correctly handling signals.
7
+
- All MooseFS processes are now correctly handling signals.
8
8
- Metadata and data are now persistent and mounted as volumes.
9
-
- TEST and PROD moosefs master metadata behavior defined by MFS_ENV variable.
10
-
- Specify storage size per chunk server (env: **SIZE**) default not defined. Depends on your local storage free space.
11
-
- Specify label per chunk server (env: **LABEL**, default: *empty*).
9
+
- TEST and PROD moosefs master metadata behavior defined by `MFS_ENV` variable.
10
+
- Specify storage size per chunk server (env: `SIZE`) default not defined. Depends on your local storage free space.
11
+
- Specify label per chunk server (env: `LABEL`, default: *empty*).
12
12
- Switched to *debian:buster* as a base image.
13
13
- Example with 4 chunk servers (labels: M, MB, MB, B).
14
14
15
15
# Cluster configurations
16
16
17
17
**File docker-compose.yml**
18
18
19
-
-master **172.20.0.2**
20
-
- CGI [http://localhost:9425](http://localhost:9425) on Linux also [http://172.20.0.3:9425](http://172.20.0.3:9425)
21
-
-metalogger **172.20.0.4**
22
-
-chunkserver1 **172.20.0.11**, label: **M**
23
-
-chunkserver2 **172.20.0.12**, label: **M**,**B**
24
-
-chunkserver3 **172.20.0.13**, label: **M**,**B**
25
-
-chunkserver4 **172.20.0.14**, label: **B**
26
-
-client **172.168.20.0.100**
19
+
-Master Server: `172.20.0.2`
20
+
- CGI Monitoring Interface: [http://localhost:9425](http://localhost:9425), on Linux also [http://172.20.0.3:9425](http://172.20.0.3:9425)
21
+
-Metalogger: `172.20.0.4`
22
+
-Chunkserver 1: `172.20.0.11`, labels: `M`
23
+
-Chunkserver 2: `172.20.0.12`, labels: `M, B`
24
+
-Chunkserver 3: `172.20.0.13`, labels: `M, B`
25
+
-Chunkserver 4: `172.20.0.14`, labels: `B`
26
+
-Client: `172.168.20.0.100`
27
27
28
28
# Setup
29
29
30
-
Install Docker with Docker Composer from [https://docs.docker.com/compose/install/](https://docs.docker.com/compose/install/)
30
+
Install Docker with Docker Composer from [https://docs.docker.com/compose/install](https://docs.docker.com/compose/install)
31
31
32
32
Clone MooseFS docker config files:
33
33
@@ -43,14 +43,14 @@ docker-compose build
43
43
docker-compose up
44
44
```
45
45
46
-
On Linux OS run docker-compose as root:
46
+
On Linux OS run `docker-compose` as root:
47
47
48
48
```
49
49
sudo -E docker-compose build
50
50
sudo -E docker-compose up
51
51
```
52
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.
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
54
55
55
```
56
56
sudo -E docker-compose build
@@ -63,7 +63,7 @@ You can check if instances are running:
63
63
docker ps
64
64
```
65
65
66
-
You should have 1 master, 1 metalogger, 4 chunk servers and 1 client running (first configuration). The expected output should be similar to this:
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:
67
67
68
68
```
69
69
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e83a1fb062a1 moosefsdockercluster_mfsmaster "master.sh" 7 minutes ago Up 7 minutes 9419-9421/tcp mfsmaster
78
78
```
79
79
80
-
# Attach/detach to/from container
80
+
# Attach / detach to / from container
81
81
82
82
For example, if you like to **attach** to the client node execute this command:
83
83
84
84
```
85
85
docker exec -it mfsclient bash
86
86
```
87
87
88
-
To **detach** from container just press `Ctrl + d` keys.
88
+
To **detach** from container, just press `Ctrl + D` keys combination.
89
89
90
-
# MooseFS client
90
+
# MooseFS Client
91
91
92
92
MooseFS filesystem is mounted at `/mnt/moosefs`. If everything is ok you should see this ASCII art:
93
93
@@ -104,16 +104,17 @@ cat /mnt/moosefs/.mooseart
104
104
"" ""
105
105
```
106
106
107
-
# CGI
107
+
# MooseFS CGI Monitoring Interface
108
108
109
-
The CGI is available here: [http://localhost:9425](http://localhost:9425)
110
-
Also on Linux OS CGI container is available at IP address [http://172.20.0.3:9425](http://172.20.0.3:9425) (be aware of a local 172.20.0.* network).
109
+
The MooseFS CGI Monitoring Interface is available here: [http://localhost:9425](http://localhost:9425).
110
+
111
+
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).
Your MooseFS Docker cluster is persistent. It means all files you created in the /mnt/moosefs folder will remain there even after turning containers off.
117
+
Your MooseFS Docker cluster is persistent. It means all files you created in the `/mnt/moosefs` folder will remain there even after turning containers off.
117
118
All data and metadata files are stored in the host `./data` directory.
118
119
# Docker Hub
119
120
@@ -123,8 +124,4 @@ All data and metadata files are stored in the host `./data` directory.
123
124
|[moosefs/chunkserver](https://hub.docker.com/r/moosefs/chunkserver/)||[](https://hub.docker.com/r/moosefs/chunkserver/)|||
124
125
|[moosefs/client](https://hub.docker.com/r/moosefs/client/)||[](https://hub.docker.com/r/moosefs/client/)|||
125
126
|[moosefs/metalogger](https://hub.docker.com/r/moosefs/metalogger/)||[](https://hub.docker.com/r/moosefs/cgi/)|||
126
-
|[moosefs/cgi](https://hub.docker.com/r/moosefs/cgi/)||[](https://hub.docker.com/r/moosefs/cgi/)|||
127
-
128
-
129
-
130
-
Scripts are based on [Kai Sasaki's *Lewuathe/docker-hadoop-cluster*](https://github.com/Lewuathe/docker-hadoop-cluster). Thank you, Kai!
127
+
|[moosefs/cgi](https://hub.docker.com/r/moosefs/cgi/)||[](https://hub.docker.com/r/moosefs/cgi/)|||
0 commit comments