Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

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 elastic#3877)
  • Loading branch information
eherot committed Dec 14, 2015
1 parent 14890ff commit 8479a38
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 8479a38

Please sign in to comment.