Linuxgsm: [dstserver] Complete overhaul needed

Created on 26 Aug 2016  路  6Comments  路  Source: GameServerManagers/LinuxGSM

Current dev branch: dstserver-new (compare to develop branch)

Problems:

  • server structure changed: the server is a "cluster" which contains maps ("shards"); a vanilla server should consist of a overworld "shard "(usually named "Master") and a cave "shard" (usually named "Caves")
  • each "shard" has to be an own server - "shards" are connected by sinkholes/stairs in the map
  • there are cluster and "server/shard" configs - what about servercfgdir/information/...?

In the end these files have to be created:
~\.klei\DoNotStarveTogether\MyDediServer\cluster.ini ~\.klei\DoNotStarveTogether\MyDediServer\Master\server.ini ~\.klei\DoNotStarveTogether\MyDediServer\Caves\server.ini ~\.klei\DoNotStarveTogether\MyDediServer\Caves\worldgenoverride.lua
And two servers have to be started.

Config path structure: /home/dstserver/<persistent_storage_root>/<conf_dir>/<cluster>/<shard>

  • directories are changeable by identically named cmdline parameters
    Should we create variables for cluster and shard? Should the other variables be changeable too?

Guides / Documentations:
Quick Setup
Server Settings
Command Line Options
Understanding Shards and Migration Portals

I also want to note that this dontstarve.wikia.com setup guide is outdated.

I don't know where to start. I already read much and tried a bit but everything seems complicated and dirty. I need someone who pushes me into the right direction. I can't decide which paths to set to what and if there should be script copies for each shard (would be annoying when installing the server; idk how it should be realized)?

I have to update the wiki page too: https://github.com/GameServerManagers/LinuxGSM/wiki/Don't-Starve-Together

I'll likely improve this post over time. I probably forgot some things.

I'll probably create a new branch to play a bit around tomorrow.

bug feature request

All 6 comments

Im starting to regret supporting this server. The devs keep making big changes to the server. This will be the second time now that the server has broken because of the devs changing stuff.

I would like to have someone who could review and test my stuff so we can make the last changes/optimizations/cleanup to finally move it to the master branch. For me it seems to be working but this server is also affected by #957.

/LinuxGSM/tree/dstserver
/LinuxGSM/compare/dstserver
/LinuxGSM/wiki/Don't-Starve-Together (I'm not that good at explaining things.)

Just leaving this as a note here:

bind_ip (set as start parameter, in cluster.ini or server.ini)
Default: 127.0.0.1
Required: If shard_enabled = true and is_master = true
This is the network address the master server will listen on for other shard servers to connect to. Set this to 127.0.0.1 if all of your servers in your cluster are on the same machine, or 0.0.0.0 if the servers in your cluster are on different machines. This only needs to be set for the master server, either in cluster.ini, or the master server's server.ini.

1120

Current dev branch: dstserver-new (compare to develop branch)

To Discuss:

  • bind_ip as config setting and/or as startup parameter? (see previous comment) config is preferred
  • standardize config handling more ([fn_set_dst_config_vars()] (https://github.com/GameServerManagers/LinuxGSM/blob/dstserver-new/lgsm/functions/install_config.sh#L69-L117)) in install_config.sh? (but how)
  • regarding service and shard name (dstserver): dst-server-${shard} (edit manually if necessary)
    1. replace shard name by service name (I wouldn't go with that)
    2. combine them like "dst-server-${shard}" (also add ${cluster} for uniqueness if using multiple cluster with shards sharing the same name?)
    3. let them be separated (manual)

Is it okay how implemented all this stuff (particulary installation vars and config handling)?

Everything seems to be stable and working fine for me. I just (really) need your opinions on that for doing last changes if necessary to finalize the script.

* reminder: branch var has to be changed & wiki updated

Changes introduced with r161125 (9e21a76a3421ff63680781d6a4c746cb697f29a6)

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jaredstone1982 picture jaredstone1982  路  3Comments

metalowcom picture metalowcom  路  3Comments

dgibbs64 picture dgibbs64  路  3Comments

BarbieQ1 picture BarbieQ1  路  4Comments

KuJoe picture KuJoe  路  3Comments