How betterde/ects works
Main Components
a. Core System Components:
• Master Node (Controller)
• Worker Nodes
• ETCD Cluster (as the distributed coordination system)
• Web UI Interface
• API Layer
b. Key Services:
• Authentication Service (controllers/auth)
• Pipeline Service (internal/pipeline)
• Task Service (services/task)
• Node Service (services/node)
• Scheduler Service (internal/scheduler)
• Notification System (internal/notify)
Architecture Layers
┌─────────────────────────────────────────────┐
• Web UI │
• (Vue.js + Element UI + Vuex + Vue Router) │
• ┤
• API Gateway │
• (Go HTTP Controllers) │
• ┤
• Core Services │
• ┬──────────────┬──────────────┤
• Master Node │ Worker Nodes │ ETCD │
• ┴──────────────┴──────────────┘
Component Interactions
• Communication between Master and Worker nodes via ETCD
• API requests from Web UI to backend services
• Task execution flow from scheduler to workers
• Event notifications and hooks
• Service discovery and health checks
Specific Implementation Details
Technical elements:
• Actuators (internal/actuator):
• HTTP
• Shell
• Hook
• Message System (internal/message)
• Service Discovery (internal/discover)
• Pipeline Management
• Task Scheduling
Additional Elements
Supporting components:
• Authentication flow
• Permission management
• Task execution pipeline
• Monitoring and logging system
• Configuration management
Security and monitoring aspects
Remember to maintain a balance between detail and clarity, focusing on the distributed architecture while showing how ETCD enables coordination between components.