Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question Allocation Expires After 1 Hour

Discussion in 'Dedicated Server' started by Mark-M07, Sep 12, 2023.

  1. Mark-M07

    Mark-M07

    Joined:
    Jun 12, 2019
    Posts:
    2
    I followed along with this video by Code Monkey on game server hosting and can now create allocations and join dedicated servers which is great.

    However, any allocations I create expire just past the 1-hour mark. When this happens the allocation is lost, the server stops, and all clients are disconnected.

    The server event says:
    Performed stop using build configuration "Dev A".

    The Engine.log says:
    [Netcode] ShutdownInternal
    [Netcode] NetworkConnectionManager.Shutdown() -> IsListening && NetworkTransport != null -> NetworkTransport.Shutdown()

    I've also tried using test allocations but they also expire just past 1 hour. The only difference is these allocations are visible under "Test Allocations" and display a 1-hour countdown timer.

    I'm trying to use dedicated servers to create a persistent online world for players to join. I don't want my servers to deallocate or go offline unless I instruct them to. Any advice on this would be much appreciated. It seems like a trivial task to host and display several servers that players can view in-game and join but I'm officially stuck.
     
  2. Mark-M07

    Mark-M07

    Joined:
    Jun 12, 2019
    Posts:
    2
    Turns out allocation duration is controlled by each fleet.

    I found the documentation for Allocation time to live (TTL) and was able to control the duration of my allocations.