#it does it on its own not if i press
1 messages · Page 1 of 1 (latest)
There's a TTL (time to live) that you can define, if you have no one connected to a server, it will automatically shutdown after this delay
https://docs.unity.com/ugs/en-us/manual/game-server-hosting/manual/concepts/allocation-ttl
thank you for answer Erick. I contacted support and asked them to change that TTL to 12 hours. They did and it appears that it fixed problem regarding allocation
Last bit that i dont understand at the moment is why if I start server without doing test allocation previously, it ends after 15 minutes regardless if i am connected or not. Does that mean i should always do test allocation when starting new server?
status is a bit confusing to me because i dont understand difference between allocated and online. Allocated seems to be online already because i am able to connect to server with that status.
Test allocations used to be an hour. I don't know if that's changed. But if they changed TTL for you then that shouldn't be an issue any more
Allocated means the game is running and players can connect. Online means it's ready in case any allocations are requested
okay that means for my actual server it needs to be in allocated status
seems its not issue anymore, i left server without any player connected and it was running for 2,5 hours without issue after which i connected
the only thing left is how can i set TTL time without having to mail unity support to do it for me. i read some documentation but i really dont understand anything about it apart from need to create service account
where am I putting these codes?
At the moment I don't think you can. Multiplay is not really meant for long term persistent servers like for moms. There was a virtual worlds service in closed beta but I have no clue on the current status of it.
well guy from mail (unity support worker) told me he can make TTL for as much as I want, so appears it can be run for long time. Also as a note, i am implementing backup where server will periodicly save data there in case it gets shut down, when i restart it it will resume from where it started
do you know any server host provider that is meant for persistant servers?
i wont move just to know alternative if it happens to be issue
The easiest way to allocate a server is through matchmaking. But as found you can also use the web API. But it needs admin credentials so you would probably do that through cloud code
Any of the virtual server providers would work. AWS, Azure, Google Cloud. I'm pretty sure they all have game specific services too
didnt know google cloud offered server hosting
thank you so much for help man. like really

I want to say that all of the unity services are running on Google cloud
oh btw, all of mentioned work for hosting game for google play game for android?
The servers themselves are either Linux or Windows. The android game can connect to them no problem