TAGS :Viewed: 2 - Published at: a few seconds ago

[ Elasticsearch configuration for test environment ]

We are doing automated integration testings between our application and Elasticsearch and we would like to get better performance with while running our tests.

We have a script to run our tests and before each tests it deletes all indices and then run a bulk to populate the indices.

Here's our Elasticsearch config

index.number_of_shards: 1
index.number_of_replicas: 0
index.refresh_interval: 50
index.store.type: memory

The bottle neck of our tests is the before each instruction which take ~0.7s each time.

Is there some configurations we should change or add ?

Thanks for the help.

Elasticsearch is running inside Virtualbox using vagrant (If this can be of any help).

Answer 1

I solved this problem by stubbing responses from elasticsearch for tests that not relates to search.

For example we don't need to create index if we don't test search features.