contiv / netplugin

Container networking for various use cases
Apache License 2.0
515 stars 178 forks source link

Any guide for manual setup Contiv for different network modes? #419

Open xychu opened 8 years ago

xychu commented 8 years ago

From http://contiv.github.io/ we know that Contiv support "Rich Networking Options" like L3, Overlay and L2 network, but I did not find any docs for manual setup.

Esp. for the NICs part, for example, if I want to use OVS, how many interfaces should be added, how to set them up? or if I want to support L3 solution, what steps do I need to take so that the netplugin works in that way?

I tried the vagrant, but the default 'demo' only gives me ~20MB/sec tcp_bw performance for vm-to-vm connection.

It could be nice if a manual setup guide provided so that I could try and test contiv on my own vms or hosts.

jainvipin commented 8 years ago

@xychu - updating docs, will have updated version for l2/l3/etc in a week or so... thanks for your patience.

we need to adjust the mtu for default vagrant setup to get better performance. we can use this bug to track the performance in vagrant issue.

I am curious are you using Vagrant on a MAC or linux/Windows system? What are the sizes of VM? I assume they are what is prescribed as what is default.

xychu commented 8 years ago

@jainvipin thanks for your quick response. I run Vagrant on Mac, and followed this doc: http://docs.contiv.io/3_netplugin.html#Getting started all settings unchanged just as default, the vm size is: 2 vCPU/2G Mem/40G Disk.

I agree that vagrant is convenient for a quick setup, sometimes manual guide is needed if we need to switch between multi network mode or compare different solutions.

Waiting for your updated docs :-)

angry-tony commented 8 years ago

@jainvipin Hello.. is there any doc like "how to set up a Contiv cluster using Mesos on multi servers without vagrant"?? how to configure Contiv CNI Networking for Mesos??

gaurav-dalvi commented 8 years ago

@angry-tony : http://contiv.github.io/documents/gettingStarted/networking/mesos.html

This might help. This is still using vagrant box, but then you can take a look at box config and then if you have similar configs on baremetal server, rest of the things should work as it is.

rchirakk commented 8 years ago

@angry-tony, Mesos CNI with vagrant demo is tracked by https://github.com/contiv/netplugin/pull/497 Dev. work is in progress for non-vagrant set-ups. Are you planning to use Marathon with Mesos ?

angry-tony commented 8 years ago

@rchirakk wow.. it's good news. thank you. when #497 is merged, i will test it. I'm planning to use contiv with mesos & k8s in production (with non-vagrant) in the coming months.