python-eureka-client icon indicating copy to clipboard operation
python-eureka-client copied to clipboard

What to set in instance_host instead of localhost ?

Open Rutik333 opened this issue 3 years ago • 2 comments

Right now in eureka configuration I set "instance_host":"localhost" but for scaling purpose I don't want to use localhost instead of that I give my hostname but it gives issue while i try to connect python service through Java service please help me to understand what is the use of instance_host and instance_ip and how to change it to hostname instead of localhost

Rutik333 avatar May 12 '22 07:05 Rutik333

If you have a DNS deployed, you can set instance_host to that domain, otherwise, use instance_ip.

keijack avatar May 12 '22 07:05 keijack

Hi @keijack i don't have DNS deployed i tried to set instance_host with instance_ip ie. both are same to my server ip but after setting that one of my java service is communicating with that and other having issue with ssl eventhough i used same SSL and every configuration is also same

Rutik333 avatar May 12 '22 08:05 Rutik333