Skip to content
Ricky Ng-Adam edited this page Aug 11, 2016 · 27 revisions

Introduction

Based on:

Environment setup (Virtual Machine)

We've selected Ubuntu 14.04 as our preferred Linux distribution.

We use vagrant to create VM:

vagrant init ubuntu/trusty64
vagrant up 
vagrant ssh

Project

Overall goal:

  • Setup 3-tier WebApp architecture and optimize:
  • Webserver: (NGINX)
  • Application server (NodeJS)
  • database (PostgreSQL)

System administration specific tasks:

  • optimize for China (packages from Chinese mirrors)
  • security
  • automate setup and installation
  • test different workloads
  • benchmark and tune operating system and each tier
  • depending on simulated load and hardware profile, select:
  • sysctl settings tweaks
  • service configuration and optimization
  • filesystem / configuration
  • VPN setup
  • services monitoring
  • load monitoring (memory, disk, cpu)
  • log monitoring
  • networking configuration
  • firewall configuration

Measurement/test

  • transactions or queries per second

installation

 apt-get install nginx postgresql nodejs
Clone this wiki locally