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
Python eureka service is getting registered deregistered in prod multiple times #71
Nice tutorial. I am having Python and spring boot services on eureka but Python service is frequently coming in Last 1000 newly registered leases and no other service is coming. It is not getting heartbeat, may I know the reason or solution for the same? My register method
Hi Keijack,
Nice tutorial. I am having Python and spring boot services on eureka but Python service is frequently coming in Last 1000 newly registered leases and no other service is coming. It is not getting heartbeat, may I know the reason or solution for the same? My register method
def register_eureka(should_register=True): server_host = 'xyz.com' eureka_url = 'https://xyz.com/' homePageUrl = 'https://' + server_host healthCheckUrl = 'https://' + server_host + '/healthCheck' eureka_client.init(eureka_server=eureka_url, app_name='AppName', zone='zone1', instance_host=server_host, instance_secure_port_enabled=True, instance_unsecure_port_enabled=False, instance_secure_port=443, home_page_url=homePageUrl, status_page_url=healthCheckUrl, health_check_url=healthCheckUrl, ha_strategy=eureka_client.HA_STRATEGY_RANDOM, instance_port=8080, should_register=should_register)
My method to get service from eureka:
def getUpInstancesFromEureka(serviceName):