diff --git a/docs/SUMMARY.md b/docs/SUMMARY.md index f1fbaaed..71368a6a 100644 --- a/docs/SUMMARY.md +++ b/docs/SUMMARY.md @@ -35,7 +35,6 @@ * [Prerequisites](hosting-a-server-with-northstar/prerequisites.md) * [Hosting a Basic Listen Server](hosting-a-server-with-northstar/basic-listen-server.md) * [Hosting a Dedicated Server](hosting-a-server-with-northstar/dedicated-server/README.md) - * [Best practices](hosting-a-server-with-northstar/dedicated-server/best-practices.md) * [Hosting on Linux](hosting-a-server-with-northstar/dedicated-server/hosting-on-linux.md) * [Server settings](hosting-a-server-with-northstar/server-settings/README.md) * [Startup arguments](hosting-a-server-with-northstar/server-settings/startup-args.md) diff --git a/docs/hosting-a-server-with-northstar/dedicated-server/best-practices.md b/docs/hosting-a-server-with-northstar/dedicated-server/best-practices.md deleted file mode 100644 index 5741452a..00000000 --- a/docs/hosting-a-server-with-northstar/dedicated-server/best-practices.md +++ /dev/null @@ -1,43 +0,0 @@ ---- -description: Tweaks and tricks to improve both your experience in hosting and others' in playing on your server ---- - -# Best practices - -{% hint style="info" %} -TODO: If you have experience in hosting Northstar servers and want to share your knowledge, please open a [pull request](https://github.com/R2Northstar/NorthstarWiki/pulls). -{% endhint %} - -## Minimum requirements - -The current minimum requirements are as follows: - -**Requirements per server:** - -- 5GB free disk space (+3 GB if you're on windows due to origin and deps) -- 3+ cores (2 might work, though) -- 3GB+ total memory (RAM or swap will do) -- Windows 8.1 (and built-in WARP [use `-softwared3d11`] or a graphics card) + or wine 6.0.0+ (and dxvk+lavapipe+x11, wined3d+llvmpipe+x11, or a working graphics setup with dxvk or llvmpipe) (see [this](https://github.com/pg9182/northstar-dedicated) for more) - -**Per instance:** - -- 2GB RAM (this is what's actually used; it does drop to ~1.2GB after a bit) -- 15 Mbps network upload, but 10 is workable, 25 if you want to avoid players getting disconnected when going back to the lobby after a match - -**Note:** It is recommended to surpass the listed requirements. Currently the number of available servers covers the daily playerbase more than enough. If you're planning to host public servers for the community it is therefore recommended to either fill a niche (like a gamemode that is so popular that all existing servers are full) or provide a better service than existing hosts (less lag, more stable, etc.). - -## Monitoring - -You can set the Convar `ns_should_log_all_clientcommands` to `1` to log all client commands. This includes both benign things like the command a client sends to server to respawn after death but also nefarious, like a malicious client calling `emit`, a command that before being patched out allowed clients to spam voice lines to other clients. - -Due to the increased verbosity `ns_should_log_all_clientcommands` is set to `0` (disabled) by default but should be enabled in cases where you want to investigate suspicious activity on your server. - -## Optimization Commands (Optional) - -| Command | Description | -| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ | -| `net_compresspackets 1` | Enable compress packets | -| `net_compresspackets_minsize 64` | Decrease usage from ~12-16 mbps to ~6-8 mbps on 20 player PVP server and ~9-12mbps to ~5-7 mbps on 12 player gun game server | -| `sv_maxrate 127000` | Sets the maximum bandwidth rate allowed (both incoming/outcoming) per second (in bytes) | - -**Note:** The effect is dependent on your network, system, etc. Therefore, you should really add the command one by one and test it to see if there is any benefit for your server.