How should my server setup work/look/be?

Posted August 30, 2015 1.4k views

specs for all servers:
OS: Ubuntu 14.04
PN: Yes
RAM: 512MB, except webserver which is 2GB.

God day!
I’m very new at setting up multiple servers to create a functioning environment.
In front i have NGINX on a 512MB server serving traffic over ssl. It also proxies all traffic for my mailserver and my webservers.

Here’s my current configuration:

Here are my questions to you pro’s :)

  1. Now want a email nodejs app running to view emails send them and such, should i put this on my mailserver or my webserver?
  2. Should I split my webserver into smaller servers?
  3. If i do setup a nodejs app for mails on my webserver how should it interact with the mail server to load emails, sockets?
  4. should i ghost my servers behind the nginx, except for ssh port?
  5. is it smart to tunniel my ssh connection through the nginx server to the servers behind it?
  6. how should i store my emails, nosql, or as every one else recomends; as files?
  7. tips to a newbie? :D

PS. to moderators, theres a bug when writing threads: if you select more than 10 tags, they get delete and you cant choose any of them afterwards :)


These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

These articles provide a nice high level overview of different common architectures and discusses some of the pros and cons of each. They should be a useful entry point to thinking about the the kinds of questions you’re asking:

If you’re looking for a bit of a deeper dive, this series gets into details about building out a multi-server production application setups:

The one major drawback that I can see with how you’ve currently implemented your setup is that the Nginx proxy has become a single point of failure. If it goes down, you wouldn’t be able to reach any of your other service. Depending on how critical it is for these service to be highly available, you might want to consider setting something up using Floating IPs to build something with some more redundancy. Check out:

by Mitchell Anicas
When deciding which server architecture to use for your environment, there are many factors to consider, such as performance, scalability, availability, reliability, cost, and ease of management. Here is a list of commonly used server setups, with a short description of each, including pros and cons. Keep in mind that all of the concepts covered here can be used in various combinations with one another, and there is no single, correct configuration.