GitHub user marevol opened a pull request:
https://github.com/apache/incubator-predictionio/pull/369
Add parameters to specify the number of shards/replicas for elasticsearch
To set the number of shards/replicas, add the following values:
- PIO_STORAGE_SOURCES_ELASTICSEARCH_${INDEX}_NUM_OF_SHARDS
- PIO_STORAGE_SOURCES_ELASTICSEARCH_${INDEX}_NUM_OF_REPLICAS
For examples, they are in pio-env.sh:
```
PIO_STORAGE_SOURCES_ELASTICSEARCH_PIO_META_NUM_OF_SHARDS=1
PIO_STORAGE_SOURCES_ELASTICSEARCH_PIO_META_NUM_OF_REPLICAS=2
PIO_STORAGE_SOURCES_ELASTICSEARCH_PIO_EVENT_NUM_OF_SHARDS=10
PIO_STORAGE_SOURCES_ELASTICSEARCH_PIO_EVENT_NUM_OF_REPLICAS=1
```
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/marevol/incubator-predictionio
num_of_shards_replicas
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-predictionio/pull/369.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #369
----
commit ac20ce9783e06f5d3b53419b5e9cd2e7a43be8f7
Author: Shinsuke Sugaya <[email protected]>
Date: 2017-04-11T09:14:41Z
add parameters for the number of shards/replicas
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---