Skip to content

Multi‐Proxy REDIS

Ben edited this page May 5, 2024 · 3 revisions

Still new, could contain bugs

Each proxy needs their own local proxy setup. PLUGINMESSAGING or REDIS recommended. Use PLUGINMESSAGING for initial setup to reduce first setup pains. If using redis (on each proxy to backend servers) please set a prefix to prevent issues.

Check connection status with /votingpluginbungee multiproxystatus - should see a message on each proxy

Config options for REDIS Only

##########################################
# Multi-proxy setup
# This is still a WIP, use with caution
# Primary server  needs votifier and config option enabled
# Set socket host on each proxy and primary server set sub proxies
# All servers should be on pluginmessaging or sockets setup
##########################################

# Support for multiple proxies
MultiProxySupport: false

# Enable on primary proxy server with votifier
PrimaryServer: false

# If enabled, player will only get 1 reward on a server on the network
# Must be enabled on all proxies for this to work
# Must also disable sendtoallservers
MultiProxyOneGlobalReward: false

# Multi-proxy available methods:
#  SOCKET
#  REDIS
MultiProxyMethod: REDIS

##########################################
# REDIS Settings
##########################################

# Set multiproxymethod to REDIS to use redis
MultiProxyRedis:
  # If true the plugin will use the exsiting connection set above
  # Must be on REDIS method to use this setting
  UseExistingConnection: false
  Host: localhost
  Port: 6379
  Username: ''
  Password: ''
  
# Set each server it's own proxy name here (can be anything)
ProxyServerName: proxy1

# Set names of other proxy servers
# Must match what's set as the proxy server name above from other servers
# On non primary proxy server just set the primary proxy server name here
ProxyServers:
- proxy2
- proxy3
Clone this wiki locally