Documentation · Installing the server · Server network

Server network

How to join several servers into one network.

A network of several servers

A network is several servers with the same network part of server.conf.

  1. On any server in the network, get the network key:
    veydan-server join-token
  2. On the new server, run the installer, answer join, and paste the key. Or run the installer with --join <key>.
  3. Enter a short word for the new server. The names are made from it: m2 → m2-relay.example.org.
  4. Tell the existing servers about the new one: add its names to MESH_RELAYS and MESH_MEDIA in their /opt/veydan/server.conf and run veydan-server rerun. They don't learn the new names by themselves: their accept the new one, but their watch only the relays they know.
Caution. The network key contains the network's keys. Don't give it to anyone.
  • Each relay is connected to every other and reconciles with it every few minutes. An event published on one relay reaches all of them.
  • With a shared S3 bucket, any serves any file.
  • When files are stored on disks, each server serves what it received itself and asks the next media server in MESH_MEDIA for the rest.