Author Topic: Running Multiple servers on 1 machine.  (Read 8515 times)

demonheadx

  • Posts: 13
  • Turrets: +0/-2
Running Multiple servers on 1 machine.
« on: April 08, 2007, 06:53:28 pm »
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

  • Posts: 915
  • Turrets: +99/-76
    • ben's machinery
Running Multiple servers on 1 machine.
« Reply #1 on: April 08, 2007, 08:29:54 pm »
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

  • Posts: 88
  • Turrets: +0/-0
    • http://noobs4boobs.free.fr
Running Multiple servers on 1 machine.
« Reply #2 on: April 08, 2007, 09:45:40 pm »
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

  • Posts: 918
  • Turrets: +1/-1
Running Multiple servers on 1 machine.
« Reply #3 on: April 08, 2007, 10:49:42 pm »
Yes it is possible.
You need separate tremulous directories. Ask robug if you ever see him. He's running 3 servers on one box.
img]http://dvclan.org/statsig/statsig.php/3826/4.jpg[/img]

f0rqu3

  • Guest
Running Multiple servers on 1 machine.
« Reply #4 on: April 08, 2007, 11:18:52 pm »
iirc you need to use different ports

DoorKnob

  • Posts: 88
  • Turrets: +0/-0
    • http://noobs4boobs.free.fr
Running Multiple servers on 1 machine.
« Reply #5 on: April 08, 2007, 11:20:41 pm »
It automacticaly switches to the next open port at server start up.
roud Ex-Leader of the Mighty UVache!

Odin

  • Spam Killer
  • *
  • Posts: 1767
  • Turrets: +113/-204
    • My Website
Running Multiple servers on 1 machine.
« Reply #6 on: April 08, 2007, 11:27:41 pm »
Quote from: "bazuka_poo"
Yes 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

  • Posts: 833
  • Turrets: +97/-80
Running Multiple servers on 1 machine.
« Reply #7 on: April 09, 2007, 12:17:13 am »
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

  • Posts: 2612
  • Turrets: +253/-250
    • Paradox Designs
Running Multiple servers on 1 machine.
« Reply #8 on: April 09, 2007, 12:29:07 am »
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

  • Posts: 793
  • Turrets: +23/-58
    • Zilla Clan
Running Multiple servers on 1 machine.
« Reply #9 on: April 09, 2007, 01:37:07 am »
yea, if you're using linux i can give you a hand, if you're using windows..sucks for you.

-:GoDz:-Devil

  • Guest
Running Multiple servers on 1 machine.
« Reply #10 on: April 11, 2007, 02:16:19 pm »
Quote from: "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.

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

  • Posts: 56
  • Turrets: +0/-0
Running Multiple servers on 1 machine.
« Reply #11 on: April 17, 2007, 05:03:42 am »
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

  • Posts: 75
  • Turrets: +0/-0
Running Multiple servers on 1 machine.
« Reply #12 on: April 17, 2007, 10:12:25 am »
Quote from: "[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


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.
URL=http://www.beer-garden.org/bg2/][/URL]

benmachine

  • Posts: 915
  • Turrets: +99/-76
    • ben's machinery
Running Multiple servers on 1 machine.
« Reply #13 on: April 17, 2007, 02:00:46 pm »
Quote from: "[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

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

  • Posts: 56
  • Turrets: +0/-0
Running Multiple servers on 1 machine.
« Reply #14 on: April 17, 2007, 03:39:07 pm »
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

  • Posts: 56
  • Turrets: +0/-0
Running Multiple servers on 1 machine.
« Reply #15 on: April 17, 2007, 04:29:14 pm »
Now im wondering about having different admin files so theres different admins on my servers.
Any suggestions of fixing this ?

Odin

  • Spam Killer
  • *
  • Posts: 1767
  • Turrets: +113/-204
    • My Website
Running Multiple servers on 1 machine.
« Reply #16 on: April 17, 2007, 05:40:15 pm »
Quote from: "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.
Er, no. Easier to just do tremded +exec server1.cfg tremded +exec server2.cfg and so on.

benmachine

  • Posts: 915
  • Turrets: +99/-76
    • ben's machinery
Running Multiple servers on 1 machine.
« Reply #17 on: April 17, 2007, 07:51:07 pm »
Quote from: "[NubS
Rabbitt"]Now 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