Skip to content

Host the always-on public demo on AWS EC2 - #58

Merged
professor3333 merged 2 commits into
mainfrom
deploy/aws-vm
Oct 20, 2026
Merged

professor3333 merged 2 commits into
mainfrom
deploy/aws-vm

Conversation

@professor3333

Copy link
Copy Markdown
Owner

The public demo now runs at https://44.222.11.189.sslip.io on an AWS EC2 t4g.small (us-east-1), paid from the account's Free-plan credit until the plan ends on 2027-03-22.

  • scripts/deploy_oracle.py → scripts/deploy_vm.py, deploy/oracle/ → deploy/vm/: works on any Ubuntu 24.04 VM. The bootstrap adds 4 GB of swap on small VMs and opens the host firewall only when the image rejects by default (Oracle's), since the old fixed iptables -I INPUT 6 fails on a near-empty chain.
  • Deployed from this branch's first commit: all release smoke checks passed, /readyz reports the expected model with public_demo=true, /metrics is 404 publicly. First deploy took 803 s.
  • Measured on the VM with CPU credits available: p50 2.41 s, p95 7.01 s, max 9.76 s (100 dev texts ≤ 500 words, concurrency 1). Slower than the 3 s gate, which is defined for a 4-vCPU host; documented as such.
  • Standard CPU credits (throttle instead of billing extra); a $25 gross-usage budget alerts at 80%; SSH is limited to the owner's address.

The Oracle-only host firewall step now runs only when the image rejects
by default, and small VMs get 4 GB of swap for the image build. The
script and bootstrap move to scripts/deploy_vm.py and deploy/vm/.
The demo runs on a t4g.small until the account's Free plan ends on
2027-03-22. The deployment guide records its sizing, budget, first
deploy time, CPU-credit behaviour, measured latency and how to stop it;
the README links it and marks Phase 6 done.
@professor3333
professor3333 merged commit 38a8122 into main Oct 20, 2026
1 check passed
@professor3333
professor3333 deleted the deploy/aws-vm branch October 20, 2026 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant