49 أسطر
1.0 KiB
Markdown
49 أسطر
1.0 KiB
Markdown
# Ghaymah Block Storage for Stateful Workloads
|
|
|
|
## Overview
|
|
|
|
Stateful applications store persistent data that must remain available even if a container is restarted, replaced, or moved to another node.
|
|
|
|
Ghaymah Block Storage provides persistent storage that can be attached to stateful workloads such as databases.
|
|
|
|
---
|
|
|
|
## Common Stateful Workloads
|
|
|
|
- MySQL
|
|
- PostgreSQL
|
|
- MongoDB
|
|
- Redis (Persistent Mode)
|
|
|
|
---
|
|
|
|
## How It Works
|
|
|
|
1. The database container stores its data on a Ghaymah Block Storage volume.
|
|
2. If the container fails, a new container can be started.
|
|
3. The same Block Storage volume is reattached.
|
|
4. The application continues using the existing data.
|
|
|
|
---
|
|
|
|
## Benefits
|
|
|
|
- Persistent data storage
|
|
- High durability
|
|
- Faster recovery after failures
|
|
- Data remains available after container restarts
|
|
- Suitable for production database workloads
|
|
|
|
---
|
|
|
|
## Example Architecture
|
|
|
|
```text
|
|
Application Containers
|
|
│
|
|
▼
|
|
Database Container
|
|
│
|
|
▼
|
|
Ghaymah Block Storage
|
|
``` |