Hi ivyteam

My team has a server which has 3 instances of Ivy engine on it. Sometime when we restart engine, it cause issue that "ES can not be started. Connection refused"

As far as i know on each engine it sill contain one ES and it will be started when engine is started. By default, ES will take port 9200 or 19200 on localhost (Reference link https://developer.axonivy.com/doc/latest/EngineGuideHtml/installation.html#installation.elasticsearch )

So is there any cases that the port is conflicted in my situation? If so, how can we configure the port for many instance of Ivy engine? We're using Amazon cloud so it's not a good way to buy different server for each Engine on cloud.

Thanks

asked 09.03 at 01:48

trungdv's gravatar image

trungdv
450628398
accept rate: 52%


You can set the URL to your elastic search server with a system property: Elasticsearch.ExternalServer.Url then ivy does not start an elastic search instance by a random port...

link

answered 19.03 at 07:55

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
7.1k11342
accept rate: 70%

Hi @trungdv,

Based on my experience with Elasticsearch on Ivy, I used to try to block ES from starting on port 9200 or 19200 then I see that ES will try to start on another port like 9201 or 19201.

In addition to that, normally an Amazon EC2 instance does not allow any other port than 80, 443 or 8080. It could be refused by the firewall.

You can use process explorer to check all the process and port that ES starting on. Hope it helps

link

answered 16.03 at 00:57

ToanLC's gravatar image

ToanLC
16171321
accept rate: 16%

Thanks @ToanLC I have one concern that if ES auto change to use new port, can Ivy connect to it via that port? With ES we can define the fix port in config file but i don't see any config like that on ivy engine

(18.03 at 22:55) trungdv trungdv's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×26
×7

Asked: 09.03 at 01:48

Seen: 181 times

Last updated: 19.03 at 07:55