mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Optimized .mds and meta/main.yml for system roles
This commit is contained in:
@@ -1,23 +1,29 @@
|
||||
# System Storage Optimizer Role
|
||||
|
||||
## Description
|
||||
|
||||
This role optimizes storage allocation for Docker volumes by migrating volumes between SSD (rapid storage) and HDD (mass storage) based on container image types. It creates symbolic links to maintain consistent storage paths after migration.
|
||||
|
||||
## Overview
|
||||
|
||||
The `system-storage-optimizer` role is designed for managing and optimizing storage allocation of Docker volumes. It automates the process of moving Docker volumes between SSD (rapid storage) and HDD (mass storage) based on the container image types, enhancing performance and efficiency.
|
||||
The role performs the following tasks:
|
||||
- Migrates Docker volumes with database workloads to rapid storage (SSD) for improved performance.
|
||||
- Moves non-database Docker volumes to mass storage (HDD) to optimize storage usage.
|
||||
- Manages container stopping and restarting during the migration process.
|
||||
- Creates symbolic links to preserve consistent file paths.
|
||||
|
||||
## Purpose
|
||||
|
||||
The primary purpose of this role is to enhance system performance by ensuring that Docker volumes are stored on the most appropriate storage medium, optimizing both speed and capacity.
|
||||
|
||||
## Features
|
||||
|
||||
- Dynamically moves Docker volumes based on container image types.
|
||||
- Utilizes SSDs for database-related volumes for faster access.
|
||||
- Moves non-database volumes to HDDs for efficient mass storage.
|
||||
- Handles container stopping and starting during the optimization process.
|
||||
- Creates symbolic links to maintain consistent paths.
|
||||
- **Dynamic Volume Migration:** Moves Docker volumes based on container image types.
|
||||
- **Symbolic Link Creation:** Maintains consistent access paths after migration.
|
||||
- **Container Management:** Safely stops and starts containers during volume migration.
|
||||
- **Performance Optimization:** Improves overall system performance by leveraging appropriate storage media.
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
To deploy this role, include it in your Ansible playbook and define the necessary paths for SSD and HDD storage.
|
||||
|
||||
## Additional Information
|
||||
## Credits
|
||||
|
||||
For detailed context and the development history of this role, refer to [this conversation](https://chat.openai.com/share/40fef8a6-5e9b-4b5e-8e68-7f2fd9abf5cc).
|
||||
|
||||
|
24
roles/system-storage-optimizer/meta/main.yml
Normal file
24
roles/system-storage-optimizer/meta/main.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
---
|
||||
galaxy_info:
|
||||
author: "Kevin Veen-Birkenbach"
|
||||
description: "Optimizes storage allocation for Docker volumes by migrating volumes between SSD and HDD based on container image types, and creates symbolic links to maintain consistent paths."
|
||||
license: "CyMaIS NonCommercial License (CNCL)"
|
||||
license_url: "https://s.veen.world/cncl"
|
||||
company: |
|
||||
Kevin Veen-Birkenbach
|
||||
Consulting & Coaching Solutions
|
||||
https://www.veen.world
|
||||
min_ansible_version: "2.9"
|
||||
platforms:
|
||||
- name: Linux
|
||||
versions:
|
||||
- all
|
||||
galaxy_tags:
|
||||
- storage
|
||||
- docker
|
||||
- optimization
|
||||
- performance
|
||||
repository: "https://s.veen.world/cymais"
|
||||
issue_tracker_url: "https://s.veen.world/cymaisissues"
|
||||
documentation: "https://s.veen.world/cymais"
|
||||
dependencies: []
|
Reference in New Issue
Block a user