| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Bash spike to measure EC2 deployment speed. Goal: learn where time goes, apply to brownfield backend.
The ~16s Pending→Running phase is fixed AWS infrastructure overhead. It cannot be reduced by:
The only way to achieve <10s startup is warm pools with running instances.
| Technique | Time | vs Baseline |
|---|---|---|
| Cold launch | 25.8s | baseline |
| Stop/start | 21.2s | -18% |
| Hibernate | 20.7s | -20% |
| Minimal AMI | 28.8s | +12% (slower!) |
| Warm pool (EIC) | 3.9s | -85% |
| Warm pool (SSH) | 1.9s | -92% |
# 1. Setup AWS resources
./scripts/setup-security-group.sh
./scripts/setup-keypair.sh
# 2. Run baseline benchmark
./bench/cold.sh ~/.ssh/instant-env-admin.pem
# 3. Run warm pool benchmark (production approach)
./bench/warm-pool-eic.sh
# 4. Cleanup when done
./scripts/cleanup-all.shT0 Script starts │ ├─ aws ec2 run-instances │ T1 Instance ID returned (~5s) │ ├─ aws ec2 wait instance-running │ T2 State = "running" (~18s) ← THE BOTTLENECK │ ├─ nc -z (TCP probe) │ T3 TCP port 22 open │ ├─ ssh (auth handshake) │ T4 SSH auth success (~3s) Cold Total = ~26s Warm Pool = ~4s (skips T0→T2)
For production: Use EC2 Instance Connect with warm pools
| Back | FazBrowse Home | New Git URL |