-
Notifications
You must be signed in to change notification settings - Fork 350
Server Coordinator (Overlord)
giongto35 edited this page Aug 31, 2019
·
3 revisions
Server Coordinator (or Overlord) is workers pairing and metadata exchanging happens. All workers and users will connect to the coordinator over WebSocket connections.
The main function to pick the most suitable server for a user is at overlord/handlers.go.
- Overlord collects all available workers that don't serve game session.
- Overlord sends addresses of those workers to clients.
- On the Client side, it will test the latency from the list of addresses and sends back to overlord all latencies from that address list.
- Overlord picks the most suiltable worker which is the one with smallest latency: