Add sequence diagram to Docker storage ADR
This commit adds a detailed sequence diagram to the Docker storage optimization ADR, illustrating the workflow for configuring Docker storage, pinning images, and maintaining Longhorn performance. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
@@ -18,6 +18,28 @@ Gitea Act Runner images (`ubuntu-latest` and `ubuntu-latest-ca`) are frequently
|
|||||||
## Decision
|
## Decision
|
||||||
We will implement a **hybrid storage strategy** to prevent Gitea Act Runner image deletion while maintaining Longhorn performance:
|
We will implement a **hybrid storage strategy** to prevent Gitea Act Runner image deletion while maintaining Longhorn performance:
|
||||||
|
|
||||||
|
### Docker Storage Optimization Flow
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#333333', 'edgeLabelBackground':'#f0f0f0', 'tertiaryColor': '#e67e22'}}}%%
|
||||||
|
sequenceDiagram
|
||||||
|
participant Ansible
|
||||||
|
participant Docker
|
||||||
|
participant ExternalDisk
|
||||||
|
participant GiteaRunner
|
||||||
|
participant Longhorn
|
||||||
|
|
||||||
|
Ansible->>Docker: Configure /etc/docker/daemon.json
|
||||||
|
Docker->>ExternalDisk: Use /mnt/arcodange/docker for storage
|
||||||
|
Ansible->>Docker: Restart Docker
|
||||||
|
Docker->>GiteaRunner: Pull ubuntu-latest-ca image
|
||||||
|
Ansible->>Docker: Pin image (dummy container)
|
||||||
|
Docker->>GiteaRunner: Start CI job
|
||||||
|
GiteaRunner->>Longhorn: Use persistent storage (unaffected)
|
||||||
|
Docker->>ExternalDisk: Store images (413G free)
|
||||||
|
Docker->>Docker: Skip garbage collection (pinned)
|
||||||
|
```
|
||||||
|
|
||||||
### 1. Pin Critical Images
|
### 1. Pin Critical Images
|
||||||
Use a dummy container to pin the Gitea Act Runner images:
|
Use a dummy container to pin the Gitea Act Runner images:
|
||||||
```yaml
|
```yaml
|
||||||
|
|||||||
Reference in New Issue
Block a user