1

I am running a virtual machine with Wordpress and MySQL and it has worked well.

To save some cost I down-sized the machine type to e2-micro. Since then the connection to the vm goes down every now and then. Neither accessible by browser nor SSH through Google Console.

The vm needs to be reset/restarted to get it up again.

Is it something with that specific machine type making it go to sleep and how would I go about to avoid that?

Screenshot of the vm configuration

4
  • 1
    Check VM metrics cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/… and find the culprit. What happens when you upgrade back? If it works then its CPU/RAM because you downgraded machine type. Commented May 7 at 15:16
  • 1
    Jonas, How many months had you been running before downsizing. Had the system ever crashed during this time and had to be restarted? Tell us frequency of crashes, please so we know the troubles you are faced with. It is likely your choice for the downsize was just TOO SMALL for your workload. Commented May 10 at 1:07
  • Jonas, Could you invest a moment in telling us if you have made any progress and answer some of our requested details? We would like to help. Thank You. Commented Jun 3 at 13:26
  • @WilsonHauck hi, sorry for the wait. I upgraded back to the previous setting using small which made the service not to stop or broke down due to lack of memory. Commented Jun 4 at 18:02

1 Answer 1

0

Down-sizing your machine type is not recommended as e2-micro is very constrained for a Wordpress + MySQL workload. As mentioned by @dany L, you may use cloud monitoring to check and set up alerts for high CPU and memory usage. As another option, you can enable the "Automatic Restart" configuration settings to help the VM recover automatically if services crashed.

Sign up to request clarification or add additional context in comments.

2 Comments

Did this work? Any suggestions or confirmation to my solution would be appreciated.
Thanks. I ended up going back to the original machine configuration and it has been running well since. The end goal is however not having to spend $18 every month and still have a pretty stable website, running on WP.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.