I have 2 Spring applications ("client application" and "service application") that are already registered with Eureka (and speak through Feign Client). However, I have to talk to the Solr instance, and I am forced to hard-code the IP address in the properties file. I would rather not do this and use Eureka to discover services.
Question : Is there a way / plugin for solr to register itself with Eureka so that clients can detect it (even if it is programmatically through a start listener or some kind of one)?
I looked at the solr API and does not seem to have a lifecycle listener (onStartUp or onShutdown hooks)
source share