Merge lp:~jorge/charms/precise/elasticsearch/fix-markdown into lp:~charmers/charms/precise/elasticsearch/trunk

Proposed by Jorge Castro
Status: Merged
Merge reported by: Juan L. Negron
Merged at revision: not available
Proposed branch: lp:~jorge/charms/precise/elasticsearch/fix-markdown
Merge into: lp:~charmers/charms/precise/elasticsearch/trunk
Diff against target: 93 lines (+36/-28)
1 file modified
README.md (+36/-28)
To merge this branch: bzr merge lp:~jorge/charms/precise/elasticsearch/fix-markdown
Reviewer Review Type Date Requested Status
Juan L. Negron (community) Approve
Review via email: mp+144609@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Juan L. Negron (negronjl) wrote :

reviewing this now.

-Juan

Revision history for this message
Juan L. Negron (negronjl) wrote :

Approved.

-Juan

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'README.md'
2--- README.md 2012-11-18 22:28:43 +0000
3+++ README.md 2013-01-23 23:37:21 +0000
4@@ -1,47 +1,55 @@
5+# Running ElasticSearch
6+
7 To deploy elasticsearch locally you just need to:
8
9- juju bootstrap
10- juju deploy elasticsearch
11- you can add more units ... LXC can deal with multicast
12- juju add-unit elasticsearch
13+ juju bootstrap
14+ juju deploy elasticsearch
15+
16+You can add more units ... LXC can deal with multicast
17+
18+ juju add-unit elasticsearch
19
20 To deploy on ec2 you need to specify a config file with your AWS access key and secret key which are used by
21 elasticsearch for discovery. See the elastisearch on ec2 tutorial for more information:
22
23-see http://www.elasticsearch.org/tutorials/2011/08/22/elasticsearch-on-ec2.html
24+see
25+
26+- http://www.elasticsearch.org/tutorials/2011/08/22/elasticsearch-on-ec2.html
27
28 For instance in an elasticsearch.yaml config file you would have:
29
30-elasticsearch:
31- access-key: Your_AWS_Access_Key
32- secret-key: Your_AWS_Secret_Key
33+ elasticsearch:
34+ access-key: Your_AWS_Access_Key
35+ secret-key: Your_AWS_Secret_Key
36
37 You can also set a region config parameter in this file if the us-east region is not the one you want to use for
38 discovery. See the elasticache aws plugin documentation for more information:
39
40-https://github.com/elasticsearch/elasticsearch-cloud-aws
41-
42-all that failing I have built an experimental config item 'zenmasters' which should enable unicast clustering.
43+- https://github.com/elasticsearch/elasticsearch-cloud-aws
44+
45+# Configuration Options
46+
47+There is an experimental config item 'zenmasters' which should enable unicast clustering.
48
49 Once the unit has started you can test if everything's working by using curl as below to do a health check
50 which should give you a similar json response.
51
52- $ curl -XGET 'http://<ec2 dns or ip of a node>:9200/_cluster/health?pretty=true'
53-
54- {
55- "cluster_name" : "es-demo",
56- "status" : "green",
57- "timed_out" : false,
58- "number_of_nodes" : 2,
59- "number_of_data_nodes" : 2,
60- "active_primary_shards" : 5,
61- "active_shards" : 10,
62- "relocating_shards" : 0,
63- "initializing_shards" : 0,
64- "unassigned_shards" : 0
65- }
66-
67-the download files for the current version are included in the package, but they can be downloaded by removing the files, or changing the config to point to a different version.
68+ curl -XGET 'http://<ec2 dns or ip of a node>:9200/_cluster/health?pretty=true'
69+
70+ {
71+ "cluster_name" : "es-demo",
72+ "status" : "green",
73+ "timed_out" : false,
74+ "number_of_nodes" : 2,
75+ "number_of_data_nodes" : 2,
76+ "active_primary_shards" : 5,
77+ "active_shards" : 10,
78+ "relocating_shards" : 0,
79+ "initializing_shards" : 0,
80+ "unassigned_shards" : 0
81+ }
82+
83+The download files for the current version are included in the package, but they can be downloaded by removing the files, or changing the config to point to a different version.
84
85 there seems to be something a bit buggy with the service wrapper on the first unit ... if it's not start/stopping properly, get in there and hard kill any java processes then start it again using the service wrapper. seems to work fine after doing that.
86
87@@ -50,4 +58,4 @@
88 use http://ip.addr:9200/_plugin/head to see a good status view of the cluster.
89
90
91-see logstash-indexer charm's README.md file for usage examples.
92\ No newline at end of file
93+see logstash-indexer charm's README.md file for usage examples.

Subscribers

People subscribed via source and target branches

to all changes: