...

/

Multi-Machine VMs With Vagrant

Multi-Machine VMs With Vagrant

In this lesson, we’ll be looking at how you can build and run multi-machine Vagrant VMs.

What are multi-machine VMs and why do we need them?

Vagrant is able to define and control multiple guest machines per Vagrantfile. This is known as a "multi-machine" environment.

These machines are generally able to work together or are somehow associated with each other. Here are some use cases describing what people are using multi-machine environments for today:

  1. Accurately modeling a multi-server production topology, such as separating a web and database server.
  2. Modeling a distributed system and how they interact with each other.
  3. Testing an interface, such as an API, to a service component.
  4. Disaster-case testing: machines dying, network partitions, slow networks, inconsistent
...