Monthly Archives: September 2015

rAge 2015 Post 3

Today we add nginx to out Monitorix, and install BandwidthD for extra bandwidth monitoring. I would like to see who our biggest bandwidth movers are. I use bandwidthd on a few PFSense boxes I run, and I love the way it works 🙂

Nginx seems to have its own monitoring running on localhost:
w3m localhost
Active connection: 1
server accepts handled requests
2147 2147 17038
Reading: 0 Writing: 1 Waiting: 0

Monitorix seems to know about this, and so we just need to tell it to go looking.
Edit /etc/monitorix/monitorix.conf:
Find this line: nginx = n
Make it:  nginx = y
Change any other things you would like in this file, then just save it.

Now, you should see the graph in Monitorix 🙂

Now we wanna install BandwidthD, and link it into Monitorix (Sorta)
Run:
apt-get install bandwidthd

And complete the installation.

Then we wanna add it to the same webservice as monitorix. We run:
ln -s /var/lib/bandwidthd/htdocs/ /var/lib/monitorix/www/bandwidth

Now we just open: http://192.168.1.12:8080/monitorix/bandwidth/index.html
Now we have more pretty graphs! 🙂

The data may not save on a reboot though, so that is something we have to look into…

rAge 2015 Post 2

So today we will take a look at setting up Monitorix on our Ubuntu box.

We will use this to see pretty graphs of our server, and find out what it is doing, and how it is coping with the loads put on it.

First, we have to add the respository
Add this line at the end off /etc/apt/sources.list
deb http://apt.izzysoft.de/ubuntu generic universe

Then be sure to apt-get update
Then go ahead and install the pacakage:
apt-get install monitorix

By default it runs on port 8080 🙂

[Images taken from http://www.monitorix.org]

rAge LAN 2015 Post 1

So I am a part of building the NAG LAN at the biggest Gaming Expo in South Africa.
rAge

My main purpose at the event will be to set-up the the LAN cache, as done here by Multiplay.

I have 2 x the below to work with:
2 x Intel Xeon CPU E5-2690 v2 @ 3.00 GHz, 10 Cores, 20 Logical Processors
1 x SSD 160GB
5 x SSD 120GB
64 GB RAM
8 x 1GB Eth

These are some pretty BEASTY servers.

Lets just crunch some numbers quick:
There are 10 + 10 physical cores – Which gives us 20 physical cores.
There are 20 + 20 virtual cores – Which gives us 40 virtual cores. Madness?

Then if we were to put all 10 x 120GB SSDs in RAID 0 in one server…
Lets assume that the SSDs have a read/write of around 500MB/s these days.
That is 5GB/s of space. Pure space.

And we have 8GBps of Network traffic, so even in a setup like this, the storage is still a bottleneck.
We have a 5.2GBps internet connection coming into the event, so this would be the “backhaul” for us to connect to Steam servers and get stuff for the cache.
But why would we even want a SteamCache with a connection like that?!
Well, we would like to make sure as much of that pipe is left open for games, other downloads, torrents, whatever. If we can take some duplication off of that connection and keep things outside the LAN as quick as we can, that would be a win.

So if we were to put all the 120GB SSDs into one server, we would only have 1.2TB of space. This really concerned me at first, but then I was made aware that nginx has something to deal with this:
“The special “cache manager” process monitors the maximum cache size set by the max_size parameter. When this size is exceeded, it removes the least recently used data.”
==
if all-cache.size > max-size:
del *the most inactive cache* until size < max-size
==

What a relief! Now that guys Sims 2 game can be purged from the cache once he and his friends have downloaded it.

The OS we will use at the event is Ubuntu. I find it easier to work with, and I am more comfortable using it. If something were to go wrong, I wouldn’t need to sit there with a FreeBSD for Dummies.

I will keep the blog up to date as I go on 🙂