Lightsail Instance 1GB/1Core Keeps going down

0

I've tried running a LightSail WordPress instance for awhile now (4-5 months) and I'm having some stability problems. I started out with the low end instance 512MB/1Core and started having issues where it will occasionally go down. It says still running but it's unreachable. This is usually coincided with some network traffic and a short CPU spike. This usually doesn't last very long but it never comes back up. If I stop, wait, start then it works again. If I add a R53 healthcheck it will go down within 24 hours. I only get about 50 visits a day (max) to the site so I know it's very low traffic.

I thought maybe the instance was underpowered so I upped it to 1GB/1core and it went down again today after running only about 1 day.

There's clearly something wrong here. Can I get some assistance on determining what is going on here?

Thanks in advance!

snag01
已提问 5 年前658 查看次数
3 回答
1
已接受的回答

I'm able to run a number of basic wordpress servers in a single 512mb lightsail instance.

The only thing I did was buy 8gb of extra storage and make it a swap partition.

Before I had the swap partition, the mySQL server was constantly crashing due to OOM problems.

I blogged about it here: https://www.geekyramblings.net/2018/02/01/amazon-lightsail#512mb-isnt-a-lot-of-memory

david

profile picture
David G
已回答 5 年前
profile picture
专家
已审核 3 天前
0

David, thank you. I will give this a shot and see if it fixes my problem. I appreciate you taking the time to respond to my question.

I will let you know how it works out!

Regards,

Shawn

snag01
已回答 5 年前
0

This definitely fixed my problem. After implementing a swapfile, the instance has been stable ever since.

I appreciate your help!!

snag01
已回答 5 年前

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

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

回答问题的准则