AutoScaling in EC2onDB

0

we recently adopt AutoScaling in our project. But for billing issue, we dont use RDS only use EC2onDB so there's lots of tutorial with rds, but there's no example for EC2onDB. is it Okay when scale-out and db is also double(such as data integrity)

1回答
1

Hello.

In the case of EC2 on DB, data disappears when you scale in or scale out with AutoScaling.
An error will occur because consistency will no longer be maintained.
When managing databases with EC2, we do not recommend managing them with AutoScaling groups.

https://aws.amazon.com/ec2/autoscaling/faqs/?nc1=h_ls

Q: What does the term “stateful instances” refer to?
When we refer to a stateful instance, we mean an instance that has data on it, which exists only on that instance. In general, terminating a stateful instance means that the data (or state information) on the instance is lost. You may want to consider using lifecycle hooks to copy the data off of a stateful instance before it’s terminated, or enable instance protection to prevent Amazon EC2 Auto Scaling from terminating it.

profile picture
エキスパート
回答済み 6ヶ月前
profile pictureAWS
エキスパート
レビュー済み 6ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ