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

Issue 5847053: A spec for how to cleanly stop agents.

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by hazmat
Modified:
12 years, 1 month ago
Reviewers:
mp+98035, niemeyer, fwereade
Visibility:
Public.

Description

A spec for how to cleanly stop agents. Defines an additional state protocol for stopping services along with topology support for recording user actions. https://code.launchpad.net/~hazmat/juju/unit-stop/+merge/98035 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 13

Patch Set 2 : A spec for how to cleanly stop agents. #

Total comments: 20

Patch Set 3 : A spec for how to cleanly stop agents. #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -0 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A source/drafts/stopping-units.rst View 1 2 1 chunk +139 lines, -0 lines 5 comments Download

Messages

Total messages: 9
hazmat
Please take a look.
12 years, 1 month ago (2012-03-17 02:08:04 UTC) #1
fwereade
couple of typos and some vague rambling thoughts; I'll try to write them up in ...
12 years, 1 month ago (2012-03-17 12:20:30 UTC) #2
hazmat
Thanks for the review! http://codereview.appspot.com/5847053/diff/1/source/drafts/stopping-units.rst File source/drafts/stopping-units.rst (right): http://codereview.appspot.com/5847053/diff/1/source/drafts/stopping-units.rst#newcode59 source/drafts/stopping-units.rst:59: against all the relevant entitites. ...
12 years, 1 month ago (2012-03-21 08:35:37 UTC) #3
hazmat
Please take a look.
12 years, 1 month ago (2012-03-21 18:32:03 UTC) #4
niemeyer
Nice to see this moving forward. Some comments: https://codereview.appspot.com/5847053/diff/5001/source/drafts/stopping-units.rst File source/drafts/stopping-units.rst (right): https://codereview.appspot.com/5847053/diff/5001/source/drafts/stopping-units.rst#newcode4 source/drafts/stopping-units.rst:4: ------------- ...
12 years, 1 month ago (2012-03-21 20:07:53 UTC) #5
hazmat
https://codereview.appspot.com/5847053/diff/5001/source/drafts/stopping-units.rst File source/drafts/stopping-units.rst (right): https://codereview.appspot.com/5847053/diff/5001/source/drafts/stopping-units.rst#newcode4 source/drafts/stopping-units.rst:4: ------------- On 2012/03/21 20:07:53, niemeyer wrote: > Sorry for ...
12 years, 1 month ago (2012-03-26 00:42:07 UTC) #6
hazmat
https://codereview.appspot.com/5847053/diff/5001/source/drafts/stopping-units.rst File source/drafts/stopping-units.rst (right): https://codereview.appspot.com/5847053/diff/5001/source/drafts/stopping-units.rst#newcode94 source/drafts/stopping-units.rst:94: and garbage collects their topology footprint and zk state. ...
12 years, 1 month ago (2012-03-26 00:59:22 UTC) #7
hazmat
Please take a look. https://codereview.appspot.com/5847053/diff/5001/source/drafts/stopping-units.rst File source/drafts/stopping-units.rst (right): https://codereview.appspot.com/5847053/diff/5001/source/drafts/stopping-units.rst#newcode94 source/drafts/stopping-units.rst:94: and garbage collects their topology ...
12 years, 1 month ago (2012-03-26 01:25:12 UTC) #8
niemeyer
12 years, 1 month ago (2012-03-26 14:36:47 UTC) #9
https://codereview.appspot.com/5847053/diff/5001/source/drafts/stopping-units...
File source/drafts/stopping-units.rst (right):

https://codereview.appspot.com/5847053/diff/5001/source/drafts/stopping-units...
source/drafts/stopping-units.rst:75: - machine agent watch fires on 'stop' node
deletion, shuts down the unit, removing
On 2012/03/21 20:07:53, niemeyer wrote:
> Also touches the above point.

This one is still pending.

https://codereview.appspot.com/5847053/diff/5001/source/drafts/stopping-units...
source/drafts/stopping-units.rst:94: and garbage collects their topology
footprint and zk state.
On 2012/03/26 00:59:22, hazmat wrote:
> i'm still a bit concerned about the lag here. 
(...)
> Given that, i'd prefer the dedicated gc agent.

Sounds good, but let's please not swipe the problem under the carpet. If we'll
have a dedicated GC, let's implement it upfront at the same time we implement
the garbage itself. It may be an additional command on juju-admin, for example,
that is called periodically on the zookeeper machine.

While implementing GC, we may figure details about the implementation that might
be best done differently, so we shouldn't be tying ourselves to an
implementation and postponing the decision on how to GC to a latter point.

https://codereview.appspot.com/5847053/diff/9001/source/drafts/stopping-units...
File source/drafts/stopping-units.rst (right):

https://codereview.appspot.com/5847053/diff/9001/source/drafts/stopping-units...
source/drafts/stopping-units.rst:50: are recorded in the topology as a 'destroy'
key with a True value
Thanks. Please just s/destroy/destroyed/, otherwise we would still have an
action to be carried rather than a state.

https://codereview.appspot.com/5847053/diff/9001/source/drafts/stopping-units...
source/drafts/stopping-units.rst:83: Principal actions via the client will
trigger gc activities against
New and unfinished sentence.

https://codereview.appspot.com/5847053/diff/9001/source/drafts/stopping-units...
source/drafts/stopping-units.rst:113: ``condition``: no presence and no stop
node.
Should be "no presence node and existent stop node."

https://codereview.appspot.com/5847053/diff/9001/source/drafts/stopping-units...
source/drafts/stopping-units.rst:128: ``condition``: no presence and no stop
node.
Ditto.

https://codereview.appspot.com/5847053/diff/9001/source/drafts/stopping-units...
source/drafts/stopping-units.rst:136: agent/domain state ( machine, unit,
service), its best to treat them
s/its/it's/
Sign in to reply to this message.

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