Skip to content

networking: Decentralized port allocation.#543

Merged
aluzzardi merged 1 commit intomoby:masterfrom
aluzzardi:agent-port-allocation
May 6, 2016
Merged

networking: Decentralized port allocation.#543
aluzzardi merged 1 commit intomoby:masterfrom
aluzzardi:agent-port-allocation

Conversation

@aluzzardi
Copy link
Member

This change moves port allocation from the allocator to the engine.

It's a first step - we then need to work on reporting those allocated ports by adding a ContainerStatus to TaskStatus which would embed a repeated PortConfig allocated_ports. That work will come as a follow up PR.

/cc @mrjana @stevvooe

Related to #485

This change moves port allocation from the allocator to the engine.

Related to #485

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
@aluzzardi aluzzardi force-pushed the agent-port-allocation branch from e544035 to 4ace89b Compare May 6, 2016 05:35
@docker-codecov-bot
Copy link

Current coverage is 42.92%

Merging #543 into master will decrease coverage by -12.03%

  1. 4 files (not in diff) in spec were deleted. more
  2. 2 files (not in diff) in protobuf/plugin were deleted. more
  3. 1 files (not in diff) in protobuf were deleted. more
  4. 6 files (not in diff) in manager/state/store were deleted. more
  5. 4 files (not in diff) in manager/state/raft were deleted. more
  6. 1 files (not in diff) in manager/state were deleted. more
  7. 5 files (not in diff) in manager/scheduler were deleted. more
  8. 6 files (not in diff) in manager/orchestrator were deleted. more
  9. 4 files (not in diff) in manager/dispatcher were deleted. more
  10. 8 files (not in diff) in manager/clusterapi were deleted. more
@@             master       #543   diff @@
==========================================
  Files            64         20     -44   
  Lines          8767       2400   -6367   
  Methods           0          0           
  Messages          0          0           
  Branches          0          0           
==========================================
- Hits           4817       1030   -3787   
+ Misses         3248       1217   -2031   
+ Partials        702        153    -549   

Powered by Codecov. Last updated by f3b70b4...e544035

@mrjana
Copy link
Contributor

mrjana commented May 6, 2016

LGTM

@mrjana
Copy link
Contributor

mrjana commented May 6, 2016

I think the followup PR to get the actual port state from agent should probably be done on top of my pending PR #538 which will separate out ContainerSpec and Container

@aluzzardi aluzzardi merged commit 5e160f0 into moby:master May 6, 2016
@aluzzardi aluzzardi deleted the agent-port-allocation branch May 6, 2016 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants