These are chat archives for spring-cloud/spring-cloud

10th
Jan 2017
suren343
@suren343
Jan 10 2017 15:28
Hi..My Eureka registry is pointing to git and there is continuous polling to GIT for the config...Is there any way or parameter by which i can control the polling to GIT server
Ryan Baxter
@ryanjbaxter
Jan 10 2017 15:34
what do u mean your Eureka registry is pointing to git?
suren343
@suren343
Jan 10 2017 15:39
Ryan, I have Registry where all application config i am fetching from GIT, on start of registry
Ryan Baxter
@ryanjbaxter
Jan 10 2017 15:52
i am confused by Eureka using git
do u mean a config server using git?
suren343
@suren343
Jan 10 2017 16:18
yes
@ryanjbaxter : Config Server us using git
i want to reduce polling to GIT to avoid performance issues
Ryan Baxter
@ryanjbaxter
Jan 10 2017 17:13
are u sure it is polling Git? I dont seem to recall that happening
suren343
@suren343
Jan 10 2017 17:24
yes..I am not using native but git for config.. I can see continous polling messages.. '2017-01-10 17:13:23.029 WARN 9069 --- [ XNIO-2 task-26] .c.s.e.MultipleJGitEnvironmentRepository : Could not pull remote for master (current ref=Ref[refs/heads/master=f09dfd2700db64935cf73fe93e9e282f0688fd1b]), remote: git@github.xyz.com:abc/testConfig.git'
Marcin Grzejszczak
@marcingrzejszczak
Jan 10 2017 17:41
can you please paste the code snippet in using 3 x ` at the beginning and end?
suren343
@suren343
Jan 10 2017 17:53
2017-01-10 17:13:23.029 WARN 9069 --- [ XNIO-2 task-26] .c.s.e.MultipleJGitEnvironmentRepository : Could not pull remote for master (current ref=Ref[refs/heads/master=f09dfd2700db64935cf73fe93e9e282f0688fd1b]), remote: git@github.xyz.com:abc/testConfig.git
Ryan Baxter
@ryanjbaxter
Jan 10 2017 18:27
@suren343 does it ever succeed
do you have retry enabled?
suren343
@suren343
Jan 10 2017 19:04
@ryanjbaxter : we are able to access git and get the config props..we want to limit the polling as there is too much polling to Git.
Spencer Gibb
@spencergibb
Jan 10 2017 19:04
there’s no polling. You might be having health indicators hit things
suren343
@suren343
Jan 10 2017 19:19
@spencergibb : We have updated cloud.config.server.health.enabled = false...Still we see heavy polling to GIT by the applications for config props..Is there any way we can make application access GIT
Spencer Gibb
@spencergibb
Jan 10 2017 19:19
there is no polling
Brian
@asmabri
Jan 10 2017 22:51
I’m trying to set up a project using spring cloud consul. I set the management port to 0 in my config, to use a random port. The management port is successfully set randomly when the app is started, but it is registered to consul with port 0, and health checks fail because of that. If I set the main server port to 0, it is registered to consul correctly with the random port. Is this a known issue or am I doing something wrong?
Spencer Gibb
@spencergibb
Jan 10 2017 23:00
not supported yet