Re: method for communication between containers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 27, 2014 at 06:28:46AM +0000, WANG Cheng D wrote:
> Dear all,
> In my system, two containers need to exchange data as quick as possible
> and the two containers are hosted by the same physical machine, I wonder
> if socket is the only method for communication between containers?

If you have an area of filesystem that is shared + writable to both
containers, they could create UNIX sockets in that filesystem, rather
than TCP sockets. Also they could create named FIFO pipes.

Another option would be to create a shared memory backed file in shmfs
or hugepagefs and expose it to both containers.

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users




[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux