Merge lp:~bac/charmworld/update-rebuild-docs into lp:charmworld

Proposed by Brad Crittenden
Status: Merged
Approved by: Brad Crittenden
Approved revision: 519
Merged at revision: 519
Proposed branch: lp:~bac/charmworld/update-rebuild-docs
Merge into: lp:charmworld
Diff against target: 36 lines (+14/-1)
1 file modified
docs/rebuild-elasticsearch.rst (+14/-1)
To merge this branch: bzr merge lp:~bac/charmworld/update-rebuild-docs
Reviewer Review Type Date Requested Status
Juju Gui Bot continuous-integration Approve
Richard Harding Approve
Review via email: mp+246225@code.launchpad.net

Commit message

Update for rebuilding ES in a production or production-like environment.
R=rharding

Description of the change

Update for rebuilding ES in a production or production-like environment.

To post a comment you must log in.
Revision history for this message
Richard Harding (rharding) wrote :

LGTM

review: Approve
Revision history for this message
Juju Gui Bot (juju-gui-bot) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'docs/rebuild-elasticsearch.rst'
2--- docs/rebuild-elasticsearch.rst 2014-04-13 19:21:23 +0000
3+++ docs/rebuild-elasticsearch.rst 2015-01-12 20:53:51 +0000
4@@ -9,18 +9,31 @@
5 First, move aside the entire contents of the ES database (substituting
6 the current date -- in ISO 8601 format of course -- for "DATE").
7
8+On jc-charmworld/0:
9+ $ sudo /srv/deploymgr/charmworld stop
10+
11 On jc-elasticsearch/0:
12
13 $ /etc/init.d/elasticsearch stop
14 $ mv /var/lib/elasticsearch /var/lib/elasticsearch.DATE
15 $ /etc/init.d/elasticsearch start
16+ # Confirm an empty ES database.
17+ $ curl -XGET 'http://localhost:9200/_status?pretty=true'
18
19-Then on jc-charmworld/0:
20+On jc-charmworld/0:
21
22 $ sudo su - webops_deploy
23 $ cd ~/charmworld
24 $ INI=production.ini ./bin/es-update
25
26+On jc-elasticsearch/0:
27+
28+ # Confirm a charmworld schema exists.
29+ $ curl -XGET 'http://localhost:9200/_status?pretty=true'
30+
31+On jc-charmworld/0:
32+ $ sudo /srv/deploymgr/charmworld start
33+
34 The above will only take a few minutes (~5) to complete. Next, wait for
35 a set of enqueue/ingest jobs to run. Once run, the ES database will be
36 back in order.

Subscribers

People subscribed via source and target branches

to all changes: