question

wangying avatar image
wangying asked

Terminate server instances

Could I terminate server instances via web api when server instances is crashed.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

If a custom game server instance crashes, then it's no longer running - there would be nothing to terminate. Can you describe the scenario you're envisioning?

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

wangying avatar image wangying commented ·

Some times programe may crashed with Breakpoint. This situation should not happen. But I want have safeguards to close a server instance which run for a long time in case.

0 Likes 0 ·
brendan avatar image brendan wangying commented ·

Yes, hosted servers should always be set to run in headless mode, so that they never require interaction. If you find that a server isn't responding, you'll need to terminate it in the Game Manager. You should also make sure you're using the log output to record any errors that occur in the server, so that you can review that in the log we capture for you and so work on a fix. But at the moment, there is no auto-termination of servers, in part to prevent unintended terminations.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.