question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Show refresh trigger in UI without having the updatable env endpoint

See original GitHub issue

Hello SBA Team,

I just wanted to start an enhancement request regarding the /refresh endpoint please.

Currently, on server side, I do have:

spring.boot.admin.probed-endpoints=beans,caches,conditions,configprops,env,health,heapdump,info,loggers,mappings,metrics,scheduledtasks,threaddump,refresh

(note the last one on the list, refresh)

On app start up, after registration, I do see on client side (the service that is going to be registered to SBA server) log:

[or-http-epoll-4] reactor.netty.http.server.AccessLog      : 1x.1xx.1xx.1xx:45504 - - [18/Feb/2021:00:25:14 +0000] "OPTIONS /refresh HTTP/2.0" 200 - 13 ms

But that is all. No further call to refresh endpoint by SBA server.

It will be interesting on the SBA Serverside, maybe through the UI, to have a way to “trigger” those refresh (without making it a periodic poll like /health).

Many clients that expose the @refreshScope can benefits from this feature, making SBA server even more useful for dynamic content.

Thank you

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
AnakinPtcommented, Mar 25, 2021

I think this feature would be useful just with the /actuator/refresh. Could you make it work, please? I would not like to expose the /actuator/env push just for this.

1reaction
patpatpat123commented, Feb 26, 2021

Hello @joshiste,

So you are correct, I went to activate the /POST to /env, and was able to see the difference.

As expected, very well designed.

But the UI expect some kind of input, on the left and right side (two text boxes to fill)

I was more suggesting a simple refresh button, that will trigger the /refresh endpoint of the registered app, no matter the registered app has /env ready or not.

This way, the Admin will have the possibility to trigger the dynamic hot reload of properties of registered apps, which can be a very strong feature.

I believe it is what you said here:

“accept a PR that a refresh button is shown depending on whether /refresh is present or not (and don’t depend on the POST-ability of /env”

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spring Cloud Config Refresh Strategies - Soshace
The first method of property refreshment is calling the /actuator/refresh endpoint. This endpoint is exposed in config clients so a call to ...
Read more >
Springboot Actuator Refresh does not reload @Value ...
But I noticed that you are using RefreshScope on main application class. IMO this actuator management/refresh will not restart application. You ...
Read more >
Spring Boot Actuator Web API Documentation
The env endpoint provides information about the application's Environment . 7.1. Retrieving the Entire Environment. To retrieve the entire environment, make a ......
Read more >
Use dynamic configuration using push refresh in a .NET Core ...
In this tutorial, you learn how to dynamically update the configuration data for .NET Core apps using push refresh.
Read more >
Trigger pipelines by using the API - GitLab Docs
To trigger a pipeline for a specific branch or tag, you can use an API call to the pipeline triggers API endpoint. When...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found