You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/architecture.md
+31-53Lines changed: 31 additions & 53 deletions
Original file line number
Diff line number
Diff line change
@@ -20,69 +20,47 @@ EMD deploys models to AWS using a simple three-step process:
20
20
21
21
EMD handles all IAM permissions and security configurations automatically.
22
22
23
-
## Cost Considerations
23
+
## Model Deployment Cost Estimation
24
24
25
-
EMD uses pay-as-you-go AWS services with costs varying based on your deployment choices:
25
+
EMD leverages several AWS services to deploy models. Below is an estimated cost breakdown for deploying a single model (assuming a 5GB model file and 10-minute CodeBuild execution).
26
26
27
-
### Compute Resources (Primary Cost)
27
+
### US East (N. Virginia) Region Cost Estimation
28
28
29
-
| Service | Instance Type | Approx. Cost (US East) | Notes |
|**S3 Storage**| 5GB model file | $0.00/month | $0.023 per GB-month for standard storage. Free tier includes 5GB of S3 standard storage for 12 months |
32
+
|**CodeBuild**| BUILD_GENERAL1_LARGE for 10 minutes | $0.10 | $0.005 per build-minute |
33
+
|**CodePipeline**| 1 pipeline execution | $0.00 | First pipeline is free, then $1.00 per active pipeline/month |
34
+
|**CloudFormation**| Stack creation | $0.00 | No charge for CloudFormation service |
35
+
|**ECR**|~2GB Docker image | $0.10/month | $0.10 per GB-month for private repository storage |
|**S3 Storage**| 5GB model file | ¥0.00/month | ¥0.21 per GB-month for standard storage. Free tier includes 5GB of S3 standard storage for 12 months (verify availability in China regions) |
50
+
|**CodeBuild**| BUILD_GENERAL1_LARGE for 10 minutes | ¥0.80 | ¥0.08 per build-minute |
51
+
|**CodePipeline**| 1 pipeline execution | ¥0.00 | First pipeline is free, then ¥7.00 per active pipeline/month |
52
+
|**CloudFormation**| Stack creation | ¥0.00 | No charge for CloudFormation service |
53
+
|**ECR**|~2GB Docker image | ¥0.84/month | ¥0.42 per GB-month for private repository storage |
-**ECS**: Fargate or EC2 costs for container hosting
61
+
-**Secrets Manager**: ¥3.36/month for API key storage
59
62
60
-
| Service | Component | Approx. Cost | Notes |
61
-
|---------|-----------|--------------|-------|
62
-
| CodeBuild | BUILD_GENERAL1_LARGE | $0.10/minute | Used during model building phase |
63
-
| CodePipeline | Pipeline Execution | $1.00/pipeline/month | Plus $0.01 per pipeline execution |
64
-
65
-
### Cost Optimization Strategies
66
-
67
-
1.**Right-size your instances**:
68
-
* Match instance type to your model's memory and compute requirements
69
-
* Consider CPU-only instances for smaller models
70
-
71
-
2.**Use auto-scaling**:
72
-
* Set appropriate min/max capacity values
73
-
* Configure scale-in periods during low usage times
74
-
75
-
3.**Implement lifecycle policies**:
76
-
* Clean up unused ECR images
77
-
* Remove old model artifacts from S3
78
-
79
-
4.**Consider Spot instances**:
80
-
* Use EC2 Spot instances for non-critical workloads
81
-
* Can reduce costs by up to 70% compared to On-Demand pricing
82
-
83
-
5.**Monitor and analyze costs**:
84
-
* Use AWS Cost Explorer to identify cost drivers
85
-
* Set up AWS Budgets to alert on unexpected spending
63
+
> **Note**: All prices are estimates as of 2024. Actual costs may vary based on your specific AWS region, usage patterns, and any applicable discounts. We recommend using AWS Cost Explorer to monitor and forecast your actual costs.
0 commit comments