[Apiman-user] Elasticsearch configuration
Aikeaguinea
aikeaguinea at xsmail.com
Wed Feb 24 13:52:07 EST 2016
Thanks!
On Wed, Feb 24, 2016, at 10:44 AM, Eric Wittmann wrote:
> 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/java/io/apiman/gateway/engine/es/ESClientFactory.java#L220-L233
>
> 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/resources/io/apiman/gateway/engine/es
>
> -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?
> >
--
Aikeaguinea
aikeaguinea at xsmail.com
--
http://www.fastmail.com - Choose from over 50 domains or use your own
More information about the Apiman-user
mailing list