In this section we will see how we can make the volume persistent in our Mesos environment that is using Docker by using REX-Ray.
Rex-Ray is a storage-orchestration tool that provides a set of common commands for managing multiple storage platforms. It's built on top of the lib storage 6 framework. REX-Ray enables persistent storage for container runtimes such as Docker and Mesos. The following image shows, that we have a REX-Ray installed on each of the Docker hosts and we have a storage platform:
In our case, the storage platform we will have is our Elastic Block Storage (EBS), which can be found in AWS. We will use the already-created persistent volume to mount it in the application container, and we will perform the same step we performed in the previous example to understand whether our data remains persistent.
- Let's get started...