简体   繁体   English

Openstack VM之间的通信

[英]communication between Openstack VM

How to make two VMs communicate with each other? 如何让两个虚拟机相互通信? I have to split a task between two VMs , so I think MPI has to be used, If so are there any useful resources that I can use to get started? 必须在两个VM之间拆分任务 ,所以我认为必须使用MPI,如果有的话,是否有任何有用的资源可以用来开始? Any help would be appreciated. 任何帮助,将不胜感激。

PS : I have instaled devstack juno PS:我已经开始使用devstack juno

Your question is not really clear. 你的问题不是很清楚。

Openstack is just a virtualization technology. Openstack只是一种虚拟化技术。 There's almost no difference between having two hardware servers and two VMs. 拥有两台硬件服务器和两台虚拟机之间几乎没有区别。 Eg normally if two servers belong to the same network segment they will have access to each other's open ports. 例如,通常如果两台服务器属于同一网段,则它们可以访问彼此的开放端口。 Openstack works just in the same way - if you assign the same network to VMs then this will also work. Openstack以相同的方式工作 - 如果您将相同的网络分配给VM,那么这也将起作用。

However if you wish to install two VMs that will consume from a list of tasks and do them in parallel I would recommend you to read about Enterprise Integration Patterns (eg here ). 但是,如果您希望安装两个将从任务列表中使用并同时执行这些任务的VM,我建议您阅读有关企业集成模式的信息 (例如此处 )。 Technically this is implemented by using one or several messaging middleware servers such as ActiveMQ or ZeroMQ . 从技术上讲,这是通过使用一个或多个消息传递中间件服务器(如ActiveMQZeroMQ)来实现的

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

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