oke-unreal-pixel-streaming
oke-unreal-pixel-streaming copied to clipboard
About network mode in docker-compose.yml file?
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
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