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

Peering updates #125

Merged
merged 32 commits into from
Jan 29, 2015
Merged

Peering updates #125

merged 32 commits into from
Jan 29, 2015

Conversation

mdobson
Copy link
Contributor

@mdobson mdobson commented Jan 23, 2015

WIP

Here is what is done though.

  • Bug fix for issues with peering. Registry was being pulled out in an inconsistent format. This could led to a connect->disconnect loop.
  • Added direct disconnection.
  • Added disconnecting from cloud to zetta hub via API requests.

@mdobson
Copy link
Contributor Author

mdobson commented Jan 28, 2015

This is ready for review if someone can take a look at it. Going over it multiple times would probably be best. This thing is kind of large.

@mdobson
Copy link
Contributor Author

mdobson commented Jan 28, 2015

cc: @kevinswiber @AdamMagaluk

req.pipe(request);
}
};

PeerManagementResource.prototype._connect = function(peer) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this whole function be replaced by the .link on zetta that we added yesterday?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This functionality isn't for linking. It's for proxying peering commands from an acceptor peer to an initiator peer. This uses a fire and forget request because we can't reliably listen for a response back up the pipe.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm referring to PeerManagementResource.prototype._connect = function(peer) { must of highlighted the wrong code.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could but that would mean on process restarts links created in the API would be ignored. If we expose runPeer as a function that can be called that would be exactly what I need instead of _connect.

@AdamMagaluk
Copy link
Collaborator

After that long process i think its ready to be green lit. Merge away.

Signed-off: Adam T Magaluk

@mdobson
Copy link
Contributor Author

mdobson commented Jan 29, 2015

yes

mdobson pushed a commit that referenced this pull request Jan 29, 2015
@mdobson mdobson merged commit 3ffdba2 into master Jan 29, 2015
@AdamMagaluk AdamMagaluk deleted the peering-updates branch January 30, 2015 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants