Skip to content

Questions about expected behavior. #35

@laglink17

Description

@laglink17

Hello, thanks for this great project! I'm trying to use for my self-hosted minecraft server.

I set it using the example from the project and it's working fine to start the server. A few things I noticed:

  • When "minPacketThreshold" is not set, it uses the default 30 packets. A Refresh from the Minecraft Client sends around 10 packets to check if the server is up. So, I think it should be set between 10 to 20 in this use case (minecraft server). Otherwise, the server (container) is not started without hitting refreshing like 3 o 4 times.

  • I set the "inactiveTimeOut" label in 600 seconds. According to the logs, when the last user disconnects from the server, it takes around 10 minutes to start checking if the container can be stopped. After that, the countdown beings and when the inactive time is reached, the container finally stops. As so, the time to stop the container is around 20 min. Is this the expected behavior?

Here are some logs:

DEBUG: 2023/09/11 20:47:24 group.go:49: 273011 packets received in the last 600 seconds DEBUG: 2023/09/11 20:47:24 group.go:169: 0 active clients DEBUG: 2023/09/11 20:47:54 group.go:71: ///////////////////////////////////////////////////////////////////////// DEBUG: 2023/09/11 20:47:54 group.go:49: 273011 packets received in the last 600 seconds DEBUG: 2023/09/11 20:47:54 group.go:169: 0 active clients DEBUG: 2023/09/11 20:48:24 group.go:71: ///////////////////////////////////////////////////////////////////////// DEBUG: 2023/09/11 20:48:24 group.go:49: 273011 packets received in the last 600 seconds DEBUG: 2023/09/11 20:48:24 group.go:169: 0 active clients DEBUG: 2023/09/11 20:48:54 group.go:71: ///////////////////////////////////////////////////////////////////////// DEBUG: 2023/09/11 20:48:54 group.go:49: 273011 packets received in the last 600 seconds DEBUG: 2023/09/11 20:48:54 group.go:169: 0 active clients DEBUG: 2023/09/11 20:49:24 group.go:71: ///////////////////////////////////////////////////////////////////////// DEBUG: 2023/09/11 20:49:24 group.go:49: 273011 packets received in the last 600 seconds DEBUG: 2023/09/11 20:49:24 group.go:169: 0 active clients DEBUG: 2023/09/11 20:49:54 group.go:71: ///////////////////////////////////////////////////////////////////////// DEBUG: 2023/09/11 20:49:54 group.go:49: 273011 packets received in the last 600 seconds DEBUG: 2023/09/11 20:49:54 group.go:169: 0 active clients DEBUG: 2023/09/11 20:50:24 group.go:71: ///////////////////////////////////////////////////////////////////////// DEBUG: 2023/09/11 20:50:24 group.go:49: 273011 packets received in the last 600 seconds DEBUG: 2023/09/11 20:50:24 group.go:169: 0 active clients DEBUG: 2023/09/11 20:50:54 group.go:71: ///////////////////////////////////////////////////////////////////////// DEBUG: 2023/09/11 20:50:54 group.go:49: 273011 packets received in the last 600 seconds DEBUG: 2023/09/11 20:50:54 group.go:169: 0 active clients DEBUG: 2023/09/11 20:55:25 group.go:49: 60864 packets received in the last 600 seconds DEBUG: 2023/09/11 20:55:25 group.go:169: 0 active clients DEBUG: 2023/09/11 20:55:55 group.go:71: ///////////////////////////////////////////////////////////////////////// DEBUG: 2023/09/11 20:55:55 group.go:49: 0 packets received in the last 600 seconds DEBUG: 2023/09/11 20:55:55 group.go:169: 0 active clients 30 / 600 seconds without an active client or sufficient traffic on running container DEBUG: 2023/09/11 20:56:25 group.go:71: ///////////////////////////////////////////////////////////////////////// DEBUG: 2023/09/11 20:56:25 group.go:49: 0 packets received in the last 600 seconds DEBUG: 2023/09/11 20:56:25 group.go:169: 0 active clients 60 / 600 seconds without an active client or sufficient traffic on running container

My other question here would be if there is a way to use the "active clients" from the logs to set a flag and be able to stop the container after a given time.

Just in case, I'll attach my compose file.

docker-compose.yml.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions