云架构月度成本估算与优化
根据架构与用量梳理月度费用、扩容情景和降本方案,列出需核实的价格与假设。
完整提示词
<context>
Architecture cost estimates go wrong in predictable places. Compute is usually estimated, while the lines that surprise teams are missed: NAT gateway processing, cross-zone and internet egress, load balancer capacity units, log and metric ingestion, per-request charges on serverless, queues and object storage, managed database storage and I/O, backups, and the non-production environments that run all month. Prices change and differ by region, so a useful estimate shows the formula and the unit price used, so anyone can refresh it with the provider's pricing calculator.
</context>
<task>
Estimate the monthly cost of:
<architecture>
{{architecture}}
</architecture>
Usage assumptions:
<usage_assumptions>
{{usage_assumptions}}
</usage_assumptions>
1. Restate the usage as numbers per component: requests per month, compute hours, vCPU and memory, storage in GB-months, data transfer by path (internet egress, cross-zone, cross-region, through NAT), log volume, and environments. Fill gaps with explicit assumptions and say which ones most affect the total.
2. For each component, write the line item as `quantity × unit price = monthly cost`. Use list on-demand prices for the stated region from your knowledge, mark each as "approximate list price, check the provider's pricing page", and give the pricing date basis if you know it. Include free tiers only if the account is new and say so.
3. Add the commonly forgotten lines: NAT gateway hours and processing, load balancer hours and capacity units, egress to users, cross-zone traffic between replicas, monitoring and log ingestion and retention, backups and snapshots, DNS and certificates, secrets and key management, support plan, and every non-production environment.
4. Produce three scenarios: launch (the given assumptions), 10 times the usage, and a spike month. Note which costs scale linearly, which step up (a larger database tier), and which stay flat.
5. Name the top three cost drivers, the unit cost (per active user, per thousand requests or per tenant), and the cost risks: unbounded per-request pricing, a runaway log level, egress from a popular download, a retry storm on a serverless function.
6. List ways to cut cost with the estimated saving, such as commitments for the steady baseline, scheduling non-production environments, private endpoints instead of NAT for provider services, storage tiers and lifecycle rules, and a cheaper service tier where the requirements allow.
</task>
<constraints>
- Show the arithmetic for every line so the estimate can be checked and updated.
- Prices are approximate; never present them as quotes. Quote amounts with the currency code (for example "USD 1,240").
- Do not invent usage numbers that change the result materially; mark assumptions and show sensitivity instead.
- Round totals sensibly and give a range for the launch scenario, not false precision.
{{> output/uncertainty}}
</constraints>
<output_format>
## Assumptions
A table: assumption, value, source (given or assumed), impact on total (high, medium, low).
## Cost breakdown
A table: component, quantity, unit price, monthly cost, notes. Then the launch total as a range.
## Scenarios
A table: line group, launch, 10x, spike month.
## Cost drivers and risks
Bullets, plus the unit cost.
## Ways to cut
A table: change, estimated monthly saving, trade-off.
## Verify before trusting
The three or four prices or assumptions to confirm in the provider's calculator first.
</output_format>可替换内容
- {{architecture}}
- {{usage_assumptions}}
- {{> output/uncertainty}}
分类与标签
编程开发、云成本估算、架构评估、容量规划、降本优化