Skip to content

How do I enable turn server to continue serving users that have been connected before the restart? #1159

Answered by eakraly
GatlinHa asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @GatlinHa

Great idea but it has a few drawbacks.

  • Adding DB for this has huge development and operational overhead (think code, bugs, DB, permissions, monitoring etc)
  • Someone needs to write that code
  • You also need to store SSL context because some clients may be using TLS or even DTLS (and this is not trivial)

Zooming out of this question - statefulness of turn sessions (as well as VoIP/WebRTC and anything that uses TURN in general) is a common problem. It is not only about upgrade but also about scaling in (when you want to shut down unused servers)

People solve it by "draining" servers before shutting down/restart. The process is following:

  • You select a server you decide to shutdow…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by GatlinHa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants