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,

gefragt vor 8 Monaten347 Aufrufe
3 Antworten
1
Akzeptierte Antwort

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
EXPERTE
beantwortet vor 8 Monaten
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
MODERATOR
beantwortet vor 8 Monaten
0

Hi both,

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

Thanks,

Sacha

beantwortet vor 8 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen