How to run a Dedicated Server?

Post here if you need help setting up your server, etc.
Post Reply
Moldarin
Posts: 5
Joined: Mon Mar 20, 2006 2:34 pm
Location: Lillehammer
Contact:

How to run a Dedicated Server?

Post by Moldarin »

Hi,

How do I run a Dedicated Server and about how much bandwidth does it require to do so?

I'm not so technical with server-stuff, so please don't aske me to do stuff without explaining how to do so.

Aparche
User avatar
belenus
Round Winner
Posts: 269
Joined: Wed Nov 30, 2005 6:22 pm
Location: Cologne
Contact:

Post by belenus »

Well you need either a Windows or Linux dedicated AA server, but I would really advice to use the linux version, you have a better performance, especially on lower end hardware.

If you need it really easy, take the Windows version, although there you will get into trouble letting the server run as a service with periodically restarting it. (especially nececerry when you have a dynamic IP)

Well bandwidth, to support 16 players at same time, you should at least have 800 kBit UPLOAD rate... but the more the better... :D

At minimum you can say for upload 6kByte / player.
Download rate shouldn't matter for most broadband connections >= 2 Mbit.

I would adwise to read through the W I K I, a lot of questions are answered there.
- bel
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6712
Joined: Thu Dec 18, 2003 7:03 pm

Post by Tank Program »

Bandwith usage is no where near 6KB/s per player. It's closer to 2KB/s.
Image
User avatar
belenus
Round Winner
Posts: 269
Joined: Wed Nov 30, 2005 6:22 pm
Location: Cologne
Contact:

Post by belenus »

Tank Program wrote:Bandwith usage is no where near 6KB/s per player. It's closer to 2KB/s.
Then someone made a huge mistake in the WIKI...
- bel
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6712
Joined: Thu Dec 18, 2003 7:03 pm

Post by Tank Program »

Hmm, might have to correct that. Just, I could never run 5 servers on the same connection if bandwith usage was that high.
Image
User avatar
Z-Man
God & Project Admin
Posts: 11717
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

Three things to note here:
a) The bandwidth grows roughly with the square of the number of players, because everything everyone does has to be transmitted to everyone.
b) There is a huge difference between peak bandwidth and average bandidth usage. Peak bandwidth on fortress easily goes up to 8K/player (connect with maximum incoming rate set to 4K/sec and see what happens), but the average is more like 3K/sec. For a single server on an not-so-fat pipe, the peak bandwith usage is important. For many servers sharing a fat pipe, the average is more important, because the peaks get washed out.
c) Peak bandwidth depends on your game settings. With fast turns/low CYCLE_DELAY, players can turn spam your server and lag everyone out by generating exuberant bandwidth use.

The end result: you need to experiment. You can't change your bandwith easily, just set up your server with your desired settings and watch how many people it can support without lag attacks, then cap the maximum client count to that.
User avatar
Lucifer
Project Developer
Posts: 8751
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas

Post by Lucifer »

THe number in the wiki comes from a post by zman on the subject where he gave a guy some pretty detailed bandwidth tweaking support that someone thought would be nice on the wiki. :)
Check out my YouTube channel: https://youtube.com/@davefancella?si=H--oCK3k_dQ1laDN

Be the devil's own, Lucifer's my name.
- Iron Maiden
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6712
Joined: Thu Dec 18, 2003 7:03 pm

Post by Tank Program »

Hmm, well, I append 'on average for me' to my previous statements then.
Image
User avatar
belenus
Round Winner
Posts: 269
Joined: Wed Nov 30, 2005 6:22 pm
Location: Cologne
Contact:

Post by belenus »

So, what should one set MAX_OUT_RATE to with 608 kbit upload and 10 players? =)
- bel
Moldarin
Posts: 5
Joined: Mon Mar 20, 2006 2:34 pm
Location: Lillehammer
Contact:

Post by Moldarin »

OK, OK...

How much a month? A couple of gigs?

And how do I set it up?
User avatar
Z-Man
God & Project Admin
Posts: 11717
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

Belenus: if the data you give is fixed, obviously 608/8/10 which is about 4 for our purposes.

Moldarin: Now that hugely depends on how popular it is :) A popular server can easily consume 100Gbyte per month. My test server for the 0.2.7.1 release certianlty didn't go above 2 Gbyte per month, my bill would have noticed that. Personally, I wouldn't run a server on a home conenction without a flat fee.

As to the how, really read the wiki. Everything we could tell you without you asking specific questions is already covered there.
User avatar
belenus
Round Winner
Posts: 269
Joined: Wed Nov 30, 2005 6:22 pm
Location: Cologne
Contact:

Post by belenus »

z-man wrote:Belenus: if the data you give is fixed, obviously 608/8/10 which is about 4 for our purposes.
608/8/10 is = 7,6
- bel
User avatar
Z-Man
God & Project Admin
Posts: 11717
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

Whoops :)
Post Reply