How protortyp/melon works
Main Components
a) Core Services Layer:
• Scheduler Daemon (melond)
• Worker Service (mworker)
• Web UI Service
b) Client Tools Layer:
• mbatch (job submission)
• mqueue (job listing)
• mcancel (job cancellation)
• mextend (job extension)
• mshow (job details)
c) Infrastructure Layer:
• SQLite Database
• cgroups (Linux resource management)
• File System Storage
Detailed Component Breakdown
Scheduler (melond):
• Subcomponents:
• API Server (port 8088)
• Application Server (port 8080)
• Scheduler Core
• Database Interface
Worker (mworker):
• Connection to scheduler
• Subcomponents:
• Job Executor
• cgroups Manager
• Resource Monitor
Specific Implementation Details
• Protocol Buffers (proto/melon.proto)
• Configuration Management
• Resource Controls (cgroups)
• Job State Management
Additional Elements
Annotations for:
• Port numbers (8080, 8088, 8082)
• File paths (/var/lib/melon)
• Service user contexts (melond, mworker)
[Web UI] -----> [API Server (8088)] ---> [Scheduler Core] <---- [CLI Tools]
• [Database (SQLite)]
• v
• [Worker Service]
• v
• [cgroups Manager]