Storage Classes
Miget provides two distinct storage classes for attaching volumes to your services: Single-instance (RWO) and Multi-Instance (RWX). These options allow you to tailor your storage needs based on performance, scalability, and high availability requirements.
Single-instance (RWO) Storage Class
The Single-instance (RWO) storage class is designed for services that only require a single instance of your application to access the volume at any given time. This storage class is optimal for workloads where fast access to the disk is critical, and concurrent access from multiple instances is not necessary.
Key Features:
-
Faster Disk Access: Since only one instance can access the volume, data read/write operations are optimized for speed.
-
Simplicity: Ideal for applications that don't require replication or distributed computing, such as standalone databases or stateful applications where high availability (HA) is not a concern.
-
Usage Scenario: Best suited for workloads that require direct disk access from a single node, such as data processing, application caches, or low-latency storage needs.
Considerations:
- Single-instance Limitation: Only one instance of your service can access the disk. If you need to scale horizontally with multiple instances, this storage class won’t support that requirement.
Multi-Instance (RWX) Storage Class
The Multi-Instance (RWX) storage class is built to support highly available (HA) services where multiple instances of your application require concurrent read/write access to the same volume. This is essential for distributed and clustered environments where redundancy and failover are critical.
Key Features:
-
Supports Multiple Instances: Enables multiple instances of your service to access the volume simultaneously, making it ideal for applications that need to scale horizontally.
-
High Availability: Perfect for applications requiring high uptime and redundancy, such as clustered databases, distributed file systems, or stateful microservices.
Considerations:
- Slightly Higher Latency: Due to the need to coordinate read/write operations across multiple instances, this storage class may introduce slightly more overhead compared to the faster Single-instance (RWO) storage.
Choosing the Right Storage Class
When selecting a storage class for your Miget service, consider the following factors:
-
Performance Needs: If speed is a priority and your service does not need multiple instances, go for Single-instance (RWO).
-
High Availability: If your application requires failover support or needs to scale horizontally with multiple instances, Multi-Instance (RWX) is the better option.
-
Workload Type: For simple, standalone services, Single-instance (RWO) provides a performance boost. For distributed and stateful applications that require coordination across multiple nodes, Multi-Instance (RWX) is ideal.