AWS lightsail instance crashing / rebooting

0

Hi all,

I am testing AWS lightsail as a platform to run lengthy script optimisations (sever 2GB RAM, 60GB SSD, 2 CPU). However relatively frequently the instance crashes or reboots and I loose all of the progress on the optimisation. Looking at the task manager, I am using almost all of the available processing power but presumably this should just adjust the optimisation to prevent the hardware from crashing?

Does anyone know why this would be happening? Is it mandatory for me to log in regularly to keep the instance active? I am getting the impression that the VPS service provided by AWS is not very stable or reliable. Which is surprising given the reputation of AWS. Are there setting that I need to adjust?

Thank you,

已提问 8 个月前347 查看次数
3 回答
1
已接受的回答

Hello.

Lightsail bursts to temporarily increase processing performance when CPU usage is high.
To burst, use something called burst credits.
I predict that when the burst credits are used up, Lightsail will stop because the CPU will be limited to the baseline throughput.
https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-viewing-instance-burst-capacity

You may want to check CPU usage and burst credits metrics when Lightsail is crashing.
Also, I thought that Lightsail was not very suitable for running large scripts.
For example, if you are accustomed to using containers, you may be able to use ECS or AWS Batch.
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/Welcome.html
https://docs.aws.amazon.com/batch/latest/userguide/what-is-batch.html

profile picture
专家
已回答 8 个月前
1

It sounds like you are exceeding the sustainable CPU load for prolonged periods of time, leading to throttling. Please check this guidance on viewing your instance burst capacity. https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-viewing-instance-burst-capacity

Once you verify your usage vs. burst capacity you can consider your options.

AWS
审核人员
已回答 8 个月前
0

Hi both,

Thank you for your answers I will take a look at the CPU usage and proceed accordingly.

Thanks,

Sacha

已回答 8 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则