# Optimized 240 vCPU Deployment - 24 Regions

## Overview

This deployment optimizes the use of 240 vCPUs across 24 regions, using exactly 10 vCPUs per region.

## Configuration

### Per-Region Resources (10 vCPUs)
- **System Nodes**: 3 × Standard_D2s_v3 = 6 vCPUs
- **Validator Nodes**: 1 × Standard_B2s = 2 vCPUs
- **Sentry Nodes**: 1 × Standard_B2s = 2 vCPUs
- **Total**: 10 vCPUs per region ✅

### Total Resources (24 Regions)
- **System Nodes**: 72 (3 × 24 regions) = 144 vCPUs
- **Validator Nodes**: 24 (1 × 24 regions) = 48 vCPUs
- **Sentry Nodes**: 24 (1 × 24 regions) = 48 vCPUs
- **Total**: 120 nodes, 240 vCPUs ✅

## Selected Regions

1. North Europe (northeurope)
2. UK South (uksouth)
3. UK West (ukwest)
4. France Central (francecentral)
5. Germany West Central (germanywestcentral)
6. Switzerland North (switzerlandnorth)
7. Italy North (italynorth)
8. Norway East (norwayeast)
9. Poland Central (polandcentral)
10. Spain Central (spaincentral)
11. Sweden Central (swedencentral)
12. Belgium Central (belgiumcentral)
13. Australia East (australiaeast)
14. Australia Southeast (australiasoutheast)
15. East Asia (eastasia)
16. Southeast Asia (southeastasia)
17. Central India (centralindia)
18. South India (southindia)
19. Japan East (japaneast)
20. Japan West (japanwest)
21. Korea Central (koreacentral)
22. Korea South (koreasouth)
23. Canada Central (canadacentral)
24. Canada East (canadaeast)

## Cost Analysis

### Per Region
- **System Nodes**: 3 × Standard_D2s_v3 = ~$210/month
- **Validator Nodes**: 1 × Standard_B2s = ~$15/month
- **Sentry Nodes**: 1 × Standard_B2s = ~$15/month
- **Total per Region**: ~$240/month

### Total (24 Regions)
- **System Nodes**: 72 × Standard_D2s_v3 = ~$5,040/month
- **Validator Nodes**: 24 × Standard_B2s = ~$360/month
- **Sentry Nodes**: 24 × Standard_B2s = ~$360/month
- **Total**: ~$5,760/month

## Network Architecture

### Validators (24)
- **Role**: Consensus and block production
- **Distribution**: 1 per region
- **Peering**: Via sentries only (private)
- **Consensus**: QBFT 2.0 (24 validators = 13 minimum for consensus)

### Sentries (24)
- **Role**: P2P relay and protection
- **Distribution**: 1 per region
- **Peering**: To validators and other sentries
- **Public Access**: Yes (P2P port 30303)

### System Nodes (72)
- **Role**: Kubernetes system workloads
- **Distribution**: 3 per region
- **Workloads**: Monitoring, logging, ingress, etc.

## Deployment Strategy

### Phase 1: Foundation (Complete)
- ✅ Cloud for Sovereignty foundation deployed
- ✅ Resource groups, VNets, Key Vaults created

### Phase 2: AKS Clusters
- Deploy AKS clusters in 24 regions
- 3 system nodes per cluster
- Total: 72 system nodes

### Phase 3: Validator Node Pools
- Deploy validator node pools in 24 regions
- 1 validator per region
- Total: 24 validator nodes

### Phase 4: Sentry Node Pools
- Deploy sentry node pools in 24 regions
- 1 sentry per region
- Total: 24 sentry nodes

### Phase 5: Besu Network
- Deploy Besu validators on validator nodes
- Deploy Besu sentries on sentry nodes
- Configure peering between regions
- Start consensus network

## Quota Requirements

### Per Region
- **Required**: 10 vCPUs
- **System**: 6 vCPUs (3 × Standard_D2s_v3)
- **Validators**: 2 vCPUs (1 × Standard_B2s)
- **Sentries**: 2 vCPUs (1 × Standard_B2s)

### Total
- **Required**: 240 vCPUs (24 × 10)
- **All regions selected have 10+ vCPUs available** ✅

## Benefits

1. **Full Quota Utilization**: Uses exactly 10 vCPUs per region (100% utilization)
2. **Global Distribution**: 24 regions across 4 continents
3. **High Availability**: 24 validators provide fault tolerance (13 minimum for consensus)
4. **Network Resilience**: Sentries provide P2P protection and redundancy
5. **Cost Optimized**: Uses cost-effective Standard_B2s for validators and sentries

## Monitoring

### Per-Region Monitoring
- Azure Monitor for each AKS cluster
- Prometheus for Besu metrics
- Grafana dashboards

### Global Monitoring
- Aggregate metrics across all 24 regions
- Cross-region network health monitoring
- Consensus participation tracking
- Alert on validator failures

## Next Steps

1. ✅ Configuration updated - Complete
2. ⏳ Verify quota availability in all 24 regions
3. ⏳ Deploy AKS clusters (72 system nodes)
4. ⏳ Deploy validator node pools (24 validators)
5. ⏳ Deploy sentry node pools (24 sentries)
6. ⏳ Deploy Besu network
7. ⏳ Configure cross-region peering
8. ⏳ Test consensus network
