Creating clusters of Vagrant machines
While the scenario of mimicking defined application architectures (for example, the two-tier or three-tier web application) can be accomplished using simple hosts files and hosts file modifications, creating clusters of Vagrant machines will require a bit of additional complexity, namely, the ability for machines to discover one another using either DNS servers or through service discovery.
In this example, we will create a cluster of Vagrant machines that can communicate with DNS connections using two additional tools:
- Consul (https://consul.io): This is a tool that allows services and machines to discover one another over a distributed network. In our case, we will use Consul very simply and set up a single ...
Get Vagrant Virtual Development Environment Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.