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

How can I alter the heartbeat of the instance #81

Closed PFernandezTorres closed 4 months ago

PFernandezTorres commented 4 months ago

In my spring boot project, I have set that every client needs to send every 5s a heartbeat and an expiration time of 9s. If the python instance has set per default a 30s heartbeat, it can lead to errors. How I can alter the python settings so it is the same at its spring boot peers

keijack commented 4 months ago

You can set renewal_interval_in_secs in the init function to change the heartbeat interval.

PFernandezTorres commented 4 months ago

Thank you. I didn't see that property in the docs