AWS Estimating Costs and Cost Charts (Alpha)
This document explains how to estimate your costs. For a full description on:
- How do costs work for Hubs Cloud?
- Minimizing costs - Recommended user story
- Minimizing costs - Settings in stack template
See our Costs and Minimizing Costs Information page.
Disclaimer for Estimating Costsβ
Estimating costs is difficult because AWS bills by resource usage and everyone uses Hubs differently. Below are estimates from our tests and should not be used as a source of truth for your AWS Hubs Cloud costs.
Are these estimates within range for you? Accuracy Assessment Hubs Cloud AWS Cost Charts
Accurately Predict Future Costs - AWS Cost Explorerβ
For the most accurate way to see previous costs to predict your future costs enable:
Estimate your Event Costβ
Read the Recommended User Story in Minimizing Costs Page first, to understand this calculation better.
Rough Calculation for Estimating Costsβ
Are these estimates within range for you? Accuracy Assessment Hubs Cloud AWS Cost Charts
- # of servers = Personal (1 server), Enterprise multi-server (varies, 2 app x 2 stream = 4 servers)
- # Hours in state expected to be in estimated Scalar state
- Cost for EC2 (US\$/hr) see below estimate cost charts (alpha)
- SCALAR Roughly estimate costs of running other services like RDS, EFS, and Data transfer costs.
- 5x - roughly TOP ACTIVE CAPACITY, estimate a hard upper bound and heavy other service use: top CCU capacity, streaming videos, large scenes, avatars moving and talking.
- 4x - AVERAGE USE for other service: no videos, some people connected
- 2x, 3x - ACTIVE, a few people are connected, setting up development environment or creating scenes
- 2x - ONLINE, NOT ACTIVE, database pausing is off
- 1.2x - ONLINE, NOT ACTIVE, not connected and database pausing is on
- ~ 0x - Offline mode, paying only for scene, avatar assets and backups
- To understand these states, read Recommended User Story in Minimizing Costs Page
- Use AWS's cost explorer to estimate previous costs for future ones.
THE FORMULAβ
Estimate for stack state (\$) = # Hours in state x Cost for EC2 (US\$/hr) x # of servers x SCALAR (#)
Hubs Cloud Cost Rough Estimateβ
- Base cost (easier to estimate) = Setup Cost + Off-time (Scaled down "Online Not Active" or "Offline")
- Min Total Event Cost = Min Top Capacity Est. + Base cost
- Max Total Event Cost = Max Top Capacity Estimated + Base cost
EXAMPLE COST ESTIMATEβ
Event with expected 500 CCU for 4 hours for 2 days. Cost charts estimate an Enterprise 2x2 c5.xlarge instance is sufficient.
Calculate Top Capacity Min to Max Range
- Minimum Top Capacity Est. (~ \$103.68) = (4hrs x 2days) x (\$1.08 - c5.xlarge) x (4 - Enterprise 2x2) x 3 SCALAR
- 3x SCALAR reasoning - people will be connected, with a few streaming videos in rooms
- Max Top Capacity Est. (~ \$172.80) = (4hrs x 2days) x (\$1.08 - c5.xlarge) x (4 - Enterprise 2x2) x 5 SCALAR
- 5x SCALAR reasoning - upper bound for costs just in case
- Minimum Top Capacity Est. (~ \$103.68) = (4hrs x 2days) x (\$1.08 - c5.xlarge) x (4 - Enterprise 2x2) x 3 SCALAR
Off-time, I'm putting the instance in offline mode.
- ~$0 - ~$10 for storing backups
- If you want the instance to be online, do THE FORMULA calculation for a different instance size. Use x1.2 SCALAR for database pausing and x2 SCALAR for database pausing off.
During setup/development, I use the t3.medium. I need to create scenes + deploy a custom client. I estimate that will take me an active 16 hours.
- Development cost (~ $43) = (16 hrs) x ($0.224 - t3.medium) x (4 - Enterprise 2x2) x 3 (reasoning, upper bound for costs just in case)
EXAMPLE TOTAL COST ESTIMATEβ
- Base cost = (Setup = \$43) + (Off-time = ~ \$0) = ~ \$43
- Min Total Event Cost = (Min Top Capacity Est. = ~ \$103.68) + (Base cost = ~ \$43) = ~ \$146.68
- Max Total Event Cost = (Max Top Capacity Est. = ~ \$172.80) + (Base cost = ~ \$43) = ~ \$216.80
Rough HC Cost Range for Example Event = ~ \$146.68 - ~ \$216.80
Minimize # Hours at top Capacity to Minimize Costβ
If you are diligent with decreasing the # of hours at top capacity, outlined in the minimizing costs user story, your event costs can be extremely low especially when comparing an in-person event:
- Scale the EC2 instance down during lower traffic
- Turn on offline mode (costs are extremely minimal because the EC2 costs + RDS costs + EFS costs are down and you're only storing backups)
- Enable database pausing
- Use Cloudflare for content CDN - not recommended if you're streaming videos
- Read more about these settings in minimizing costs user story
EC2 Server Type Recommendationsβ
See Cost Charts BELOW to factor costs with the recommendations.
t3.medium is recommended for development/setup with only a few users connecting + setting rooms + scenes.
Note: This does not exclude the t3.small, see what works for you. Scale the server type up or down ad hoc via updating the stack.
c4.large is recommended for during an event.
Note: This does not exclude any other instances types, see what works for you. Scale the server type up or down ad hoc based on performance via updating the stack.
We do not recommend using a t3.micro because of low memory.
Why Enterprise 2 app x 2 stream?β
We recommend using an Enterprise 2x2 multi-server setup to optimize for resiliency. If one server goes down suddenly, the other will take its place without your users noticing.
Scale vertically before scaling horizontally. Horizontal scaling can result in running out of Let's Encrypt Certificates between servers (we've seen this for 12x12 builds).
For very large events 4x4 and 8x8 Enterprise multiserver stacks are recommended.
Estimate Costs Charts (Alpha)β
How to read and use Cost Charts (Alpha)β
- CCU is the concurrent users connected on an instance.
- vCPU (#) is defined by the EC2 Server Type see Amazon EC2 Instance Types Documentation.
- CCU Min - Max CCU for active avatars (lot of avatar movement, talking, at a meetup, etc.)
- CCU Max - Max CCU for mostly inactive avatars (only watching a video, 1 avatar speaking)
- Cost for EC2 (US\$/hr) - Cost per hour for running the EC2 instance type in us-east-1 (N. Virginia).
- Note: t3.micro, t3.small, t3.medium have smaller CCU/vCPU because of past performance experience and lower memory.
Below are our CCU estimates for best performance. Performance may vary depending on client power: high power devices (Desktop/VR) vs. low power devices (Mobile).
Use the Rough calculation section to get estimates.
To see how vCPU to CCU Min/Max was estimated see AWS Estimated CCU Limits.
Estimating Personal / Enterprise Costs with 1 serverβ
How to read and use Alpha Cost Charts
EC2 Server Type | vCPU (#) | CCU Min | CCU Max | Cost for EC2 (US\$/hr) |
---|---|---|---|---|
t3.micro NOT recommended | 2 | N/A | N/A | \$0.024 |
t3.small | 2 | 10 | 20 | \$0.035 |
t3.medium | 2 | 20 | 40 | \$0.056 |
t3.large | 2 | 40 | 80 | \$0.183 |
t3.xlarge | 4 | 80 | 160 | \$0.266 |
t3.2xlarge | 8 | 160 | 320 | \$0.433 |
c4.large | 2 | 40 | 80 | \$0.200 |
c5.large | 2 | 40 | 80 | \$0.185 |
c5.xlarge | 4 | 80 | 160 | \$0.270 |
c5.2xlarge | 8 | 160 | 320 | \$0.440 |
c5.4xlarge | 16 | 320 | 640 | \$0.780 |
c5.9xlarge | 36 | 720 | 1,440 | \$1.630 |
c5.12xlarge | 48 | 960 | 1,920 | \$2.140 |
c5.18xlarge | 72 | 1,440 | 2,880 | \$3.160 |
c5.24xlarge | 96 | 1,920 | 3,840 | \$4.180 |
Estimating Enterprise Costs for 4 serversβ
2 app x 2 streaming servers recommended for best performance. Why?
How to read and use Alpha Cost Charts
EC2 Server Type | Total vCPU (#) | Min CCU | Max CCU | Cost for EC2 (US\$/hr) |
---|---|---|---|---|
t3.micro NOT recommended | 8 | N/A | N/A | \$0.096 |
t3.small | 8 | 80 | 160 | \$0.140 |
t3.medium | 8 | 80 | 160 | \$0.224 |
t3.large | 8 | 240 | 400 | \$0.732 |
t3.xlarge | 16 | 480 | 800 | \$1.064 |
t3.2xlarge | 32 | 960 | 1,600 | \$1.732 |
c4.large | 8 | 240 | 400 | \$0.800 |
c5.large | 8 | 240 | 400 | \$0.740 |
c5.xlarge | 16 | 480 | 800 | \$1.080 |
c5.2xlarge | 32 | 960 | 1,600 | \$1.760 |
c5.4xlarge | 64 | 1,920 | 3,200 | \$3.120 |
c5.9xlarge | 144 | 4,320 | 7,200 | \$6.520 |
c5.12xlarge | 192 | 5,760 | 9,600 | \$8.560 |
c5.18xlarge | 288 | 8,640 | 14,400 | \$12.640 |
c5.24xlarge | 384 | 11,520 | 19,200 | \$16.720 |
Are these estimates within range for you?β
Tell us here: Accuracy Assessment Hubs Cloud AWS Cost Charts