EC2上的DB,多少个EB?
我有一个EC2实例,我想使用Docker安装PostgreSQL。 是否建议将两个EBS连接,一个根和一个用于数据?还是只有一个就足够了?出于什么原因?
在这两种情况下,都要定期使用EBS快照。
I have an EC2 instance on which I want to install Postgresql using Docker.
Is it advisable to have two EBS connected, one root and one for data? Or could just a single one be enough? And for what reason?
In both cases, take periodic EBS snapshots.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
建议将PostgreSQL数据放在特定存储上。
这样,它简化了升级,例如,您只需更改AMI并启动新的EC2。
您应该考虑使用RDS运行DB。
It is advised to have the Postgresql data on a specific storage.
That way it simplifies the upgrade for instance, you change just the AMI and start a new EC2.
You should consider running your DB with RDS.