8000 GitHub - teoyaomiqui/testk
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

teoyaomiqui/testk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic Apache2 webstack

Vagrant deployment of 2 apache2 webservers behind loadbalancer and jenkins as server monitor(POC):

Topics

Deployment technological stack

This basic deployment is provided to demonstrate potential for the following technological stack:

  • Ubuntu 16.04 xenial linux distribution
  • Vagrant
  • Saltstack as Vagrant provisioner
  • Libvirt with KVM driver and Vagrant virtualization provider

Host machine requirements:

  • Ubuntu 16.04 Xenial host machine with 4G of RAM
  • Vagrant version 1.8.7 (patch has to be applied to fix the reported bug
  • KVM + Libvirt stack installed
  • Vagrant libvirt-plugin version 0.0.35
  • Internet access

Deployment topology overview

  • All nodes connected with private isolated network without forwarding and DHCP
  • 2 apache2 webservers, on standalone virtualized hosts, behind single loadbalancer
  • Haproxy reverse proxy, on standalone virtualized host, balancing webservers with roundrobin balancing strategy
  • Jenkins java application as monitor, on standalone virtualized host, with a job configured to check webservers via Haproxy every hour during nights (build fails if 2nd webserver is served, succeeds if 1st webserver is served)
  • Vagrant is used on host machine to virtualize nodes
  • Saltstack is used as Vagrant provisioner

Deployment instructions:

  • Clone this repo:
git clone https://github.com/teoyaomiqui/testk
  • Carefuly edit deployment_model.yaml file to adjust deployment to match your needs, read comments to understand how they can impact the deployment:
vim deployment_model.yaml
  • Run prepare_env.sh script to prepare Vagrant environment with sudo privileges, script installs Libvirt and KVM stack and patch Vagrant to fix vagrant issue:
./prepare_env.sh
  • Use vagrant to deploy virtual machines:
vagrant up --provider libvirt

Limitations:

  • This is environment infrastructure is limited to be used only on Ubuntu 16.04 LTS Xenial host machine
  • Vagrant box used was yk0/ubuntu-xenial
  • Versions specified in requirements are must, and chosen to be most stable of what currently is available
  • If prepare_env.sh script isn't used, be sure to fix reported bug
  • Host machine CPU has to support hardware virtualization

External links and documentation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published
0