-
-
Notifications
You must be signed in to change notification settings - Fork 841
Description
Hi,
I've just ventured into the world of linux for game server hosting and found your script very useful. I hope this might be the right forum to submit my text, if not, please advise.
I would like to list some of the issues I had and perhaps it might:
- help others
- provide ideas for things that could possibly be included in your script
- provide confirmation on some assumptions I made
I've tried CentOS 6.4 minimal OS & Ubuntu.
Architecture: 2x L5520 with 36GB memory. I'm running hyper-v (1 router, 2 webservers & a gameserver)
I initially had a lot of issues with:
- tmux for console access
- iptables
- private/public ip for lobby connections
- optimizations such as RTKernels / process boost
First issue: port forwarding on vyatta (http://docs.vyatta.com/6.6/Quick%20Start/Welcome.1.1.html). no matter what I tried, I could not connect to the CentOS game server, I verified that my NAT port forwarding rules were configured correctly by setting up the Ubuntu server, which worked but had very unstable fps.
Second issue: tmux didn't work at all, I ended up recompiling tmux after which things started working: http://blog.assarbad.net/20130116/tmux-is-great-but-how-to-build-on-lucid-lynx/
Third issue: iptables, I finally figured out the iptables were the reason I couldn't connect and this solved my issue: https://forums.alliedmods.net/showthread.php?t=165560
Fourth issue: console: connext worked, but joining via the community browser didn't. I solved this by adding -ip & +net_public_adr to the command line parameters
performance - I was really concerned about the performance as it was horrible under ubuntu. However, I read up on RT Kernels, I figured out CentOS 6.4 comes compiled with 1000 HZ config, but NOHZ=on. I added the NOHZ=off option to the grub boot.config, although that hardly changed anything.
Now I have just finished the script to boost the srcds_linux process. I will paste the script below - please advise if what I'm doing makes sense or not. the only thing left for me to do is set up the cron jobs, but seems crontab is no longer used in CentOS 6+ and I wonder if it is better to install crontab or work with the newer tools?
srcds_boost script for vanila CentOS 6.4:
https://gist.github.com/so0k/7446931