#
Cross-Server
This guide describes how to use CoinsEngine on multiple servers connected to the same MySQL database.
Balance sharing and synchronization depends on the Column_Name
and Synchronized
currency settings.
You must have Sync_Interval
value at 1 or greater in the config.yml on all servers with shared balances!
#
Scenario #1
Currency: money.yml
Same balance on all servers.
- Server A:
Column_Name: money
,Synchronized: true
,Sync_Interval: 1
- Server B:
Column_Name: money
,Synchronized: true
,Sync_Interval: 1
- Server C:
Column_Name: money
,Synchronized: true
,Sync_Interval: 1
#
Scenario #2
Currency: money.yml
Different balance on all servers.
- Server A:
Column_Name: money_a
,Synchronized: false
,Sync_Interval: -1
- Server B:
Column_Name: money_b
,Synchronized: false
,Sync_Interval: -1
- Server C:
Column_Name: money_c
,Synchronized: false
,Sync_Interval: -1
#
Scenario #3
Currency: gems.yml
Different balance on server A, shared balance on servers B and C.
- Server A:
Column_Name: gems_a
,Synchronized: false
,Sync_Interval: -1
- Server B:
Column_Name: gems_shared
,Synchronized: true
,Sync_Interval: 1
- Server C:
Column_Name: gems_shared
,Synchronized: true
,Sync_Interval: 1