Keyboard Shortcuts

File
u :up to issue
m :publish + mail comments
M :edit review message
j / k :jump to file after / before current file
J / K :jump to next file with a comment after / before current file
Side-by-side diff
i :toggle intra-line diffs
e :expand all comments
c :collapse all comments
s :toggle showing all comments
n / p :next / previous diff chunk or comment
N / P :next / previous comment
<Up> / <Down> :next / previous line
<Enter> :respond to / edit current comment
d :mark current comment as done
Issue
u :up to list of issues
m :publish + mail comments
j / k :jump to patch after / before current patch
o / <Enter> :open current patch in side-by-side view
i :open current patch in unified diff view
Issue List
j / k :jump to issue after / before current issue
o / <Enter> :open current issue
# : close issue
Comment/message editing
<Ctrl> + s or <Ctrl> + Enter :save comment
<Esc> :cancel edit
Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(108)
Issues Repositories Search
Open Issues | Closed Issues | All Issues | Sign in with your Google Account to create issues and add comments

Issue 7231079: Increase zk session and ping times.

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 11 months ago by hazmat
Modified:
12 years, 11 months ago
Reviewers:
mp+146169, bcsaller
Visibility:
Public.
Increase zk session and ping times. During scale testing work, one of the take aways was the default zookeeper session time was too low, which caused issues for any transient communication problems between the agents the zk. The managed client work landed subsequently does recovery for this and for session expiration, but its better to avoid the issue entirely by increasing the session time and increasing the heartbeat time periodicity. https://code.launchpad.net/~hazmat/juju/increase-session-timeout/+merge/146169 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 8

Patch Set 2 : Increase zk session and ping times. #

Patch Set 3 : Increase zk session and ping times. #

Created: 12 years, 11 months ago
Download [raw] [tar.bz2]
Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -164 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M juju/agents/base.py View 2 chunks +3 lines, -1 line 0 comments Download
M juju/environment/config.py View 1 2 1 chunk +0 lines, -14 lines 0 comments Download
M juju/environment/tests/test_config.py View 1 2 2 chunks +0 lines, -61 lines 0 comments Download
A juju/lib/port.py View 1 chunk +13 lines, -0 lines 0 comments Download
A juju/lib/tests/test_port.py View 1 chunk +32 lines, -0 lines 0 comments Download
M juju/lib/tests/test_zk.py View 3 chunks +14 lines, -8 lines 0 comments Download
M juju/lib/zk.py View 1 5 chunks +17 lines, -4 lines 0 comments Download
M juju/providers/common/cloudinit.py View 1 3 chunks +19 lines, -11 lines 0 comments Download
M juju/providers/common/connect.py View 1 2 chunks +4 lines, -2 lines 0 comments Download
M juju/providers/common/tests/data/cloud_init_bootstrap View 3 chunks +5 lines, -4 lines 0 comments Download
M juju/providers/common/tests/data/cloud_init_bootstrap_testing View 1 chunk +3 lines, -1 line 0 comments Download
M juju/providers/common/tests/data/cloud_init_bootstrap_zookeepers View 3 chunks +5 lines, -4 lines 0 comments Download
M juju/providers/ec2/tests/data/bootstrap_cloud_init View 1 2 3 chunks +5 lines, -4 lines 0 comments Download
M juju/providers/ec2/tests/test_bootstrap.py View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M juju/providers/local/__init__.py View 2 chunks +1 line, -1 line 0 comments Download
M juju/providers/local/tests/test_files.py View 2 chunks +2 lines, -3 lines 0 comments Download
M juju/state/sshclient.py View 1 chunk +4 lines, -1 line 0 comments Download
M juju/state/tests/test_utils.py View 2 chunks +1 line, -30 lines 0 comments Download
M juju/state/utils.py View 1 chunk +0 lines, -12 lines 0 comments Download
M test View 1 chunk +1 line, -2 lines 0 comments Download
Total messages: 6
|
hazmat
Please take a look.
12 years, 11 months ago (2013年02月01日 17:01:26 UTC) #1
Please take a look.
Sign in to reply to this message.
bcsaller
LGTM, some minors below but they are optional. https://codereview.appspot.com/7231079/diff/1/juju/lib/port.py File juju/lib/port.py (right): https://codereview.appspot.com/7231079/diff/1/juju/lib/port.py#newcode5 juju/lib/port.py:5: """Get ...
12 years, 11 months ago (2013年02月01日 17:12:19 UTC) #2
LGTM, some minors below but they are optional.
https://codereview.appspot.com/7231079/diff/1/juju/lib/port.py
File juju/lib/port.py (right):
https://codereview.appspot.com/7231079/diff/1/juju/lib/port.py#newcode5
juju/lib/port.py:5: """Get an open port on the machine.
There is a race between close and return, but the kernel shouldn't re-allocate
the same port number again for some reasonable window so this should be ok.
https://codereview.appspot.com/7231079/diff/1/juju/lib/zk.py
File juju/lib/zk.py (right):
https://codereview.appspot.com/7231079/diff/1/juju/lib/zk.py#newcode57
juju/lib/zk.py:57: use_deferred=True, min_session_timeout=30000,
Should you use the constant above for min and define one for max and use it as
well?
https://codereview.appspot.com/7231079/diff/1/juju/providers/common/cloudinit.py
File juju/providers/common/cloudinit.py (right):
https://codereview.appspot.com/7231079/diff/1/juju/providers/common/cloudinit...
juju/providers/common/cloudinit.py:46: 'echo "maxSessionTimeout=%d" >>
/etc/zookeeper/conf/zoo.cfg' % (
It might make sense that these are defined in lib.zk rather than calculated
values here.
https://codereview.appspot.com/7231079/diff/1/juju/providers/common/connect.py
File juju/providers/common/connect.py (right):
https://codereview.appspot.com/7231079/diff/1/juju/providers/common/connect.p...
juju/providers/common/connect.py:67: client = yield
SSHClient(session_timeout=20000).connect(
Should this be the default in SSHClient.__init__?
Sign in to reply to this message.
hazmat
thanks for the review. https://codereview.appspot.com/7231079/diff/1/juju/lib/port.py File juju/lib/port.py (right): https://codereview.appspot.com/7231079/diff/1/juju/lib/port.py#newcode5 juju/lib/port.py:5: """Get an open port on ...
12 years, 11 months ago (2013年02月01日 17:50:14 UTC) #3
thanks for the review.
https://codereview.appspot.com/7231079/diff/1/juju/lib/port.py
File juju/lib/port.py (right):
https://codereview.appspot.com/7231079/diff/1/juju/lib/port.py#newcode5
juju/lib/port.py:5: """Get an open port on the machine.
On 2013年02月01日 17:12:20, bcsaller wrote:
> There is a race between close and return, but the kernel shouldn't re-allocate
> the same port number again for some reasonable window so this should be ok.
this is a refactor from elsewhere, the so reuse i believe helps with a
concurrent handout, in either case better than a hardcode.
https://codereview.appspot.com/7231079/diff/1/juju/lib/zk.py
File juju/lib/zk.py (right):
https://codereview.appspot.com/7231079/diff/1/juju/lib/zk.py#newcode57
juju/lib/zk.py:57: use_deferred=True, min_session_timeout=30000,
On 2013年02月01日 17:12:20, bcsaller wrote:
> Should you use the constant above for min and define one for max and use it as
> well?
makes sense, done.
https://codereview.appspot.com/7231079/diff/1/juju/providers/common/cloudinit.py
File juju/providers/common/cloudinit.py (right):
https://codereview.appspot.com/7231079/diff/1/juju/providers/common/cloudinit...
juju/providers/common/cloudinit.py:46: 'echo "maxSessionTimeout=%d" >>
/etc/zookeeper/conf/zoo.cfg' % (
On 2013年02月01日 17:12:20, bcsaller wrote:
> It might make sense that these are defined in lib.zk rather than calculated
> values here.
done.
https://codereview.appspot.com/7231079/diff/1/juju/providers/common/connect.py
File juju/providers/common/connect.py (right):
https://codereview.appspot.com/7231079/diff/1/juju/providers/common/connect.p...
juju/providers/common/connect.py:67: client = yield
SSHClient(session_timeout=20000).connect(
On 2013年02月01日 17:12:20, bcsaller wrote:
> Should this be the default in SSHClient.__init__?
sshclient doesn't define that, changed to use the lib.zk CLIENT_SESSION_TIME
Sign in to reply to this message.
hazmat
Please take a look.
12 years, 11 months ago (2013年02月01日 17:50:53 UTC) #4
Please take a look.
Sign in to reply to this message.
bcsaller
Thanks for the changes, LGTM
12 years, 11 months ago (2013年02月01日 17:53:14 UTC) #5
Thanks for the changes, LGTM
Sign in to reply to this message.
hazmat
*** Submitted: Increase zk session and ping times. During scale testing work, one of the ...
12 years, 11 months ago (2013年02月01日 18:52:20 UTC) #6
*** Submitted:
Increase zk session and ping times.
During scale testing work, one of the take aways was the default zookeeper 
session time was too low, which caused issues for any transient communication
problems between the agents the zk. The managed client work landed subsequently 
does recovery for this and for session expiration, but its better to avoid
the issue entirely by increasing the session time and increasing the heartbeat
time periodicity.
R=bcsaller
CC=
https://codereview.appspot.com/7231079 
Sign in to reply to this message.
|
Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b

AltStyle によって変換されたページ (->オリジナル) /