As I understand, whenever you run a script consuming CPU/Memory on your LightSail server, you are not being able to SSH into the server, even when Burstable capacity is not entirely depleted.
First, please allow me to explain Burst performance baselines:
Performance baselines are per vCPU. The CPU utilization metric graph in the Lightsail console averages the CPU utilization and baseline for instances with more than one vCPU. For example, a Linux or Unix-based $40 USD/month instance has two vCPUs and an averaged CPU utilization baseline of 30%.
One vCPU operates at 50% and the other at 0%, a 25% averaged CPU utilization is displayed on the graph. This puts the instance's CPU utilization below its 30% baseline, and in the sustainable zone.
One vCPU operates at 30%, and the other at 20%, a 25% averaged CPU utilization is displayed on the graph. This puts the instance's CPU utilization below its 30% baseline, and in the sustainable zone.
One vCPU operates at 35% and the other at 25%, a 30% averaged CPU utilization is displayed on the graph. This puts the instance's CPU utilization at the 30% baseline.
One vCPU operates at 100% and the other at 90%, a 95% averaged CPU utilization is displayed on the graph. This puts the instance's CPU utilization above its 30% baseline, and in the burstable zone.
In order to understand per vCPU performance, we would need to investigate what is causing your instance to burst using tools like top on Linux/Unix instances, and Task Manager on Windows Server instances. In top, we can also check per vCPU consumption, determining the Burst baseline performance.
Next, there could be multiple reasons behind server becoming unreachable that we would need to dive deeper into. You would need need to share more details if you want help with this issue - Relevant log snippets with errors, what's happening when the instance crashes, any troubleshooting performed so far, exact configuration of the instance (since there are 2 LightSail instances offered with 2 vCPUs, and depending on the configuration, burst time will vary, etc. When you run the script, we would also need to check the Memory metrics from within the instance using utility like 'top', in order to understand whether memory is not being depleted.
Lastly, I would recommend opening up a case with us at AWS Premium Support for an AWS Engineer to check instance metrics live on screenshare when you run the script. Therefore, please open up a case with us and choose the Chat/Call option in order to investigate further.
cant ssh from linux kali to my lightsail ubuntuasked a year ago
Lightsail burst capacity questionsasked 4 months ago
Lightsail - Private hosted zone - subdomain Route53asked 14 days ago
Lightsail Burst Capacity Goes Unused When Neededasked 4 months ago
How is the Burst Capacity related to the Baseline?Accepted Answerasked a year ago
Returning remaining CPU burst capacity after retirementasked 9 months ago
Unable to ssh to Lightsail server when in burst zone with ample remaining burst capacityasked 7 months ago
Can I use a '.ca' domain to create a DNS Zone in lightsail?Accepted Answerasked a month ago
Issue with access lightsail server because of ssh service.asked 3 days ago
AWS lightsail wordpress is unresponsiveasked 2 months ago