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

Discovered peers persistence #2317

Closed
wants to merge 2 commits into from
Closed

Conversation

awh
Copy link
Contributor

@awh awh commented May 26, 2016

Extends #2305, which should be merged first. Only the last two commits in this PR are relevant.

Depends on weaveworks/mesh#46, which should also be merged first.

Fixes #2187.

There are some issues:

  1. The supporting mesh PR is a bit grotty - see there for commentary.
  2. Due to the way ConnectionMaker periodically synchronises the set of targets to cm.directPeers + the subset of cm.peers to which it does not have connections, it was necessary to introduce a third data structure (cm.indirectPeers) to include discovered peers from a previous run in the synchronisation. Whereas previously we would stop trying to connect to 'indirect' peers if they had disappeared from cm.peers, that is no longer the case after a resume; cm.indirectPeers can accumulate garbage which is only collected by weave stop (Note weave forget does not help, because that only removes things from cm.directPeers).

@awh awh self-assigned this May 26, 2016
@awh awh force-pushed the issues/2187-persist-discovered-peers branch 4 times, most recently from 4289f79 to c49c31e Compare May 31, 2016 11:09
@awh awh changed the title [WIP] Discovered peers persistence Discovered peers persistence May 31, 2016
@awh awh removed their assignment May 31, 2016
@awh awh mentioned this pull request May 31, 2016
@awh awh added this to the 1.7.0 milestone Jun 9, 2016
@bboreham
Copy link
Contributor

Needs rebase

@rade rade assigned awh Jul 1, 2016
@rade rade modified the milestone: 1.8.0 Jul 1, 2016
@awh awh modified the milestone: icebox Jul 12, 2016
@bboreham bboreham force-pushed the issues/2187-persist-discovered-peers branch from c49c31e to 9e7118c Compare January 23, 2017 14:55
@bboreham
Copy link
Contributor

Rebased.

@bboreham
Copy link
Contributor

Closing due to inactivity

@bboreham bboreham closed this May 25, 2017
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.

None yet

3 participants