Proxy Sharding

3commands
1file
1min read
Sheet 34 of 53 · Networks & Scaling

Filesconfig.yml

Fileconfig.ymlCommand/is visitCommand/is homeOne server only holds so many islands. With sharding on, islands are spread over several backends behind a Velocity or BungeeCord proxy, and players can still visit any of them.

config.yml
network:
  enabled: false
  server-name: ""

How it works

Config keynetwork.enabledCommand/is visitCommand/is homeCommand/is switchWhen network.enabled is on, every island created on a backend is tagged with that backend's name (server-name). When a player runs /is visit, /is home or /is switch for an island that lives on a different backend, IgniteSky sends them to the right server through the proxy's Connect channel, then drops them at the island when they arrive. From the player's side it is one teleport.

The arrival handshake

The hand-off goes through the shared database you already need for sharding. Before you're sent over, your destination island is saved as a pending arrival. When you join the other backend it reads that record and teleports you in, so there's no Redis or message bus to set up.

Hosting per mode

Sharding works with any hosting strategy: an island lives on the backend that created it, in whatever world layout that mode uses. The server_shared strategy name is accepted but not built out yet; today it behaves exactly like world_per_island. See World Hosting Strategies.

Loading the index

Enter openUp Down moveEsc close