Skip to content
imac2009 edited this page Mar 11, 2016 · 5 revisions

LANCACHE Wiki

Based on README.md

About

This Wiki should guide you through the initial setup process, maintaining and troubleshooting the Lancache.

Requirements

Software / OS

  • Ubuntu 14.04 LTS Server x64

Hardware

I can not tell you the exact minimum requirements as they really are depending on your need. But I gathered some informations from past events

Example: Serving around 250 Clients at GnB LAN

  • Lancache VM
    • CPU: 4 Cores, 8 Threads
    • RAM: 2 GB
    • HDD 1: 1x 20 GB System vHD
    • HDD 2: 1x 500 GB cache storage vHD
    • IFs: 1 Gbit Intel NIC
  • Peak usage 400-500mb RAM CPU at 5-10% HDDs were at low IOs Storage was at 90 GB after 60h uptime

ESXI 6.0 Host CPU: 2x Intel Xeon E6510 (4x 2.40 GHz) RAM: 32 GB HDD: 830 GB (RAID 5 Array of 5 disks) IFs: 4 Gbit Intel NICs

Concluding: A bare minimum installation of Ubuntu 14.04 LTS Server and nginx is pretty resource friendly. Keep in mind that requirements will raise, depending on how many clients are going to request content from your server. You do not have to concern RAM or CPU shortages if your building up a somewhat decent platform. A Core i3-2xxx (Sandy Bridge) and upwards should do the job, 2 GB of RAM was plenty enough. You SHOULD focus on scale your HDDs and network interfaces since in my experiences those components will be bottlenecking you first as your LAN grows.

Network

  • Has to be capable of 12 additional IP addresses for
    • 1 physical network interfaces
    • 11 virtual network interfaces
  • Gigabit preferred

Preparation

Plan ahead: TAKE NOTES of your IP addresses. Chances messing things up by failing to use consistent IPs in configuring process are high.

Installation Process

  1. Get the needed packages, assuming a bare minimal Ubuntu 14.04 this will be:

sudo apt-get install build-essential libpcre3 libpcre3-dev zlib1g-dev libreadline-dev libncurses5-dev libpcre3-dev git curl

  1. Open the DHCP client configfile: sudo nano /etc/dhcp/dhclient.conf

2.1) Add the lines: prepend domain-name-servers 8.8.8.8, 8.8.4.4;

  1. Clone the lancache git to your server: git clone -b development http://github.com/bntjah/lancache

  2. Download and extract nginx 1.9.9 sourcecode curl http://nginx.org/download/nginx-1.9.9.tar.gz | tar zx

Clone this wiki locally