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

Issue 92320043: Added support for HA backups on restore

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 11 months ago by hduran
Modified:
9 years, 11 months ago
Reviewers:
mp+219357, menn0, natefinch, fwereade
Visibility:
Public.

Description

Added support for HA backups on restore HA backups contain a set of file that reference other state machines besides 0. Restore would bring up the old db and agent.conf and peergrouper would try to re-set the HA cluster. Editing of agents.conf and deletion of some mongo registries have been placed to set the restore as if the machine was a single one. https://code.launchpad.net/~hduran-8/juju-core/1305026_add_restore_support_for_HA/+merge/219357 Requires: https://code.launchpad.net/~hduran-8/juju-core/upgrade_restore_for_replicaset/+merge/218998 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 6

Patch Set 2 : Added support for HA backups on restore #

Patch Set 3 : Added support for HA backups on restore #

Patch Set 4 : Added support for HA backups on restore #

Total comments: 18

Patch Set 5 : Added support for HA backups on restore #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -33 lines) Patch
A [revision details] View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/plugins/juju-restore/restore.go View 1 11 chunks +71 lines, -33 lines 0 comments Download
A doc/backup_and_restore.txt View 1 2 3 4 1 chunk +53 lines, -0 lines 0 comments Download

Messages

Total messages: 11
hduran
Please take a look.
9 years, 11 months ago (2014-05-13 12:33:02 UTC) #1
menn0
https://codereview.appspot.com/92320043/diff/1/cmd/plugins/juju-restore/restore.go File cmd/plugins/juju-restore/restore.go (right): https://codereview.appspot.com/92320043/diff/1/cmd/plugins/juju-restore/restore.go#newcode150 cmd/plugins/juju-restore/restore.go:150: conf = { "_id" : "juju", "version" : 1, ...
9 years, 11 months ago (2014-05-14 05:05:04 UTC) #2
menn0
https://codereview.appspot.com/92320043/diff/1/cmd/plugins/juju-restore/restore.go File cmd/plugins/juju-restore/restore.go (right): https://codereview.appspot.com/92320043/diff/1/cmd/plugins/juju-restore/restore.go#newcode182 cmd/plugins/juju-restore/restore.go:182: awk -v removecount=$REMOVECOUNT '/\-.*17070$/{i++}i<1' machine-0/agent.conf > machine-0/agent.conf.new This call ...
9 years, 11 months ago (2014-05-14 05:19:45 UTC) #3
hduran
Please take a look. https://codereview.appspot.com/92320043/diff/1/cmd/plugins/juju-restore/restore.go File cmd/plugins/juju-restore/restore.go (right): https://codereview.appspot.com/92320043/diff/1/cmd/plugins/juju-restore/restore.go#newcode150 cmd/plugins/juju-restore/restore.go:150: conf = { "_id" : ...
9 years, 11 months ago (2014-05-14 18:43:50 UTC) #4
hduran
Please take a look.
9 years, 11 months ago (2014-05-14 18:45:08 UTC) #5
menn0
This is looking great. My only remaining concern is, what if environs.ConfigForName loads configuration with ...
9 years, 11 months ago (2014-05-14 21:33:30 UTC) #6
fwereade
So, just to clarify: this takes an env backup that may or may not be ...
9 years, 11 months ago (2014-05-15 09:08:54 UTC) #7
hduran
On 2014/05/15 09:08:54, fwereade wrote: > So, just to clarify: this takes an env backup ...
9 years, 11 months ago (2014-05-15 09:56:07 UTC) #8
hduran
Please take a look.
9 years, 11 months ago (2014-05-22 19:58:55 UTC) #9
natefinch
LGTM with some typo fixes https://codereview.appspot.com/92320043/diff/60001/doc/backup_and_restore.txt File doc/backup_and_restore.txt (right): https://codereview.appspot.com/92320043/diff/60001/doc/backup_and_restore.txt#newcode13 doc/backup_and_restore.txt:13: The process gathers varios ...
9 years, 11 months ago (2014-05-22 20:11:27 UTC) #10
hduran
9 years, 11 months ago (2014-05-23 00:05:31 UTC) #11
Please take a look.

https://codereview.appspot.com/92320043/diff/60001/doc/backup_and_restore.txt
File doc/backup_and_restore.txt (right):

https://codereview.appspot.com/92320043/diff/60001/doc/backup_and_restore.txt...
doc/backup_and_restore.txt:13: The process gathers varios files relevant to the
server such as:
On 2014/05/22 20:11:27, nate.finch wrote:
> various

Done.

https://codereview.appspot.com/92320043/diff/60001/doc/backup_and_restore.txt...
doc/backup_and_restore.txt:18: it less than ideal to be run as often as a backup
process should be.
On 2014/05/22 20:11:26, nate.finch wrote:
> I presume it also restarts the db, could you give an estimate of for how long
> the db is down, and what the resulting user experience is like?  (For example,
> attempting juju commands will fail, but running services will not be affected)

Done.

https://codereview.appspot.com/92320043/diff/60001/doc/backup_and_restore.txt...
doc/backup_and_restore.txt:23: juju-restore is a go cmd plugin that, if no
state-server is present, will
On 2014/05/22 20:11:27, nate.finch wrote:
> s/go cmd/juju/

Done.

https://codereview.appspot.com/92320043/diff/60001/doc/backup_and_restore.txt...
doc/backup_and_restore.txt:24: bootstrap a new node is safe mode then upload to
the tgz backup file
On 2014/05/22 20:11:26, nate.finch wrote:
> s/is/in/  also, what's safe mode?

Done.

https://codereview.appspot.com/92320043/diff/60001/doc/backup_and_restore.txt...
doc/backup_and_restore.txt:29: * Untars the fs files ino the current machine
On 2014/05/22 20:11:26, nate.finch wrote:
> s/ino/into/

Done.

https://codereview.appspot.com/92320043/diff/60001/doc/backup_and_restore.txt...
doc/backup_and_restore.txt:31: machine with the ones of the new one in the
relevant config files and also
On 2014/05/22 20:11:27, nate.finch wrote:
> s/the ones of the new one/those of the new machine/

Done.

https://codereview.appspot.com/92320043/diff/60001/doc/backup_and_restore.txt...
doc/backup_and_restore.txt:32: on the db, if thi step is not preformed
peergrouper will kick our machine
On 2014/05/22 20:11:27, nate.finch wrote:
> s/on/in/    s/thi/this/    s/preformed/performed/

Done.

https://codereview.appspot.com/92320043/diff/60001/doc/backup_and_restore.txt...
doc/backup_and_restore.txt:44: We asume, for now, that if you are running
restore is because you have
On 2014/05/22 20:11:27, nate.finch wrote:
> s/asume/assume/

Done.

https://codereview.appspot.com/92320043/diff/60001/doc/backup_and_restore.txt...
doc/backup_and_restore.txt:48: State Servers since otherwise this will take them
out of line and possibly
On 2014/05/22 20:11:27, nate.finch wrote:
> s/out of line/offline/

Done.
Sign in to reply to this message.

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