-
autoscaling-demo: This demo uses one NGINX Plus instance as a load balancer with two upstream groups, one for NGINX Plus web servers and one for Elasticsearch nodes. All of the instances run in Docker containers. The demo uses both the upstream_conf and status api's. If shows creating a new NGINX Plus environment and adding and removing containers manually and with autoscaling.
-
consul-demo: This demo which spins up a bunch of docker containers shows NGINX Plus being used in conjuction with Consul, a service discovery platform. It uses the upstream_conf API in NGINX Plus to add the servers registered with Consul and remove the ones which get deregistered without the need for reloading NGINX Plus. This automates the process of upstream reconfiguration in NGINX Plus based on Consul data using a simple bash script and Consul watches.
-
etcd-demo: This demo which spins up a bunch of docker containers shows NGINX Plus being used in conjuction with Etcd for service discovery. It uses the upstream_conf API in NGINX Plus to add the servers registered with Etcd and remove the ones which get deregistered without the need for reloading NGINX Plus. This automates the process of upstream reconfiguration in NGINX Plus based on Etcd data using a simple bash script and 'etcdctl exec-watch'.
-
random-files: Demo to show random content and upstream_conf. Nick to add more description here
All of the Demos have been configured to utilize Vagrant and Ansible to enable autodeployment.
-
Install Vagrant using the necessary package for your OS:
http://www.vagrantup.com/downloads
-
Install provider for vagrant to use to start VM's.
The default provider is VirtualBox [Note that only VirtualBox versions 4.0, 4.1, 4.2, 4.3 are supported], which can be downloaded from the following link: https://www.virtualbox.org/wiki/Downloads A full list of providers can be found at the following page, if you do not want to use VirtualBox: https://docs.vagrantup.com/v2/providers/
-
Install Ansible:
http://docs.ansible.com/ansible/intro_installation.html
-
Clone demo repo
```$ git clone [email protected]:nginxinc/NGINX-Demos.git```
-
Copy
nginx-repo.key
andnginx-repo.crt
files for your account to~/NGINX-Demos/autoscaling-demo/ansible/files/