dst-dedicated-server

Don't Starve Together dedicated server guide for all platforms (Linux, Mac, Windows) with Docker. Extensive documentation covering mods installation, server config and performance, world generation and setting up admins.


Project maintained by mathielo Hosted on GitHub Pages — Theme by mattgraham

Don’t Starve Together - Dedicated Server Performance

Here you’ll find tips on how to improve and get the best performance from your Don’t Starve Together dedicated server. Check the requirements for optimal usage of the resources you have available.

Server Resources

These are the resources that matters when running a dedicated server.

CPU

Recommended: 1 CPU core available per shard.

A regular world consists of two shards: Forest + Caves. The shards themselves won’t multi-thread, so having many CPU cores won’t matter. It’s best to have better CPU power per core, and one CPU core available for each shard.

RAM

Recommended: 1Gb RAM available for each shard; Have a plan to upgrade if needed.

Having 1Gb of RAM available for each shard should be enough for most setups.

A shard may use more RAM depending on world age (how many days have passed) and amount of players, so it’s advised to check on the server performance (docker stats) every now and then.

Network

Recommended: Solid, stable network connection with good throughput/upload rate.

That’s super important. The lower the ping the better the player experience. To have a good and stable connection is a must.

If you have players from different locations, the host would optimally be in a “central” location related to the player’s geographical placement.

SSD

Recommended: SSD is preferable over HDD.

The only performance gains on an SSD over a HDD would be when starting up the server and during the daily autosaves. Might be worth it if the users experience lag every new day when the game saves.

Other notes


Picking a Host

Now that you know what resource matters for the dedicated server, it’s time to chose where (in what machine) to host it.

OS (Operating System)

This server will run on any OSs supported by Docker. Bear in mind that different OSs have different resource needs, so the less the OS uses, the more you have available for your server to run.

For this reason, Linux is the recommended platform, specially if you are comfortable with CLI and can run a server edition without any GUI. That’s the most resource-efficient way of running your server.

Whichever OS you choose, make sure to check it’s own resource requirements and add up with the following ones to guarantee a smooth server.

Hosting locally, in your own computer

First and foremost thing you need to have in mind when hosting in your own computer is: along with the OS and the dedicated server, you’ll also have the game client competing for resources. So when taking this approach, make sure you have enough RAM and CPU power to handle it all!

Most quad-cores with at least 4Gb RAM should be able to handle it without any problems. But sill, if you run into performance issues remember you have your OS vs. the dedicated server vs. the game client, all of them fighting for your computer resources!

Benefits

Downsides / Watch out for

Hosting in a VPS (Virtual Private Server)

The VPS is a great solution as you’ll have a solid connection and resources dedicated entirely for your server. The major downside of this option is that you’ll need to rent a VPS, so there’s costs involved. If you (and your friends) are willing to invest a tiny amount you can find good VPS solutions for about $10/month.

This becomes an even better solution if you choose a Linux server distro, as your OS would require minimal resources for itself, leaving most of it available for your dedicated server.

When choosing a VPS solution, make sure to get one that does not work based on CPU credits concept. Once the server is running the shards idle at about ~30% CPU usage; when players connect they keep at 90~100% constantly. Therefore pick a service that allows you to use the resources in its full otherwise you’ll run into trouble.

Benefits

Downsides / Watch out for