Need for persistent volumes

The idea behind persistent volumes is quite easy; the application can reserve some space for specific tasks and mark them as persistent volumes. When the application that is using this space terminates, the newly spawned application will get access to the data created by the previously-terminated application so they can restore the data. We can have a shared filesystem or we can have persistent volumes, as these are the only two ways to handle the problem.

Here, we will use EBS persistent volumes in AWS to understand how our data will be persisted on the EBS volume using the REX-Ray volume driver. The following procedure illustrates the problem of why we need persistent volumes:

  1. We will run the Redis Docker image ...

Get Learn Apache Mesos now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.