Merge lp:~adeuring/charms/precise/charmworld/es_shards_replicas into lp:~juju-jitsu/charms/precise/charmworld/trunk
Proposed by
Abel Deuring
Status: | Merged |
---|---|
Approved by: | Abel Deuring |
Approved revision: | 77 |
Merged at revision: | 77 |
Proposed branch: | lp:~adeuring/charms/precise/charmworld/es_shards_replicas |
Merge into: | lp:~juju-jitsu/charms/precise/charmworld/trunk |
Diff against target: |
58 lines (+20/-2) 2 files modified
config.yaml (+12/-0) scripts/write_config.py (+8/-2) |
To merge this branch: | bzr merge lp:~adeuring/charms/precise/charmworld/es_shards_replicas |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Aaron Bentley (community) | Approve | ||
Juju Gui Bot | Approve | ||
Review via email: mp+186777@code.launchpad.net |
Description of the change
While working on a fixed ES mapping for charms, I introduced two new options, es_shards and es_replicas, to charmworld's configuration.
The default values (1 shard, 0 replicas) are reasonable for development, but should be changed for production. This branch adds these parameters to the charmwold charm. I kept the default values because they work for each setup, but when two or more ElasticSearch nodes are running, it is reasonable to increase both parameters in order to use all nodes properly.
To post a comment you must log in.
Looks good to me.