# DBIS Core - VMID and Container Summary

## Quick Reference

### VMID Allocation

| Service | VMID | Hostname | IP Address |
|---------|------|----------|------------|
| **PostgreSQL Primary** | 10100 | dbis-postgres-primary | 192.168.11.105 |
| **PostgreSQL Replica** | 10101 | dbis-postgres-replica-1 | 192.168.11.106 |
| **Redis Cache** | 10120 | dbis-redis | 192.168.11.125 |
| **Backend API Primary** | 10150 | dbis-api-primary | 192.168.11.155 |
| **Backend API Secondary** | 10151 | dbis-api-secondary | 192.168.11.156 |
| **Frontend Admin Console** | 10130 | dbis-frontend | 192.168.11.130 |

### VMID Ranges

- **DBIS Core Services**: 10000-10099 (100 VMIDs)
- **Database**: 10100-10119 (20 VMIDs)
- **Cache**: 10120-10129 (10 VMIDs)
- **Frontend**: 10130-10149 (20 VMIDs)
- **API**: 10150-10199 (50 VMIDs)
- **Expansion**: 10200-13999 (3,800 VMIDs)

### Container Specifications

#### PostgreSQL (VMID 10100)
- Memory: 8 GB
- CPU: 4 cores
- Disk: 200 GB
- Port: 5432

#### Redis (VMID 10120)
- Memory: 4 GB
- CPU: 2 cores
- Disk: 50 GB
- Port: 6379

#### Backend API (VMID 10150, 10151)
- Memory: 8 GB each
- CPU: 4 cores each
- Disk: 100 GB each
- Port: 3000

#### Frontend (VMID 10130)
- Memory: 4 GB
- CPU: 2 cores
- Disk: 50 GB
- Ports: 80, 443

### Total Resources (HA Deployment)

- **Total Memory**: 32 GB
- **Total CPU Cores**: 18
- **Total Disk**: 500 GB

### Deployment Order

1. PostgreSQL Primary (10100)
2. PostgreSQL Replica (10101) - Optional
3. Redis (10120)
4. Backend API Primary (10150)
5. Backend API Secondary (10151)
6. Frontend (10130)

### Network Ports

| Service | Port | Protocol | Access |
|---------|------|----------|--------|
| PostgreSQL | 5432 | TCP | Internal only |
| Redis | 6379 | TCP | Internal only |
| Backend API | 3000 | TCP | Internal/LB |
| Frontend | 80, 443 | TCP | Public |

### Configuration Files

- Main Config: `config/dbis-core-proxmox.conf`
- Deployment Plan: `DEPLOYMENT_PLAN.md`

