oke-unreal-pixel-streaming icon indicating copy to clipboard operation
oke-unreal-pixel-streaming copied to clipboard

About network mode in docker-compose.yml file?

Open ismarsantos opened this issue 2 years ago • 1 comments

Is this configuration necessary?

The networking stacks provided by container runtimes such as Docker introduce additional overheads that result in increased latency of UDP packets, so it is strongly recommended that you run Linux containers with host networking mode enabled in order to ensure the smoothest experience for users.

Oficial docker-compose.yml sample ... signalling: image: "ghcr.io/epicgames/pixel-streaming-signalling-server:${UNREAL_ENGINE_RELEASE}" init: true network_mode: "host" ...

https://unrealcontainers.com/docs/use-cases/dedicated-servers#key-considerations

ismarsantos avatar Apr 23 '22 04:04 ismarsantos

I'm inclined to agree with this note. The basis is from the WebRTC protocol, namely the turn service dynamically allocates ports for client (browser) and stream (unreal) to establish the RTCPeerConnection.

In the case of this runtime, coturn is run as a DaemonSet with hostNetwork: true on the pod spec. See here.

Hope that helps

mvandervliet avatar Apr 24 '22 12:04 mvandervliet