Apurva
Apurva

Reputation: 69

Running netflix conductor with standalone elastic search?

How to configure Netflix conductor to run standalone elastic search rather than embedded elastic search ?

Upvotes: 1

Views: 2369

Answers (3)

HoaPhan
HoaPhan

Reputation: 1916

if you have a conductor-config.properties just make sure you have these pointing to the valid elasticsearch you have up and running:

workflow.elasticsearch.instanceType=EXTERNAL
workflow.elasticsearch.url=http://elasticsearch:9200

Then should be able to run conductor up with that config: java conductor-server-2.15.0-SNAPSHOT-all.jar conductor-config.properties

https://github.com/Netflix/conductor/blob/master/es5-persistence/src/main/java/com/netflix/conductor/dao/es5/index/ElasticSearchRestDAOV5.java You can inspect this as an example, swapping the elastic container by your own, modifying the conductor-config.properties. It will be copied in when you run: check out https://github.com/s50600822/conductor-cheat inside the repo just do

docker-compose up

Check out https://github.com/Netflix/conductor/blob/master/es5-persistence/src/main/java/com/netflix/conductor/dao/es5/index/ElasticSearchRestDAOV5.java for other options.

Upvotes: 2

guru
guru

Reputation: 132

You can use the standalone installation of elasticsearch2 or elasticsearch5 because the associated support classes are already provided with Netflix Conductor binary.

To configure externally you have to do the following

  • Install and configure standalone elasticsearch. By default the installation would expose 2 ports 9200/http or 9300/tcp.
  • Update server.properties file with the host and port so that the communication will start happening with the standalone instance of elasticsearch.

Hope this helps.

Upvotes: 0

samba
samba

Reputation: 13

To add external elastic search we need to follow code changes as mentioned in below link. https://github.com/Netflix/conductor/tree/master/es5-persistence. And rebuild jar and run conductor server again with properties.

if you still get errors , I suggest to follow below link https://github.com/Netflix/conductor/issues/489.

Upvotes: 0

Related Questions