简体   繁体   English

在AWS Elastic Beanstalk Multidocker容器上使用数据库容器或RDS数据库

[英]Use database container or RDS database on AWS Elastic Beanstalk Multidocker containers

I am very new to Elastic Beanstalk Multidocker containers, I want something to be clarified. 我是Elastic Beanstalk Multidocker容器的新手,我想要澄清一些事情。

Scenario : In my development environment, I have 3 docker containers - PHP , Nginx and MySQL containers. 场景 :在我的开发环境中,我有3个docker容器 - PHPNginxMySQL容器。

Question: When deploying my project to AWS Elastic Beanstalk , should I deploy my project including MySQL container (Seems easier?), or should I create a new RDS database on AWS? 问题:在将项目部署到AWS Elastic Beanstalk时 ,是否应该部署包含MySQL容器的项目(似乎更容易?),还是应该在AWS上创建新的RDS数据库? What's the proper way to do it? 这样做的正确方法是什么?

You should probably use the RDS instance instead of a MySQL container. 您应该使用RDS实例而不是MySQL容器。 Database scaling, redundancy and backups can be tricky. 数据库扩展,冗余和备份可能很棘手。 RDS does that heavy lifting for you. RDS为您做了那么重的事。 The database is the crown jewel of your stack; 数据库是你堆栈的皇冠上的明珠; unless you're a DBA with experience, I would advise to steer clear of managing a database cluster yourself. 除非你是一名有经验的DBA,否则我建议你不要自己管理数据库集群。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 与RDS建立数据库连接错误AWS Elastic Beanstalk - Error Establishing Database Connection AWS Elastic Beanstalk with RDS 如何使用外部 RDS 数据库在 AWS Elastic Beanstalk 中设置 Laravel 应用程序 - How to setup Laravel application in AWS Elastic Beanstalk using external RDS database 使用beantalk和PHP连接到AWS RDS数据库 - Connecting to AWS RDS database using beanstalk and PHP 带有RDS和Elastic Beanstalk的phpMyAdmin - phpMyAdmin with RDS & Elastic Beanstalk 使用rds db实例在aws弹性beanstalk中托管laravel应用程序 - hosting a laravel application in aws elastic beanstalk with rds db instance 如何在 AWS Elastic Beanstalk Docker 容器中记录 PHP 错误 - How to log PHP errors in an AWS Elastic Beanstalk Docker container 带有 AWS Elastic Beanstalk 的 Laravel 5.2 中的会话不适用于 SESSION_DRIVER 作为 cookie、文件或数据库 - Session in Laravel 5.2 with AWS Elastic Beanstalk doesn't work with SESSION_DRIVER as cookie, file or database AWS Elastic Beanstalk 部署 - AWS Elastic Beanstalk Deployment PHP-如何在不重启rds的情况下将aws.push混入弹性beantalk? - PHP - How can I git aws.push to elastic beanstalk without restarting rds? Laravel和AWS RDS迁移无法连接数据库 - Laravel And AWS RDS Migration Cannot Connect Database
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM