Cloud-Based File Storage System
Check out the professor's official repo, and the execution log to see my work!
- Report: OCUSMAFAIT_report_Cloud.pdf
- Slides: OCUSMAFAIT_presentation_Cloud.pdf
| Component | Purpose |
|---|---|
| Docker Compose | Orchestrates all containers and networking. |
| Nextcloud | Simulates a self-hosted cloud storage service under test. |
| Prometheus | Scrapes and stores metrics from Nextcloud Exporter. |
| Nextcloud Exporter | Exposes metrics in Prometheus format for scraping. |
| Grafana | Visualizes performance metrics and dashboards. |
| Locust | Generates synthetic load (file uploads/downloads) to stress-test Nextcloud. |
- Docker Desktop installed and running
- Git
- Python 3.10+ (for Locust task editing)
# Clone the repository
git clone https://github.com/<your-username>/CloudProject.git
cd CloudProject
# Start PowerShell as Administrator
Win + X → “Windows PowerShell (Admin)”
# Activate virtual environment (optional)
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass -Force
.\.venv\Scripts\activate
# Start Docker Engine
Start-Process "C:\Program Files\Docker\Docker\Docker Desktop.exe"
# Check compose file status
docker compose --env-file .\env\.env ps# Build and start all services
docker compose --env-file .\env\.env up -d| Service | URL | Description |
|---|---|---|
| Nextcloud | http://localhost:8080 | Cloud storage web app |
| Prometheus | http://localhost:9090 | Metrics database |
| Grafana | http://localhost:3000 | Visualization dashboards |
| Locust | http://localhost:8089 | Load testing UI |
| Nextcloud Exporter Metrics | http://localhost:9205/metrics | Raw Prometheus metrics |
- Open http://localhost:8089.
- Set:
- Number of users: e.g. 10
- Spawn rate: e.g. 2
- Host: http://nextcloud
- Click Start Swarming.
- Observe metrics in Grafana and Prometheus.
To shut down Docker, run the command:
docker compose downTo remove all persisted data:
docker compose down -v