Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(183)

Issue 49920045: worker/peergrouper: new package

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years ago by rog
Modified:
12 years ago
Reviewers:
mp+201245, jameinel, natefinch
Visibility:
Public.

Description

worker/peergrouper: new package This will be a worker that maintains the replica set with respect to the state. The function in this CL implements the core functionality - it's a stateless function that looks at a representation of the current state of affairs and decides what the replicaset member list should look like. It may well change when faced with reality (although I've been trying to sanity check with experimental code), but I think it should be reasonable to check in now as a staging post. There are current some extraneous changes in this branch (everything outside worker/peergrouper) which are made redundant by other MPs. Please ignore for the purposes of this review; I'll remove before submitting. https://code.launchpad.net/~rogpeppe/juju-core/479-desired-peer-group/+merge/201245 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : worker/peergrouper: new package #

Total comments: 6

Patch Set 3 : worker/peergrouper: new package #

Patch Set 4 : worker/peergrouper: new package #

Patch Set 5 : worker/peergrouper: new package #

Total comments: 4

Patch Set 6 : worker/peergrouper: new package #

Patch Set 7 : worker/peergrouper: new package #

Unified diffs Side-by-side diffs Delta from patch set Stats (+656 lines, -0 lines) Patch
A [revision details] View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M replicaset/replicaset.go View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
A worker/peergrouper/desired.go View 1 2 3 4 5 1 chunk +290 lines, -0 lines 0 comments Download
A worker/peergrouper/desired_test.go View 1 2 3 4 5 6 1 chunk +358 lines, -0 lines 0 comments Download

Messages

Total messages: 8
rog
Please take a look.
12 years ago (2014-01-10 19:07:31 UTC) #1
jameinel
I didn't finish the review before I'm on the next call, but some thoughts I ...
12 years ago (2014-01-13 11:37:11 UTC) #2
rog
Please take a look. https://codereview.appspot.com/49920045/diff/20001/worker/peergrouper/desired.go File worker/peergrouper/desired.go (right): https://codereview.appspot.com/49920045/diff/20001/worker/peergrouper/desired.go#newcode32 worker/peergrouper/desired.go:32: //func getPeerGroupInfo(st *state.State, ms []*state.Machine) ...
12 years ago (2014-01-13 17:40:12 UTC) #3
rog
Please take a look.
12 years ago (2014-01-13 17:50:35 UTC) #4
natefinch
LGTM overall. I'd like to see comments on the functions even if they're not exported... ...
12 years ago (2014-01-13 18:47:15 UTC) #5
rog
Please take a look. https://codereview.appspot.com/49920045/diff/80001/worker/peergrouper/desired.go File worker/peergrouper/desired.go (right): https://codereview.appspot.com/49920045/diff/80001/worker/peergrouper/desired.go#newcode38 worker/peergrouper/desired.go:38: func desiredPeerGroup(info *peerGroupInfo) ([]replicaset.Member, map[*machine]bool, ...
12 years ago (2014-01-13 19:35:20 UTC) #6
natefinch
LGTM The refactor makes a big difference.
12 years ago (2014-01-13 19:44:37 UTC) #7
rog
12 years ago (2014-01-14 09:23:08 UTC) #8
Please take a look.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b