Tremulous Forum

Community => Servers => Topic started by: hosler on November 12, 2008, 05:49:51 pm

Title: Multiple Servers
Post by: hosler on November 12, 2008, 05:49:51 pm
How many of you run more than one trem server on a box? Do you just run the trem server from the users home dir?

Do this image shit anymore, and earn a ban -Paradox
Title: Re: Multiple Servers
Post by: David on November 12, 2008, 07:00:27 pm
One user per server.
Title: Re: Multiple Servers
Post by: Lakitu7 on November 12, 2008, 10:17:55 pm
Which doesn't have to be the case, but it's easier that way. Set up a user for each server, put them all the in the same group, then give your own user access to that group. You can use a common fs_base directory pretty easily, but you need different homepaths (which would by default be in those users' home directories).
Title: Re: Multiple Servers
Post by: Undeference on November 13, 2008, 02:17:07 am
Of 200 protocol 69 servers queried, 75 were hosted on the same 26 IP addresses. The other 125 servers had unique IP addresses. That doesn't actually say how many servers are run on the same system, only that it is fairly common.

I run two servers with the same user and I find it more convenient than using separate users. But maybe that's just me.
Title: Re: Multiple Servers
Post by: kevlarman on November 13, 2008, 02:31:07 am
Of 200 protocol 69 servers queried, 75 were hosted on the same 26 IP addresses. The other 125 servers had unique IP addresses. That doesn't actually say how many servers are run on the same system, only that it is fairly common.

I run two servers with the same user and I find it more convenient than using separate users. But maybe that's just me.
there's a race condition on autogen.cfg and possibly admin.dat if you do that.
Title: Re: Multiple Servers
Post by: Lakitu7 on November 13, 2008, 03:24:24 am
You'd just have to fiddle with fs_home, I imagine.
Title: Re: Multiple Servers
Post by: kevlarman on November 13, 2008, 03:28:35 am
You'd just have to fiddle with fs_home, I imagine.
in which case it's faster to useradd -m -k /path/to/existing/server newuser, it's also a bit easier to manage multiuser screens if each server has its own user.
Title: Re: Multiple Servers
Post by: Amanieu on November 13, 2008, 05:39:42 am
Actually I like it better to have all my servers in one screen, makes it easier to switch between servers. I just have a startup script for each server which gives each of them a separate homepath.
Title: Re: Multiple Servers
Post by: Undeference on November 13, 2008, 05:49:33 am
there's a race condition on autogen.cfg and possibly admin.dat if you do that.
Using the same autogen_server.cfg or admin.dat would be rather dumb imo.
Actually I like it better to have all my servers in one screen, makes it easier to switch between servers.
Exactly.
Title: Re: Multiple Servers
Post by: Archangel on November 13, 2008, 01:46:32 pm
personally, i add a user (trem_*), and set their shell to a script that reattaches screen if the screen is running, otherwise starts the trem server. therefore my clients can just ssh into the console :]
Title: Re: Multiple Servers
Post by: kevlarman on November 13, 2008, 07:51:27 pm
Using the same autogen_server.cfg or admin.dat would be rather dumb imo.
so you set fs_homepath?
Actually I like it better to have all my servers in one screen, makes it easier to switch between servers.
Exactly.
this doesn't work if the users allowed to attach to each screen are different. (unless you spend a lot of time setting up the screen permissions)
Title: Re: Multiple Servers
Post by: benmachine on December 01, 2008, 04:17:43 pm
My autogen_server.cfg is a symlink to /dev/null anyway :)