How to secure an API
Problem Statement
Design a high-level architecture for a remote test execution and orchestration system that allows Nutanix engineers (or automation systems) to submit test suites/binaries from user machines (or CI pipelines) which are then executed across a pool of distributed worker machines or cloud instances. The system should handle scheduling, resource allocation, execution, result aggregation, and failure handling.
🔹 Context
In the context of Nutanix (storage, cloud infrastructure, HCI), engineers often need to run large sets of functional, integration or system-level tests against clusters, workload simulators or VMs. A centralized platform that automates these test executions across multiple worker nodes ensures consistency, scalability, and faster feedback.
✅ Functional Requirements
⚙️ Non-Functional Requirements
AttributeDescription
Scalability
Should support hundreds of concurrent test executions.
Availability
System should tolerate worker node failures and keep scheduling.
Performance
Time from submission to job start should be minimized.
Extensibility
Easy to add new test environments, new worker types.
Resource Efficiency
Optimize use of worker nodes (avoid idle/unused capacity).
Security
Secure upload/download of binaries & logs; isolate environments.
🧩 Key Components (High-Level)
🏗️ High-Level Architecture Overview
1
2[ User / CI ]
3 │ submit job
4 ▼
5[ Job Submission API ] ──► [ Job Queue / Scheduler ] ──► [ Worker Manager ] ──► [ Worker Nodes ]
6 │ (execute job)
7 ▼
8 [ Result Store & Analytics ] ─► [ Dashboard / UI ]
9 ▲
10 │
11 [ Monitoring & Alerting ]🧠 Design Discussion Points
✅ Summary
Design a scalable remote test-execution orchestration system for Nutanix that allows engineers to submit test jobs from their machines or CI pipelines, manages a distributed pool of worker machines, schedules and executes jobs, collects and presents results, and ensures robustness and scalability.