简体   繁体   English

如何确定我的 Django 应用程序需要什么 AWS RDS 实例?

[英]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 指标决定何时升级:

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.

相关问题 当我将Django应用程序从一个系统复制到另一个系统时,如何确定要安装哪些依赖项? - How do I figure out what dependencies to install when I copy my Django app from one system to another? Django-如何确定django正在记录哪个模块? - Django - How do I figure out what module is being logged by django? 迁移我的 AWS RDS 数据库 (django) 的最佳方式是什么? - What is the best way to migrate my AWS RDS database (django)? 在Django中,当我不知道在哪里设置跟踪时,如何触发pdb找出导致404错误的原因? - In Django, how do I trigger pdb to figure out what's causing a 404 when I don't know where to set a trace? Django aws 算出我的网站可以处理多少当前流量? - Django aws figure out how much current traffic my site can handle? 我如何知道何时增加 RDS 实例的大小。 在 Django 中使用 Postgres - How will I know when to increase the size of my RDS instance. Using Postgres with django 我需要装饰师的请求,但我无法弄清楚如何在那里得到它 - I need the request in my decorator but I can't figure out how to get it in there 在django网站中运行Sentry需要什么? - What do I need to run Sentry inside my django site Django / Python API-如何确定方法期望接收的对象类? - Django/Python API - how can I figure out what class of object a method is expecting to receive? django是否已经附带了wsgi应用程序文件,还是需要创建一个? 如何使用django设置apache和mod_wsgi? - Does django already come with a wsgi application file, or do I need to create one? How to setup apache and mod_wsgi with django?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM