Raised This Month: $ Target: $400
 0% 

Multiple servers from same SRCDS installation => Bad?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Neevar
Senior Member
Join Date: Mar 2014
Old 09-08-2014 , 01:41   Multiple servers from same SRCDS installation => Bad?
Reply With Quote #1

Hi guys,

I've read this on lots of forums but no one seems to have any concrete reason about this.

Is it true that running multiple servers from the same SRCDS is bad? Like does it really cause stability issues, performance issues, LAG?

If i make separate folders for each server, but make a symlink for all the standard stuffs like maps, models, materials and sounds, etc to save space, would that still be considered as sharing the same directory and make things unstable?

I intend to run pure servers and also heavily modded servers

Would running the pure servers in the same directory be ok?
Neevar is offline
Sarabveer
Veteran Member
Join Date: Feb 2014
Old 09-08-2014 , 07:05   Re: Multiple servers from same SRCDS installation => Bad?
Reply With Quote #2

It's not bad, but you should fork the server (Have a Separate SourceMod/CFGS)
__________________
Sarabveer is offline
Amroth
Senior Member
Join Date: Apr 2013
Location: /root
Old 09-08-2014 , 08:04   Re: Multiple servers from same SRCDS installation => Bad?
Reply With Quote #3

I've shared maps folders to 20 servers without any problem.

I think its ok to do for models, materials, sounds too.
Amroth is offline
Neevar
Senior Member
Join Date: Mar 2014
Old 09-08-2014 , 11:22   Re: Multiple servers from same SRCDS installation => Bad?
Reply With Quote #4

Quote:
Originally Posted by Sarabveer View Post
It's not bad, but you should fork the server (Have a Separate SourceMod/CFGS)
can you link me to more information about this forking?

I've never really heard it before.

is it like

i make 4 sm folders
each instance i point to 1 sm folder?
Neevar is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 09-08-2014 , 12:42   Re: Multiple servers from same SRCDS installation => Bad?
Reply With Quote #5

Use linux.
Make a common repository (steamcmd installation), then make 1 folder for each server, COPY instance specific files and make symbolic links to common files.

I've used this layout and it works very well.
Also you get IO improved because of disk cache. (Remember you load big files once on disk cache this way).
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
Neevar
Senior Member
Join Date: Mar 2014
Old 09-08-2014 , 22:26   Re: Multiple servers from same SRCDS installation => Bad?
Reply With Quote #6

Quote:
Originally Posted by joropito View Post
Use linux.
Make a common repository (steamcmd installation), then make 1 folder for each server, COPY instance specific files and make symbolic links to common files.

I've used this layout and it works very well.
Also you get IO improved because of disk cache. (Remember you load big files once on disk cache this way).

Instance specific files - server.cfg, autoexec.cfg, cfg folder, logs, sourcemod, metamod.

Should i add other files?
Neevar is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 09-09-2014 , 08:39   Re: Multiple servers from same SRCDS installation => Bad?
Reply With Quote #7

Quote:
Originally Posted by Neevar View Post
Instance specific files - server.cfg, autoexec.cfg, cfg folder, logs, sourcemod, metamod.

Should i add other files?
plugins/modules configurations, I don't know. I'm from hlds not srcds but it's almost the same.

Maybe logs folder?
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
Neevar
Senior Member
Join Date: Mar 2014
Old 09-09-2014 , 11:11   Re: Multiple servers from same SRCDS installation => Bad?
Reply With Quote #8

actually, i was a windows server user and recently ported to linux as i heard from many that linux is much more stable and better in performance wise. so i thought, why not? give it a try.

I'm trying to make those symlinks, but i'm only able to get the main folder.

The internal files are not symlinks.

I should be having all files and folder inside point to symlink right? (recursive symlinks)

Please guide me about symlinks and point me to the right direction. I'm new to symlinks... :/

I greatly appreciate your help.
Neevar is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 09-09-2014 , 12:09   Re: Multiple servers from same SRCDS installation => Bad?
Reply With Quote #9

cp -rs will create symlinks to files instead of copying them.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 09-09-2014 , 12:37   Re: Multiple servers from same SRCDS installation => Bad?
Reply With Quote #10

You can symlink:

folders: ln -s /originalfolder/somefolder /instance/
files: ln -s /originalfolder/anotherfolder/file.ext /instance/anotherfolder

So what you have to do is:

.- For full folder symlink: symlink folders
.- For folders with specific and global files, create the same folder structure and link global files, create custom files

It's a hard work. I suggest to create your own tar.gz file with your symlinks skeleton, then you can use that file to install each game instance and after that create custom files (or include default custom files in your tar file)


PS: cp -rs will work, but it's better in performance to symlink full folder and not each file.
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.

Last edited by joropito; 09-09-2014 at 12:38.
joropito is offline
Send a message via MSN to joropito
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:47.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode