[英]How do I figure out what AWS RDS instance does my Django application need?
I was wondering what AWS RDS instance does my Django application need.我想知道我的 Django 应用程序需要什么 AWS RDS 实例。 How does one figure that out?怎么弄明白的? What kind of benchmarks should my Django application have to be suited for T3 or M5?我的 Django 应用程序必须适合 T3 或 M5 什么样的基准?
In the essence of the question, I want to find out how to figure out what kind of instance would be suited for my application.在问题的本质上,我想找出如何找出适合我的应用程序的实例。
The advantage of RDS is that you can start small and then up-size any time by either scaling vertically and horizontal: RDS 的优势在于您可以从小处着手,然后随时通过垂直和水平缩放来扩大规模:
Subsequently, you can start with small db instance type, and when you decide that it is too small, you can upgrade it to larger type.随后,您可以从小型数据库实例类型开始,当您认为它太小时,您可以将其升级为更大的类型。 A decision on when to upgrade is commonly done based on RDS metrics :通常根据RDS 指标决定何时升级:
Making better decisions about Amazon RDS with Amazon CloudWatch metrics 使用 Amazon CloudWatch 指标制定有关 Amazon RDS 的更好决策
The alternative is to use Aurora Serverless .另一种方法是使用Aurora Serverless 。 The reason is that one of its use-cases is:原因是它的用例之一是:
You are deploying a new application and are unsure about which instance size you need.您正在部署一个新应用程序并且不确定您需要哪种实例大小。 With Aurora Serverless, you can create a database endpoint and have the database autoscale to the capacity requirements of your application.借助 Aurora Serverless,您可以创建数据库终端节点并让数据库自动扩展以满足应用程序的容量要求。
Depends on your project.取决于你的项目。 You can start with the basic free-tier db t2-micro and later scale up if needed.您可以从基本的免费层 db t2-micro 开始,然后根据需要进行扩展。 Generally you will be contacted by the customer support asking about the necessities.通常,客户支持会与您联系,询问必需品。 According to the source , the databases and its uses:根据来源,数据库及其用途:
T2: for workloads that require burstable performance capacity
M4: for general-purpose database workloads
R3: for memory-intensive workloads, like in-memory functions, big data analysis, etc.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.