keijack / python-eureka-client

A eureka client written in python. Support registering your python component to Eureka Server, as well as calling remote services by pulling the the Eureka registry.
MIT License
183 stars 43 forks source link

What to set in instance_host instead of localhost ? #66

Open Rutik333 opened 2 years ago

Rutik333 commented 2 years ago

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

keijack commented 2 years ago

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

Rutik333 commented 2 years ago

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