Spring Cloud Config Server: configure git pull interval

Viewed 2013

I am using Spring Cloud Config Server connected to Eureka Server with BitBucket git repository. I found out under debugger that org.eclipse.jgit.api.PullCommand#call is being invoked via scheduler each time Config Server is updating it's status with Eureka. Moreover, it's invoked each time connected services are querying for the updated config, and even each time /health endpoint is requested on Spring Cloud Config Server or on the connected client.

I believe it's a big overhead in terms of HTTP response time, but also in terms of the outgoing traffic.

Is there a way to update locally cloned repository less often?

P.S. I know that there is a File System Backend, or I can point Config Server into manually cloned local (i.e., file:///) repository. But I wonder if there is such a functionality out of the box.

1 Answers
Related