spring-cloud-consul icon indicating copy to clipboard operation
spring-cloud-consul copied to clipboard

Ability to register only management service

Open Delorien84 opened this issue 7 years ago • 5 comments

Hi, I would like to have feature to be able only register management service in consul. I have service based on spring-cloud-stream that does not expose any business REST endpoint, only /actuator is exposed. In that case it would be fine to have registered only management service in consul. Currently there is always registered two services app and app-management

I have setup application to expose only one port and set spring.resources.add-mappings: false to disable default endpoints.

See https://github.com/spring-projects/spring-boot/issues/12927 for original issue.

Delorien84 avatar May 04 '18 07:05 Delorien84

Not that I know of. What is the problem if there are no rest endpoints?

spencergibb avatar Nov 19 '18 19:11 spencergibb

In fact, there is no problem with that. It would be just nice to have. Currently we do not have any use case for that. I think we may close it.

Delorien84 avatar Nov 20 '18 20:11 Delorien84

It's not a common scenario, so let's see what kind of voting we get.

spencergibb avatar Nov 20 '18 20:11 spencergibb

Not that I know of. What is the problem if there are no rest endpoints?

Main problem is around the threads overhead it adds by creating separate embedded webserver instance. (even in the optimized configuration)

JigarJoshi avatar Apr 12 '19 19:04 JigarJoshi

@JigarJoshi if one of the boot issues goes thru, we can then do something here.

spencergibb avatar Apr 12 '19 20:04 spencergibb