nilswx / strikd

Java game server software for 'Strik'
http://github.com/nilswx/strik
1 stars 0 forks source link

[Infrastructure] Find & setup hosting + infrastructure! #4

Open matthijn opened 10 years ago

matthijn commented 10 years ago

Well, can't forget this! Setup hosting for the game. (e.g multiple VPS?) and hosting for the landing page.

Originated from here

nilswx commented 10 years ago

VPS 1: database, web (public + internal + load balancer)

Database

Latest stable distribution of PostgreSQL. Maybe backups to remote servers. (like the game servers?)

Web

This box will also run Apache + PHP with APC for the following web things:

Internal

Public

DNS

The following DNS hosts need to be routed to this server:

nilswx commented 10 years ago

VPS 2-99: game servers

Java

Need to run Java 7. (maybe Java 8 OpenJDK JVM which is even faster!)

strikd

All run the latest build of 'strikd' and are connected to the database on box 1. They automatically register themselves with the server cluster to share statistics and the load balancer does the rest.

DNS

Every gameserver box needs it's own public IP! (put in strikd.properties) Would be even cooler if we register them as DNS records, eg serv-bono.strik.it, serv-puze.strik.it, etc. :+1:

nilswx commented 10 years ago

Separate database server?

Instead of combining web + database into VPS 1, we might want to do:

The database server and the load balancer are the most crucial parts of the infrastructure. They need to be up at all times. The web server is connected to the internet and could receive DDoS attacks. We don't want it to slow down the database. (which would be running on the same machine)

This is why the database server would be firewalled to only accept connections from the other servers.

nilswx commented 10 years ago

VPS services

OS

CentOS or latest Ubuntu Server.

Hardware

Firewalling

Network topology