Apiman will automatically create the appropriate ES indexes if they do
not exist. However, it does this in a very naive way:
https://github.com/apiman/apiman/blob/master/gateway/engine/es/src/main/j...
That said, we aren't really elasticsearch experts, so I'm not too
confident offering advice on how to scale/cluster a production instance
of Elasticsearch (note that we are working on alternatives).
My suggestion is probably to create the indexes manually, and shard them
however you think is appropriate. Apiman will then simply use the
indexes you create rather than create them for you. You can use the ES
Mappings files when configuring the indexes:
https://github.com/apiman/apiman/tree/master/gateway/engine/es/src/main/r...
-Eric
On 2/23/2016 5:07 PM, Aikeaguinea wrote:
I'm moving toward a production deployment of apiman on AWS. At
least for
now we're using Amazon's Elasticsearch service and have been able to
configure and use it.
For production, we need to pay attention to some of the finer details of
clustering, etc. It looks like sharding is mainly controlled when an
index is created. How does apiman manage creating replica shards? Does
this need to be configured somehow?