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
專家
已審閱 2 天前
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南