News:

Come Chat with us live! Learn how HERE!

Main Menu

Running Multiple servers on 1 machine.

Started by demonheadx, April 08, 2007, 06:53:28 PM

demonheadx

I want to know if it's possible if i can run multiple servers on 1 box.

I want each server to run  a different mod.

Can this be done with linux and windows?

Thanks for your help!

benmachine

Yes, it's possible, but it's probably not a good idea to divide your resources any more than necessary.
You can, in fact, run one tremded several times with different fs_games
benmachine

DoorKnob

Yes i do it. Just make sure if you want a Normal server dont put the Dom VM in the base folder and try to start a normal server. >_< It took me forever to figure out why my server didn't work. XD
roud Ex-Leader of the Mighty UVache!

Rawr

Yes it is possible.
You need separate tremulous directories. Ask robug if you ever see him. He's running 3 servers on one box.

f0rqu3


DoorKnob

It automacticaly switches to the next open port at server start up.
roud Ex-Leader of the Mighty UVache!

Odin

Quote from: bazuka_pooYes it is possible.
You need separate tremulous directories. Ask robug if you ever see him. He's running 3 servers on one box.
No you don't. You can use the same binary more than once.

tuple

Run it under different users.  Config info is stored in the individual users home directories, the rest they can share like map files, binaries, etc. Configure for different IPs or ports though.

Paradox

yea, you do need different ports or DNS.

At a lan party i set up, we had access to an XSERV cluster, 50+ machines in a supercluster (acting as one comp), and we ran 15 trem games at once, plus one domination, one balance mod, and one tremx.

∧OMG ENTROPY∧

Smokey

yea, if you're using linux i can give you a hand, if you're using windows..sucks for you.

-:GoDz:-Devil

Quote from: tupleRun it under different users.  Config info is stored in the individual users home directories, the rest they can share like map files, binaries, etc. Configure for different IPs or ports though.
Yes thats what I do, I run about 6 servers off one box. But most of them are not different accounts, I only have 3 accounts and running 6 servers.  I just got a new box and thinking of throwing more servers on it.  But thats what I do.

[NubS] Rabbitt

ok i have figured out how to run both servers but need to figure out how to have seperate server.cfg's in order for my servers to be named differently

Shafe

Quote from: [NubS] Rabbittok i have figured out how to run both servers but need to figure out how to have seperate server.cfg's in order for my servers to be named differently

Specify the IP, Port and Server config file on the startup command line:

./tremded.x86 +set net_ip 72.36.180.26 +set dedicated 2 +exec server.cfg +set net_port 27960

see bolded text.

benmachine

Quote from: [NubS] Rabbittok i have figured out how to run both servers but need to figure out how to have seperate server.cfg's in order for my servers to be named differently
normally you start up with +exec server.cfg right?
just start your other servers with +exec server2.cfg or +exec balance.cfg or +exec ihaveadogwithnonose.cfg
As long as those files exist and are accessible by the binary (so they're somewhere sensible), it doesn't matter what they are called.
benmachine

[NubS] Rabbitt

Ok im not understanding if i need to put the net poet part into my .bat file or not.
I changed the port number and all but i would think it would work witht the same ip right ?

[NubS] Rabbitt

Now im wondering about having different admin files so theres different admins on my servers.
Any suggestions of fixing this ?

Odin

Quote from: tupleRun it under different users.  Config info is stored in the individual users home directories, the rest they can share like map files, binaries, etc. Configure for different IPs or ports though.
Er, no. Easier to just do tremded +exec server1.cfg tremded +exec server2.cfg and so on.

benmachine

Quote from: [NubS] RabbittNow im wondering about having different admin files so theres different admins on my servers.
Any suggestions of fixing this ?
The g_admin cvar points to the admin file, so go into the serverX.cfg file for each server and insert the line set g_admin "admin2.dat" or "balance.dat" or "howdoeshesmell.dat".
benmachine