-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MooseFS #4
base: mooseFS
Are you sure you want to change the base?
MooseFS #4
Conversation
MooseFS/docker-compose.yml
Outdated
volumes: | ||
mfs_data: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you need to do this with different volumes. We can't have the same volumes mounted to all the containers. This would mean that all the services are deployed on one common machine, with one filesystem. What we instead want is the following
Machine 1: Master server
Machine 2: Chunkserver 1, Web-A
Machine 3: Chunkserver 2, Web-B.
This means we want 3 separate volumes call them mfsdata_master, mfsdata_chunk1, mfsdata_chunk2. These volumes are mounted to the containers as described above.
MooseFS/docker-compose.yml
Outdated
- chunkserver1 | ||
- chunkserver2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since web-B and chunkserver-2 are on the same machine, update the dependency to just chunkserver 2. It should not depend on chunkserver 1.
MooseFS/docker-compose.yml
Outdated
- chunkserver1 | ||
- chunkserver2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update dependency to just chunkserver 1. See my comments below for more details.
MASTER_HOST = $MOOSEFS_MASTER_SERVICE_HOST | ||
CSSERV_LISTEN_PORT = $MOOSEFS_CHUNKSERVER_SERVICE_PORT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am still not sure, how these environment variables are populated. Somewhere you will have to specify to the chunkservers how to connect to the master container. Could you please clarify how that is achieved?
There are two services webA and webB, two chunkservers 1&2, webA writes into a file and webB reads the file from the same location.