1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
Moby Project - a collaborative project for the container ecosystem to assemble container-based systems
Find a file
Chris Telfer 8e0f6bc903 Update moby to use scalable-lb libnetwork APIs
This patch is required for the updated version of libnetwork and entails
two minor changes.

First, it uses the new libnetwork.NetworkDeleteOptionRemoveLB option to
the network.Delete() method to automatically remove the load balancing
endpoint for ingress networks.   This allows removal of the
deleteLoadBalancerSandbox() function whose functionality is now within
libnetwork.

The second change is to allocate a load balancer endpoint IP address for
all overlay networks rather than just "ingress" and windows overlay
networks.  Swarmkit is already performing this allocation, but moby was
not making use of these IP addresses for Linux overlay networks (except
ingress).  The current version of libnetwork makes use of these IP
addresses by creating a load balancing sandbox and endpoint similar to
ingress's  for all overlay network and putting all load balancing state
for a given node in that sandbox only.  This reduces the amount of linux
kernel state required per node.

In the prior scheme, libnetwork would program each container's network
namespace with every piece of load balancing state for every other
container that shared *any* network with the first container.  This
meant that the amount of kernel state on a given node scaled with the
square of the number of services in the cluster and with the square of
the number of containers per service.  With the new scheme, kernel state
at each node scales linearly with the number of services and the number
of containers per service.  This also reduces the number of system calls
required to add or remove tasks and containers.  Previously the number
of system calls required grew linearly with the number of other
tasks that shared a network with the container.  Now the number of
system calls grows linearly only with the number of networks that the
task/container is attached to.  This results in a significant
performance improvement when adding and removing services to a cluster
that already heavily loaded.

The primary disadvantage to this scheme is that it requires the
allocation of an additional IP address per node per subnet for every
node in the cluster that has a task on the given subnet.  However, as
mentioned, swarmkit is already allocating these IP addresses for every
node and they are going unused.  Future swarmkit modifications should be
examined to only allocate said IP addresses when nodes actually require
them.

Signed-off-by: Chris Telfer <ctelfer@docker.com>
2018-07-03 13:46:33 -04:00
.github Remove myself from CODEOWNERS 2018-03-26 13:45:05 -04:00
api Merge pull request #37156 from cpuguy83/networking_api_types_only 2018-06-29 02:47:27 +02:00
builder Update documents of dispatchAdd 2018-07-03 08:51:07 +09:00
cli Various code-cleanup 2018-05-23 17:50:54 +02:00
client api: fix platform type 2018-06-26 22:59:17 -07:00
cmd/dockerd Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
container Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
contrib Allow vim be case insensitive for D in dockerfile 2018-06-08 10:30:40 +09:00
daemon Update moby to use scalable-lb libnetwork APIs 2018-07-03 13:46:33 -04:00
distribution Merge pull request #37359 from dmcgowan/register-oci-mediatypes 2018-07-02 14:26:36 +02:00
dockerversion Various code-cleanup 2018-05-23 17:50:54 +02:00
docs Updated path to be consistent w/ current Windows build process 2018-06-15 19:02:53 -04:00
errdefs Fix typos: remove duplicated "the" 2018-05-17 21:49:51 +09:00
hack bump libnetwork to b0186632 2018-07-03 13:46:19 -04:00
image system: add back lcow validation function 2018-06-27 15:24:26 -07:00
integration Merge pull request #37351 from LotusFenn/unique-names-network-service-test 2018-06-27 20:32:20 +09:00
integration-cli Update tests w/ new libnetwork contraints 2018-06-29 15:15:52 -04:00
internal Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
layer layer: relax graphdriver ID format 2018-06-10 10:05:26 -07:00
libcontainerd Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
migrate/v1 Various code-cleanup 2018-05-23 17:50:54 +02:00
oci Various code-cleanup 2018-05-23 17:50:54 +02:00
opts Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
pkg Merge pull request #37356 from Microsoft/jjh/new37316 2018-06-28 12:32:31 +02:00
plugin Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
profiles If container will run as non root user, drop permitted, effective caps early 2018-03-19 14:45:27 -07:00
project Remove references to old release process 2018-05-18 18:28:43 +00:00
reference Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
registry Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
reports Fix typos 2018-05-16 09:15:43 +08:00
restartmanager Add canonical import comment 2018-02-05 16:51:57 -05:00
runconfig Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
vendor bump libnetwork to b0186632 2018-07-03 13:46:19 -04:00
volume Fix flaky test TestServiceGet 2018-06-20 22:38:29 +03:00
.DEREK.yml project: try alexellis/derek bot to manage PRs and issues 2017-12-04 16:11:41 +01:00
.dockerignore [EXPERIMENTAL] Integration Test on Swarm 2017-02-28 02:10:09 +00:00
.gitignore Add code coverage report and codecov config 2018-01-16 16:50:56 -05:00
.mailmap Update authors and mailmap 2018-05-21 01:07:22 +02:00
AUTHORS Update authors and mailmap 2018-05-21 01:07:22 +02:00
CHANGELOG.md Re-order CHANGELOG.md to pass make validate test 2018-05-13 00:27:51 +00:00
codecov.yml Add code coverage report and codecov config 2018-01-16 16:50:56 -05:00
CONTRIBUTING.md Fix link anchors in CONTRIBUTING.md 2018-06-13 21:58:48 +09:00
Dockerfile Re-add support for a custom .bashrc file in build env 2018-06-29 12:39:36 +02:00
Dockerfile.e2e Dockerfile*: bump Go to 1.10.3 2018-06-10 17:41:22 +03:00
Dockerfile.simple Dockerfile*: bump Go to 1.10.3 2018-06-10 17:41:22 +03:00
Dockerfile.windows Dockerfile*: bump Go to 1.10.3 2018-06-10 17:41:22 +03:00
LICENSE Update copyright dates 2017-02-24 19:41:59 +00:00
MAINTAINERS Mark @thajeztah as a MAINTAINER… 2018-06-07 19:50:41 +02:00
Makefile builder: pass DOCKER_BUILDKIT to enable buildkit in tests 2018-06-10 10:05:28 -07:00
NOTICE Update LICENSE date 2017-02-15 17:34:33 +01:00
poule.yml Add myself to poule to get 2w/old PRs 2018-04-16 18:33:21 +02:00
README.md Add "Lego set" back in README.md 2017-10-10 14:10:39 +00:00
ROADMAP.md Update the Roadmap 2017-10-11 17:33:50 +01:00
TESTING.md Merge pull request #37249 from AntaresS/add-test-guidline 2018-06-25 20:44:42 +02:00
vendor.conf bump libnetwork to b0186632 2018-07-03 13:46:19 -04:00
VENDORING.md fix the bare url and the Summary of http://semver.org 2017-01-17 16:20:11 +08:00

The Moby Project

Moby Project logo

Moby is an open-source project created by Docker to enable and accelerate software containerization.

It provides a "Lego set" of toolkit components, the framework for assembling them into custom container-based systems, and a place for all container enthusiasts and professionals to experiment and exchange ideas. Components include container build tools, a container registry, orchestration tools, a runtime and more, and these can be used as building blocks in conjunction with other tools and projects.

Principles

Moby is an open project guided by strong principles, aiming to be modular, flexible and without too strong an opinion on user experience. It is open to the community to help set its direction.

  • Modular: the project includes lots of components that have well-defined functions and APIs that work together.
  • Batteries included but swappable: Moby includes enough components to build fully featured container system, but its modular architecture ensures that most of the components can be swapped by different implementations.
  • Usable security: Moby provides secure defaults without compromising usability.
  • Developer focused: The APIs are intended to be functional and useful to build powerful tools. They are not necessarily intended as end user tools but as components aimed at developers. Documentation and UX is aimed at developers not end users.

Audience

The Moby Project is intended for engineers, integrators and enthusiasts looking to modify, hack, fix, experiment, invent and build systems based on containers. It is not for people looking for a commercially supported system, but for people who want to work and learn with open source code.

Relationship with Docker

The components and tools in the Moby Project are initially the open source components that Docker and the community have built for the Docker Project. New projects can be added if they fit with the community goals. Docker is committed to using Moby as the upstream for the Docker Product. However, other projects are also encouraged to use Moby as an upstream, and to reuse the components in diverse ways, and all these uses will be treated in the same way. External maintainers and contributors are welcomed.

The Moby project is not intended as a location for support or feature requests for Docker products, but as a place for contributors to work on open source code, fix bugs, and make the code more useful. The releases are supported by the maintainers, community and users, on a best efforts basis only, and are not intended for customers who want enterprise or commercial support; Docker EE is the appropriate product for these use cases.


Legal

Brought to you courtesy of our legal counsel. For more context, please see the NOTICE document in this repo.

Use and transfer of Moby may be subject to certain restrictions by the United States and other governments.

It is your responsibility to ensure that your use and/or transfer does not violate applicable laws.

For more information, please see https://www.bis.doc.gov

Licensing

Moby is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.