Files
proxmox/docs/archive/DEPLOYMENT_QUICK_REFERENCE.md

152 lines
3.0 KiB
Markdown

# Deployment Quick Reference
Quick reference guide for both deployment methods.
## Deployment 1: LXC Containers (1000-2502)
### Quick Facts
| Item | Value |
|------|-------|
| **Total Containers** | 12 |
| **VMID Range** | 1000-2502 |
| **Deployment Time** | 30-45 minutes |
| **Production Ready** | ✅ Yes |
### Container Breakdown
```
Validators: 1000-1004 (5 nodes) → 192.168.11.100-104
Sentries: 1500-1503 (4 nodes) → 192.168.11.150-153
RPC Nodes: 2500-2502 (3 nodes) → 192.168.11.250-252
```
### Quick Commands
```bash
# Deploy
cd /opt/smom-dbis-138-proxmox
sudo ./scripts/deployment/deploy-besu-nodes.sh
# Start services
for vmid in 1000 1001 1002 1003 1004; do
pct exec $vmid -- systemctl start besu-validator
done
for vmid in 1500 1501 1502 1503; do
pct exec $vmid -- systemctl start besu-sentry
done
for vmid in 2500 2501 2502; do
pct exec $vmid -- systemctl start besu-rpc
done
# Check status
pct exec 1000 -- systemctl status besu-validator
pct list | grep -E "1000|1500|2500"
# View logs
pct exec 1000 -- journalctl -u besu-validator -f
```
---
## Deployment 2: Single VM (9000)
### Quick Facts
| Item | Value |
|------|-------|
| **VMID** | 9000 |
| **IP Address** | 192.168.11.90 |
| **Docker Containers** | 12 (5 validators + 4 sentries + 3 RPC) |
| **Deployment Time** | 15-30 minutes |
| **Production Ready** | ❌ No (temporary) |
### Container Breakdown
```
5 Validators: besu-validator-1 through besu-validator-5
4 Sentries: besu-sentry-1 through besu-sentry-4
3 RPC Nodes: besu-rpc-1 through besu-rpc-3
```
All containers in single VM at 192.168.11.90
### Quick Commands
```bash
# Deploy
cd /opt/smom-dbis-138-proxmox
sudo ./scripts/deployment/deploy-besu-temp-vm-complete.sh /opt/smom-dbis-138
# SSH into VM
ssh root@192.168.11.90
# Start/stop containers
cd /opt/besu
docker compose up -d
docker compose stop
docker compose restart
# Check status
docker compose ps
docker stats
# View logs
docker compose logs -f
docker compose logs -f besu-validator-1
```
### RPC Endpoints
- RPC-1: `http://192.168.11.90:8545`
- RPC-2: `http://192.168.11.90:8547`
- RPC-3: `http://192.168.11.90:8549`
---
## Comparison Matrix
| Feature | LXC (1000-2502) | VM (9000) |
|---------|----------------|-----------|
| Containers/VMs | 12 LXC | 1 VM + 12 Docker |
| Memory | 104GB total | 32GB shared |
| CPU Cores | 40 total | 8 shared |
| Disk | 1.5TB total | 500GB shared |
| Isolation | High | Low |
| Production | ✅ Yes | ❌ No |
| Deploy Time | 30-45 min | 15-30 min |
---
## When to Use Which?
**Use LXC (1000-2502)** for:
- Production
- Long-term deployment
- Need isolation
- Individual scaling
**Use VM (9000)** for:
- Testing/development
- Quick validation
- Limited resources
- Temporary setup
---
## Migration
```bash
# Migrate from VM (9000) to LXC (1000-2502)
sudo ./scripts/deployment/deploy-besu-nodes.sh
sudo ./scripts/migration/migrate-vm-to-lxc.sh /opt/smom-dbis-138
qm stop 9000
```
---
For detailed information, see [DEPLOYMENT_COMPARISON.md](DEPLOYMENT_COMPARISON.md)