Volumes

Use volume storage for all important, critical, or long-term data operations. Local storage in OCS is considered ephemeral

While we aim to provide integrity of data on local storage, volume storage will provide your instance with more storage space and better data protection as it is replicated across 3 drives.

What are volumes?

In OneQode Cloud, a volume is a separate storage device that can be attached to an instance. Unlike standard storage, which is tied to the life of an instance, volumes can be detached and reattached to different instances, or even used as a standalone storage device.

This allows you to create a persistent storage device that can be used across multiple instances, making it ideal for storing important data that needs to be kept even if the instance is destroyed.

When should you use volumes?

Volumes are best used for data that needs to be kept separate from the instance, or data that needs to be kept even if the instance is destroyed. This includes:

  • Databases

  • File storage

  • Backup storage

  • Logs

Attaching and detaching volumes

When you attach a volume to an instance, it acts as an additional storage device that can be used just like a regular hard drive. The data on the volume is accessible to the instance, and any changes made to the volume are immediately visible to the instance.

When you detach a volume, the data is still preserved, and the volume can be reattached to another instance or used as a standalone storage device.

Best practices

Some best practice guidance for dealing with volumes:

  • Always use volume storage for critical, important or long-term data operations.

  • Regularly take snapshots of your volumes to ensure you can easily recover data in case of failure.

  • Be mindful of the size of your volumes, as they can become full and impact performance.

  • When detaching a volume, ensure that the data is properly saved and backed up.

Volumes are a great solution for data that needs to be kept separate from the instance, or data that needs to be kept even if the instance is destroyed. With the ability to attach and detach volumes, you can easily manage and move your data, making it more flexible and reliable.

By following taking active measures such as regularly taking snapshots and being mindful of the size of your volumes, you can ensure your data is always safe and accessible.

Last updated