mirror of
https://github.com/SWG-Source/swg-main.wiki.git
synced 2026-01-16 20:04:18 -05:00
devcodex created page: server lifetime management
This commit is contained in:
@@ -24,4 +24,35 @@ Kills the cluster if it is running, then terminates the TaskManager process.
|
||||
Sets the ConnectionServer to public
|
||||
|
||||
### private
|
||||
Sets the ConnectionServer to private
|
||||
Sets the ConnectionServer to private
|
||||
|
||||
## Running ConnectionServer on a separate machine
|
||||
|
||||
This is useful when you want to run the galaxy behind a closed network, with all of its bits communicating over the local network, while still allowing to run a connection server on a separate machine where it can be publicly accessed. It is necessary to do this because by default, each node uses the IP its hostname resolves to as the address it tells all other remotes to communicate on.
|
||||
|
||||
First, set up 2 machines with server instances and default configurations. The primary server, node0, is the game cluster server and node1 is just running the ConnectionServer (and the TaskManager process that spawns it). Now, make the following configuration changes to each server's configurations:
|
||||
|
||||
### node0
|
||||
|
||||
#### default.cfg
|
||||
|
||||
[TaskManager]
|
||||
autoStart=0
|
||||
|
||||
[CentralServer]
|
||||
startConnectionServer=node1:<NODE1_REMOTE_IP>:44463:44464
|
||||
|
||||
#### nodes.cfg
|
||||
|
||||
[TaskManager]
|
||||
node0=<NODE0_INTERNAL_IP>
|
||||
node1=<NODE1_INTERNAL_IP>
|
||||
|
||||
### node1
|
||||
|
||||
#### nodes.cfg
|
||||
|
||||
[TaskManager]
|
||||
node0=<NODE0_INTERNAL_IP>
|
||||
node1=<NODE1_REMOTE_IP>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user