简体   繁体   English

在不同的物理服务器之间同步Vagrant VM

[英]Syncing Vagrant VMs across different physical servers

I'm using Vagrant to deploy my VMs and my current setup looks like this: 我正在使用Vagrant部署我的VM,当前设置如下所示:

server1 = VM1, VM2, VM3 ( main production server )
server2 = VM1, VM2, VM3 ( backup server )

My questions is, can I somehow sync the VMs across the different physical servers in case one fails so I can keep running the VMs on the second one without experiencing any downtime ? 我的问题是,万一发生故障,我是否可以在不同的物理服务器之间以某种方式同步VM,以便我可以在第二台VM上继续运行VM,而不会出现任何停机时间?

I know there is the Synced Folders option within Vagrant but that is not what I need, I basically need to clone the VMs from server1 to server2 periodically in case of the downtime so they can keep on running on the backup server while the main one doesn't get up again. 我知道Vagrant中有Synced Folders选项,但这不是我所需要的,我基本上需要定期将VM从server1克隆到server2,以防停机,以便它们可以继续在备份服务器上运行,而主要的不再起床。

Thanks a bunch. 谢谢你

Vagrant doesn't inherently support this, since it's intended audience is really development environments. Vagrant并非天生就支持此功能,因为它的目标读者实际上是开发环境。 It seems like you're looking for something more like what VMWare vSphere does. 似乎您正在寻找类似于VMWare vSphere所做的事情。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM