Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app, provision: provisioner should handle bind and unbind #982

Closed
fsouza opened this issue Nov 13, 2014 · 0 comments
Closed

app, provision: provisioner should handle bind and unbind #982

fsouza opened this issue Nov 13, 2014 · 0 comments
Assignees
Milestone

Comments

@fsouza
Copy link
Contributor

fsouza commented Nov 13, 2014

In order to get the proper origin hosts, we need to call the provisioner. In the case of Docker, all nodes that can be used for an app will be bound to the service instance, and whenever a new host is added to the cluster there will be a bind call to the service API.

In the Docker provisioner, these are the cases we're going to handle:

Binding an application to a service instance

Grab all hosts where units of the application can be born in, and make calls to the bind endpoint with the proper parameters app-host and unit-host.

Unbinding the application from the service instance

Grab all hosts where units of the application can be born in, and make calls to the unbind endpoint with the proper parameters app-host and unit-host.

Adding a new Docker node to the cluster

Grab all binds of all applications that will have access to the new node and issue proper bind calls to the service API (one call for each bind).

Removing a Docker node from the application cluster

Grab all binds of all applications that have access to the dying node and issue proper unbind calls to the service API (one call for each unbind).

@fsouza fsouza self-assigned this Nov 13, 2014
@fsouza fsouza added this to the 0.9.0 milestone Nov 13, 2014
fsouza pushed a commit that referenced this issue Nov 17, 2014
Now there are two calls in the service API. I will update the docs for
the service API soon.

Related to #982.
fsouza pushed a commit that referenced this issue Nov 17, 2014
fsouza pushed a commit that referenced this issue Nov 18, 2014
fsouza pushed a commit that referenced this issue Nov 18, 2014
fsouza pushed a commit that referenced this issue Nov 19, 2014
Related to #982 (I believe it fixes it, but I want to run some tests
before closing the issue).
fsouza pushed a commit that referenced this issue Nov 24, 2014
fsouza pushed a commit that referenced this issue Nov 24, 2014
fsouza pushed a commit that referenced this issue Nov 24, 2014
@fsouza fsouza closed this as completed Nov 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant