From 59a67e7749fbd251b8dfea64aca8e733c2afa6dc Mon Sep 17 00:00:00 2001 From: OpenSource Date: Thu, 25 Aug 2022 00:03:03 +0000 Subject: [PATCH] GitBook: [#82] Added multinode instructions --- SUMMARY.md | 1 + overview/installation/docker-installation.md | 2 +- overview/installation/multi-node-support.md | 44 ++++++++++++++++++++ 3 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 overview/installation/multi-node-support.md diff --git a/SUMMARY.md b/SUMMARY.md index be1c20f..3def40b 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -6,6 +6,7 @@ * [🚀 Plugin Installation Tutorial](overview/installation/README.md) * [🎁 Templates](overview/installation/templates.md) * [📦 Adding pre-defined plugins](overview/installation/adding-pre-defined-plugins.md) + * [⌨ Multi-Node Support](overview/installation/multi-node-support.md) * [🛳 Docker configuration](overview/installation/docker-installation.md) * [🌐 Pterodactyl configuration](overview/installation/pterodactyl-configuration.md) * [📜 Current Config files](overview/config.md) diff --git a/overview/installation/docker-installation.md b/overview/installation/docker-installation.md index 56fdc5d..1722713 100644 --- a/overview/installation/docker-installation.md +++ b/overview/installation/docker-installation.md @@ -20,7 +20,7 @@ For a quick install of Docker CE, you can execute the command below: curl -sSL https://get.docker.com/ | CHANNEL=stable bash ``` -### Setup +### Configuration After successfully installing docker, you can enable docker support inside your config.yml. diff --git a/overview/installation/multi-node-support.md b/overview/installation/multi-node-support.md new file mode 100644 index 0000000..eedd17b --- /dev/null +++ b/overview/installation/multi-node-support.md @@ -0,0 +1,44 @@ +--- +description: >- + Learn how to install and configure PlayerServers daemon and be the first to + try out our experimental support for hosting your servers on multiple + machines. +--- + +# ⌨ Multi-Node Support + +## Requirements + +* Purchased PlayerServers. This addon is free of charge +* Have two (or more) machines +* Decent network connection +* At least 200MB of RAM dedicated to Daemon + +## Instructions + +The installation process for PlayerServers Daemon is pretty straight forward. The first thing you need to do is simply enable multi-node support under experimental options at the end of your configuration file. After that, just reboot your BungeeCord and let the plugin generate required files. + +After that's done, create a folder Daemon. Download the following jar file and drop it into your Daemon folder: + +{% file src="../../.gitbook/assets/Daemon-v1.1 (1).zip" %} +Daemon v1.1 - Release +{% endfile %} + +After that's done, run it for the first time by using `java -Xmx200M -jar Daemon.jar` in order to let it generate the required files. Now exit it by typing in `exit`. After that's done, configure both multinode.yml inside your `BungeeCord/plugins/PlayerServers/multinode.yml` and your Daemon config.toml which will be generated in your Daemon root directory. It is important to include the same token inside both configs! + +{% hint style="info" %} +As the last step, it is required to copy all your templates to each daemon. For example, if you have PS/templates/default and PS/templates/1.8, you need to have the exact same files across each daemon with exact same templates. **Each template MUST have Spigot.jar file inside it!** +{% endhint %} + +Now, you can just make a start.sh script with the following code + +``` +screen -dmS Daemon java -Xmx200M -jar Daemon.jar +``` + +and just run it with `sh start.sh` in order to make your Daemon run 24/7 on a separate screen. + +{% hint style="warning" %} +Great! You're done! Now, please note that PlayerServersDaemon is still under early-access development and may have bugs. Please report all of those to our Issue tracker [here](https://gitlab.com/OpenSource02/playerservers/-/issues). Additionally, please take a backup of your MySQL Database and your server data before proceeding. It is important to note that we did take every possible step to reduce the amount of possible issues that can happen, but we do highly encounter you to take those steps, just to be on the safe side. +{% endhint %} +