How to setup Ec2 for MongoDB so that RAM and storage will automatically increase based on their requirement?

313 Views Asked by At

I have a MongoDB in AWS Ec2 Instance and want to automatically increase RAM and storage size. I search various documents and blogs, some said, use MongoAtlas or use vertical Ec2 Autoscaling. But my question is how to setup Ec2 for MongoDB so that RAM and storage will automatically grow based on their requirement?

Please suggest to me, how to handle this?

Does anyone know how to set based on the above requirement?

1

There are 1 best solutions below

1
On

Neither EC2 nor Atlas have the ability to automatically resize a particular database instance.

There is no such thing as "vertical ec2 autoscaling". The autoscaling that ec2 provides is horizontal - it will launch more (identical) machines for you based on defined criteria.

In both ec2 and atlas you can choose the instance size. But an instance won't be resized automatically.