Author Topic: The New AGOA  (Read 1389 times)

Offline gbrewster

  • AGOA admin
  • Administrator
  • Sr. Member
  • *****
  • Posts: 412
  • Karma: 20
  • Black and Yellow
    • View Profile
    • AGOA!
The New AGOA
« on: December 09, 2011, 07:18:49 pm »
Hopefully you won't notice, but we will be experiencing downtime sometimes here soon. With the help of Scott, I'm attempting to set up a proper server that will load balance between two servers, and replicate so we have less downtime. I hope this will make things pretty.... That's all. I will be posting the process since it is a big project.
I am the admin. That is all.

Offline frogman

  • Administrator
  • Full Member
  • *****
  • Posts: 186
  • Karma: 16
  • Yes, this is frog
    • View Profile
    • AGOA Game
Re: The New AGOA
« Reply #1 on: December 09, 2011, 07:28:32 pm »
Will you use AD DS?

Offline gbrewster

  • AGOA admin
  • Administrator
  • Sr. Member
  • *****
  • Posts: 412
  • Karma: 20
  • Black and Yellow
    • View Profile
    • AGOA!
Re: The New AGOA
« Reply #2 on: December 09, 2011, 08:00:00 pm »
No, I will be using Round Robin DNS and rsync to replicate to other servers.
« Last Edit: December 09, 2011, 09:47:38 pm by gbrewster »
I am the admin. That is all.

Offline gbrewster

  • AGOA admin
  • Administrator
  • Sr. Member
  • *****
  • Posts: 412
  • Karma: 20
  • Black and Yellow
    • View Profile
    • AGOA!
Re: The New AGOA
« Reply #3 on: December 09, 2011, 08:51:55 pm »
So far I have been experimenting with Virtualmin. It's a webhosting control panel, and it's a lot better than EHCP, because of it's features. EHCP seemed to crash a lot of things, so I'm planning on moving over before things get too out of hand. So sometime in the next week or so, I will be moving my websites over to the new control panel. But with this, will come downtime. And I don't like downtime. So I'm going to have a few of my sites replicate to another server, so we never have downtime :P right now my setup is an internal webserver running off a DNS that is linked to one virtualmin server. I am working on installing the second virtualmin server, and trying out the DNS failover, then it's off to replication, and then freaking subdomains, and profit.
I am the admin. That is all.

Offline Mad Russian

  • Minecraft Admin
  • Minecraft Admins
  • Sr. Member
  • ******
  • Posts: 406
  • Karma: 13
    • View Profile
    • Building Projects
Re: The New AGOA
« Reply #4 on: December 09, 2011, 09:24:14 pm »
That is freaking awesome :D

I rarely use that kind of language, but no joke :D
If you need anything Minecraft (server) related. Ask this guy.

Offline gbrewster

  • AGOA admin
  • Administrator
  • Sr. Member
  • *****
  • Posts: 412
  • Karma: 20
  • Black and Yellow
    • View Profile
    • AGOA!
Re: The New AGOA
« Reply #5 on: December 09, 2011, 09:35:26 pm »
Well the test was successful! My current setup is a bit jenky, but it works for the test. Right now I've tested my DNS failover, and it seems to have passed the first test.
for DNS and A record points the client to an IP so in this example I have two servers running sites, one is a "SERVER DOWN" message, and the other is "SERVER UP".

So I have a windows box running DNS, so I add two records for DNS. (my domain is agoa.local)
A record replicate.agoa.local = 192.168.4.5
A record replicate.agoa.local = 192.168.4.6

So when server 192.168.4.5 does down, it will load 192.168.4.6 to say SERVER DOWN!. It's a really cool concept, and I'm looking to working on it more. I would make a transfer of all my stuff tonight, but I can't figure out the freaking subdomains :P. But someday I will, and I'll get everything working.

New problems! ---

This DNS failover is called Round Robin DNS, and it is considered load balancing. So if one server is closer than another, depending on which DNS is hits, it will find the closest one, and will display that. With that said, I don't quite know if it works well with failover, because if the SERVER DOWN site is closer than the main site, then we're looking at trouble for everyone who runs off that DNS. I'm looking into how to rig it so it's only failover.

I am the admin. That is all.

Offline gbrewster

  • AGOA admin
  • Administrator
  • Sr. Member
  • *****
  • Posts: 412
  • Karma: 20
  • Black and Yellow
    • View Profile
    • AGOA!
Re: The New AGOA
« Reply #6 on: December 09, 2011, 09:45:01 pm »
Okay so I've got a few pics, and some issues.

Once it's locked into the other server, it stays there until that server goes down. Which is kind of a bummer. Still looking into fixing that though. Here's proof of my tests.

Planning
« Last Edit: December 09, 2011, 09:46:46 pm by gbrewster »
I am the admin. That is all.

Offline Mad Russian

  • Minecraft Admin
  • Minecraft Admins
  • Sr. Member
  • ******
  • Posts: 406
  • Karma: 13
    • View Profile
    • Building Projects
Re: The New AGOA
« Reply #7 on: December 09, 2011, 10:14:40 pm »
Good luck with that. How it all works out :D
If you need anything Minecraft (server) related. Ask this guy.

Offline gbrewster

  • AGOA admin
  • Administrator
  • Sr. Member
  • *****
  • Posts: 412
  • Karma: 20
  • Black and Yellow
    • View Profile
    • AGOA!
Re: The New AGOA
« Reply #8 on: December 09, 2011, 10:52:31 pm »
rsync is a bit more confusing. Since I have to replicate mysql databases and websites, it's not an instant process, but it is somewhat nice to use
Basiclly both servers have to be running rsync, and by allowing usernames through you can share files in between the two. Kind of cool I think. Anyway

Code: [Select]
motd file = /etc/rsyncd.motd
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock

[simple_path_name]
   path = /rsync_files_here
   comment = My Very Own Rsync Server
   uid = nobody
   gid = nobody
   read only = no
   list = yes
   auth users = username
   secrets file = /etc/rsyncd.scrt

This is the rsyncd.conf files contains this.

You know what... Here's the link.

to replicate, you need to use this command.

Code: [Select]
rsync -avz /root/temp/ thegeekstuff@192.168.200.10:/home/thegeekstuff/temp/
This connects and replicates the /root/temp folder to /home/thegeekstuff/temp

So there you have it. A quick rundown of rsync.


If has a few issues, but I'm hoping it will work out. I'm too tired right now to figure out failover crap completely, but I don't quite know if it's going to work.
rsync has a few issues too, I have to have a cronjob update files every so often, so like an hour, which isn't too bad, but still. It's not instant. Either way a backup would be nice.
I am the admin. That is all.

Offline Mad Russian

  • Minecraft Admin
  • Minecraft Admins
  • Sr. Member
  • ******
  • Posts: 406
  • Karma: 13
    • View Profile
    • Building Projects
Re: The New AGOA
« Reply #9 on: December 09, 2011, 11:40:18 pm »
No worries Greg, we can deal with a couple errors here an there for a little while. How long would it take you to switch the site over? One day? You might just be making more work for yourself here.

But anyhow, thanks for the work you put into AGOA. You probably don't hear that often :D
If you need anything Minecraft (server) related. Ask this guy.

Offline gbrewster

  • AGOA admin
  • Administrator
  • Sr. Member
  • *****
  • Posts: 412
  • Karma: 20
  • Black and Yellow
    • View Profile
    • AGOA!
Re: The New AGOA
« Reply #10 on: December 28, 2011, 04:12:32 pm »
I've had to put off this project until I have time, I'll be spending a lot of time with VPN's and Phone systems, and will eventually get back to that crap.
I am the admin. That is all.