Skip to content

Commit

Permalink
Don't bother setting the number of index replicas when creating kiban…
Browse files Browse the repository at this point in the history
…a-int (relates to #3877)

Fixes #5729
  • Loading branch information
eherot authored and Rashid Khan committed Dec 21, 2015
1 parent 66bcee5 commit f6c611b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ describe('plugins/elasticsearch', function () {
.to.have.property('settings');
expect(params.body.settings)
.to.have.property('number_of_shards', 1);
expect(params.body.settings)
.to.have.property('number_of_replicas', 1);
});
});

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/elasticsearch/lib/__tests__/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ describe('plugins/elasticsearch', function () {
testRoute({
method: 'POST',
url: '/elasticsearch/.kibana',
payload: {settings: { number_of_shards: 1, number_of_replicas: 1 }},
payload: {settings: { number_of_shards: 1 }},
statusCode: 200
});

Expand Down
3 changes: 1 addition & 2 deletions src/plugins/elasticsearch/lib/create_kibana_index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ module.exports = function (server) {
index: index,
body: {
settings: {
number_of_shards: 1,
number_of_replicas: 1
number_of_shards: 1
},
mappings: {
config: {
Expand Down
3 changes: 1 addition & 2 deletions test/fixtures/scenarios/emptyKibana/kibanaDefinition.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module.exports = {
settings: {
number_of_shards: 1,
number_of_replicas: 1
number_of_shards: 1
},
mappings: {
config: {
Expand Down

0 comments on commit f6c611b

Please sign in to comment.