05-03-2023, 08:30 PM
(03-03-2023, 03:43 PM)Tucix Wrote: Ok Thanks...so in fact you don't recommend to change 'instance type' the AMI (by chossing another more powerful CPU for instance), because this will lead to outage inevitably.
(in addition we should delete the instance, copy the data before etc etc etc ...)
It seems indeed to be very straightforward to implement !
So in practice, it is never implemented in AWS,
You can stop the instance, modify the size of the instance and start it back up without needing to change AMI or copy data etc. However this takes a few minutes to complete and that is downtime hence not recommended for live production applications. But it's fine for when you are testing things to find the right size of instance you need for your application.
For scaling, it's always recommended to increase number of instances instead of increasing size of instance.