STEAM GROUP
Linux Game Server Managers linuxgsm
STEAM GROUP
Linux Game Server Managers linuxgsm
27
IN-GAME
432
ONLINE
Founded
February 9, 2015
Creating Ark Cluster server with LGSM
hey guys like it says im interested on creating a cluster server for ark but im having some trouble wrapping my head around how to set this up. if anybody is willing to barney style it for me that would be great. My understanding is that each map is its own server which if true is a lot of data. like i said any help would be great.
Last edited by DubhAingeal<CG>; Dec 13, 2017 @ 11:02am
< >
Showing 1-13 of 13 comments
Mancer Dec 13, 2017 @ 12:56pm 
I don't have my servers "Clustered", in so that the server to server transfers are locked to only each other and stored server side. But I do run 5 independent private ark servers from the same installation in order to save disk space. I think this might be what you want, so here's how I did it.

I made 5 copies of my LGSM arkserver script and renamed them arkserver1 through arkserver5 all in the home directory of my "arkserver" user.

I probably have an older version of the LGSM arkserver script than is currently available, and I've also added my own fixes for my needs as I've gone, so please be cautious of differences between my config and your own. I'll try to point out the important parts.

First important thing to remember is that any configuration differences between your server instances need to be configured in the command line "parms=" section of the scripts, like maps, ports, query ports, difficulty, mods, etc. If you add any settings to the GameUserSettings.ini they will either be shared between all instances, or overwritten by the parameters specified in the command line from the scripts.

Examples taken from one of my arkserver scripts:

# Start Variables
servername="Your Server Name"
difficulty="5.0"
port="7777"
queryport="27015"
rconport="32330"
rconpassword="" # Set to enable rcon
maxplayers="50"
ip="0.0.0.0"
updateonstart="off"
anyonecancuddle="false"
mods="760884349,707081776,731604991"

fn_parms(){
parms="\"TheIsland?listen?MultiHome=${ip}?SessionName=${servername}?MaxPlayers=${maxplayers}?QueryPort=${queryport}?RCONPort=${rconport}?Port=${port}?AllowAnyoneBabyImprintCuddle=${anyonecancuddle}?OverrideOfficialDifficulty=${difficulty}?GameModIds=${mods}?ServerAdminPassword=${rconpassword}\""
}

Each server instance will need its own unique server name, port, query port, and servicename in the [# Server Details] section.
Mancer Dec 13, 2017 @ 1:12pm 
Almost forgot another important part.

The save directory for each instance needs to be unique. my example above didn't include my fix for this.

add under [# Start Variables]
savedirectory="Center" #whatever unique directory name you want per instance

add into your parms=
?AltSaveDirectoryName=${savedirectory}

Example:

# Start Variables
servername="Your Server Name"
savedirectory="Center"
difficulty="5.0"
port="7778"
queryport="27016"
rconport="32331"
rconpassword="" # Set to enable rcon
maxplayers="50"
ip="0.0.0.0"
updateonstart="off"
anyonecancuddle="false"
mods="760884349,867923239,821530042,731604991"

fn_parms(){
parms="\"TheCenter?listen?MultiHome=${ip}?SessionName=${servername}?MaxPlayers=${maxplayers}?AltSaveDirectoryName=${savedirectory}?QueryPort=${queryport}?RCONPort=${rconport}?Port=${port}?AllowAnyoneBabyImprintCuddle=${anyonecancuddle}?OverrideOfficialDifficulty=${difficulty}?GameModIds=${mods}?ServerAdminPassword=${rconpassword}\""
}
[LGSM] KnightLife Dec 13, 2017 @ 3:01pm 
If this works please submit a wiki article for this. It will help out loads of other admins!! https://github.com/GameServerManagers/LinuxGSM/wiki/Ark-Survival-Evolved
DubhAingeal<CG> Dec 13, 2017 @ 8:56pm 
@mancer Thank you for you quick reply i will try that and get back to the thread
DubhAingeal<CG> Dec 16, 2017 @ 8:50am 
@mancer with some tweaking i was finally able to get two servers running from the same directory. by running the command Linuxgsm.sh i was able to make copies of the directories and run scripts. i modfied the start Parms and did some firewall tweaks. but i still cant get get cross ark transfers going. thanks for the heads up it has gotten me on the right track
DubhAingeal<CG> Dec 16, 2017 @ 9:29am 
here is a copy of my server start scipts:
server 2,
ip="0.0.0.0"
port="7779"
queryport="27017"
rconport="27020"
maxplayers="30"

## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
fn_parms(){
parms="\"Aberration_P?listen?AltSaveDirectoryName=Save1?clusterid=DubhCluster?ClusterDirOverride=/home/arkserver/serverfiles/ShooterGame/Saved/clusters?MaxPlayers=${maxplayers}?QueryPort=${queryport}?RCONPort=${rconport}?Port=${port}?\""

server1,
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
servername="CGARKPVE"
port="7777"
queryport="27015"
rconport="32330"
rconpassword="********"
maxplayers="30"
ip="0.0.0.0"

## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
# Edit with care
fn_parms(){
parms="\"TheIsland?listen?AltSaveDirectoryName=Save2?clusterid=DubhCluster?ClusterDirOverride=/home/arkserver/serverfiles/ShooterGame/Saved/clusters?SessionName=${servername}?MaxPlayers=${maxplayers}?QueryPort=${queryport}?RCONPort=${rconport}?Port=${port}?ServerAdminPassword=${rconpassword}\""
xNeo Dec 21, 2017 @ 4:53pm 
it's not that hard actually, all you need to do is the following:
1.- install (./linuxgsm arkserver) all the servers you will need (5 maps in my case)
2.- Every single time you install an arkserver using the linuxgsm command, it will create a .cfg file under /server/lgsm/config-lgsm/arkserver: arkserver.cgf, arkserver-2.cfg and so on
3.- Edit every single .cfg file with your desired settings
4.- In order to get the cluster working, you need to add the following lines in your GUS.INI (assuming you are using a shared installation):
[ServerSettings]
PreventDownloadSurvivors=False
PreventDownloadItems=False
PreventDownloadDinos=False
PreventUploadSurvivors=False
PreventUploadItems=False
PreventUploadDinos=False
NoTributeDownload=False

Notes:
I don't use the "ClusterDirOverride" setting
You should't post your "clusterid" value, it's like leaving your door key on the door

The only problem I'm having: when I stop a server using the "./arkserver-2 stop" command for example, it should stops the "arkserver-2" server, but stops the "arkserver-4" too. Same thing stopping arkserver-1... it stops arkserver.3 too... I need to kill the process in order to not stop other server instead.

DubhAingeal<CG> Dec 22, 2017 @ 6:58am 
Originally posted by xNeo:
it's not that hard actually, all you need to do is the following:
1.- install (./linuxgsm arkserver) all the servers you will need (5 maps in my case)
2.- Every single time you install an arkserver using the linuxgsm command, it will create a .cfg file under /server/lgsm/config-lgsm/arkserver: arkserver.cgf, arkserver-2.cfg and so on
3.- Edit every single .cfg file with your desired settings
4.- In order to get the cluster working, you need to add the following lines in your GUS.INI (assuming you are using a shared installation):
[ServerSettings]
PreventDownloadSurvivors=False
PreventDownloadItems=False
PreventDownloadDinos=False
PreventUploadSurvivors=False
PreventUploadItems=False
PreventUploadDinos=False
NoTributeDownload=False

Notes:
I don't use the "ClusterDirOverride" setting
You should't post your "clusterid" value, it's like leaving your door key on the door

The only problem I'm having: when I stop a server using the "./arkserver-2 stop" command for example, it should stops the "arkserver-2" server, but stops the "arkserver-4" too. Same thing stopping arkserver-1... it stops arkserver.3 too... I need to kill the process in order to not stop other server instead.

yeah i am running into the same issue i think it has something to do with the fact that they are on a shared dir. the system does not distinguish the different between shootergame for each instance. i bet if you ran different installer for each you would be able to get it to work right. thanks for the heads up on the clusterid that was a default i made for testing. i got it to work but the start script is a mess and needs to be cleaned up.
PsyberTech Feb 12, 2018 @ 5:04pm 
My turn to wrap my head around this. I currently have 4 servers that I wish to cluster. Thank you for the posts, everyone. I shall let you know how I do. LOL "Barney style" I learned that term from Skippy the A.I. beer can.


1.- install (./linuxgsm arkserver) all the servers you will need (5 maps in my case)
2.- Every single time you install an arkserver using the linuxgsm command, it will create a .cfg file under /server/lgsm/config-lgsm/arkserver: arkserver.cgf, arkserver-2.cfg and so on


When I run "./linuxgsm arkserver" I get: bash: ./linuxgsm: No such file or directory

The install command I know is "./arkserver install" and it does not create any arkserver-2.cfg file or any others...

I am guessing that your GSU.ini file is actually the GameUserSettings.ini file...

If I create my own arkserver-2 through -4 files, the launch script fails to launch the other servers.


Ah, just found this link that fills in the missing parts on the arkserver configs... brb
https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Game-Servers


That was it! Cake Walk! Thank you!!!


Last edited by PsyberTech; Feb 12, 2018 @ 7:06pm
Harl Blabberhoof Feb 26, 2018 @ 10:29am 
I built my clusters the lazy way... each server has his own system user and installation - got enough space on the machine, so why fuzz about some megabytes (or more) :D

I also created a user and group for the clustermanagement, put all the arkserver users into that group. All the server have a symlink from serverfiles/ShooterGame/Saved/clusters to the homedir of the cluster-user. The <clusterid> directories are owned by the clustergroup and have the +s flag for the sticky group, additionally I got a cronjob running every minute giving group write permissions to files inside the <clusterid> directories.

And of course I just had to add the correct clusterid to the startup parameters of the right servers.

This way I can have a nice flexible installation and if one server mucks up, it'll not tear down the other servers as well.

All for the price of some extra megabytes.
Invaders Apr 26, 2018 @ 4:20am 
Anyone could explain how to setup a cluster server? I am using LGSM. But, if possible, I would like to run the server in differents DIR.
Meister-Vox Nov 17, 2018 @ 7:35am 
Hello together, sometimes need your help.
Gerene would like to create a cluster server as described in the instructions.

it's not that hard actually, all you need to do is the following:
1.- install (./linuxgsm arkserver) all the servers you want (5 maps in my case)
2.- Every single time you install to arkserver using the linuxgsm command, it will create a .cfg file under / server / lgsm / config-lgsm / arkserver: arkserver.cgf, arkserver-2.cfg and so on
3.- Edit every single .cfg file with your desired settings
4.- In order to get the cluster working, you need to add the following lines in your GUS.INI (assuming you are using a shared installation):
[Server Settings]
PreventDownloadSurvivors = False
Prevent Download Items = False
Prevent Download Dinos = False
PreventUploadSurvivors = False
Prevent Upload Items = False
Prevent upload Dinos = False
NoTributeDownload = False

There were two files created by arkserver-2 and GUS-2. However, if I start a server with. / server, the first one will start when I then start the second. / Mark Server 2 starts the second and the first is then no longer available OFFLINE.

Did I miss something or did it wrong? Would be very pleased about help.
Last edited by Meister-Vox; Nov 17, 2018 @ 7:43am
GoZippy Mar 28, 2020 @ 9:18pm 
How to install
linuxgsm.sh allows you to generate as many instances as you want by running ./linuxgsm.sh install. It will generate a new LinuxGSM script using an incremental number.
For example if you already use ./csgoserver running ./linuxgsm.sh csgoserver will generate ./csgoserver-2
On the first run of ./gameserver-2 a new default LinuxGSM and game config will be created (gameserver-2.cfg). These new configs will need to be altered with new ports and any other settings that are required.
< >
Showing 1-13 of 13 comments
Per page: 1530 50