I have an issue with a centos GCP machine, which keeps booting off after a period of 1-2 days:
pic of the lost session to the machine
I am new to GCP and was wondering what can I do to fix this.
Thanks guys.
I have an issue with a centos GCP machine, which keeps booting off after a period of 1-2 days:
pic of the lost session to the machine
I am new to GCP and was wondering what can I do to fix this.
Thanks guys.
As mentioned in comments, the server is not rebooting - the SSH connection is being dropped, which although an SSH connection should theoretically last indefinitely, it will be at the mercy of network connectivity and various other factors that are not within your control.
If you have an app which is running over SSH, I'd seriously consider looking into converting the application to run as a service, or at the very least launching the application from within screen
.
There are various mechanisms you can use to do this, depending on your application architecture, its runtime requirements and your OS.