{"action":"created","issue":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/254","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/254/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/254/comments","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/254/events","html_url":"https://github.com/spring-cloud/spring-cloud-config/issues/254","id":111682697,"number":254,"title":"Clients are polling the config server","user":{"login":"jordanjennings","id":1031913,"avatar_url":"https://avatars.githubusercontent.com/u/1031913?v=3","gravatar_id":"","url":"https://api.github.com/users/jordanjennings","html_url":"https://github.com/jordanjennings","followers_url":"https://api.github.com/users/jordanjennings/followers","following_url":"https://api.github.com/users/jordanjennings/following{/other_user}","gists_url":"https://api.github.com/users/jordanjennings/gists{/gist_id}","starred_url":"https://api.github.com/users/jordanjennings/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordanjennings/subscriptions","organizations_url":"https://api.github.com/users/jordanjennings/orgs","repos_url":"https://api.github.com/users/jordanjennings/repos","events_url":"https://api.github.com/users/jordanjennings/events{/privacy}","received_events_url":"https://api.github.com/users/jordanjennings/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-15T18:49:41Z","updated_at":"2015-10-15T19:58:25Z","closed_at":"2015-10-15T19:58:05Z","body":"Not sure exactly what's causing this, but my config server is getting hammered with requests from applications that are running and when I check the application logs I see multiple config fetches per minute, here's one app's log file for example:\r\n\r\n```\r\n2015-10-15 14:39:31.072  INFO 25849 --- [nio-8082-exec-6] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at: http://{config server host}:8888\r\n2015-10-15 14:40:02.067  INFO 25849 --- [nio-8082-exec-8] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at: http://{config server host}:8888\r\n2015-10-15 14:40:11.072  INFO 25849 --- [nio-8082-exec-9] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at: http://{config server host}:8888\r\n2015-10-15 14:40:45.084  INFO 25849 --- [nio-8082-exec-1] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at: http://{config server host}:8888\r\n2015-10-15 14:40:46.442  INFO 25849 --- [nio-8082-exec-5] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at: http://{config server host}:8888\r\n2015-10-15 14:41:17.943  INFO 25849 --- [nio-8082-exec-7] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at: http://{config server host}:8888\r\n2015-10-15 14:41:21.565  INFO 25849 --- [nio-8082-exec-6] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at: http://{config server host}:8888\r\n2015-10-15 14:42:01.791  INFO 25849 --- [nio-8082-exec-8] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at: http://{config server host}:8888\r\n2015-10-15 14:42:12.491  INFO 25849 --- [nio-8082-exec-9] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at: http://{config server host}:8888\r\n```\r\n\r\nHere's what my bootstrap.yml looks like for all apps:\r\n\r\n```\r\nspring:\r\n  application:\r\n    name: {app name here}\r\n  cloud:\r\n    config:\r\n      failFast: true\r\n      uri: http://{config server host}:8888\r\n      username: {removed}\r\n      password: {removed}\r\n```\r\n\r\nI would expect the config clients to only request configs at startup and when `/refresh` is called. Is this a bug or have I missed some configuration option?\r\n\r\nLooking at the code it seems when failFast is set a RetryOperationsInterceptor kicks in, but it should only retry 6 times by default. I am not familiar with how these interceptors work though, so this may or may not be related:\r\n\r\nhttps://github.com/spring-cloud/spring-cloud-config/blob/master/spring-cloud-config-client/src/main/java/org/springframework/cloud/config/client/ConfigServiceBootstrapConfiguration.java#L70"},"comment":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/comments/148504037","html_url":"https://github.com/spring-cloud/spring-cloud-config/issues/254#issuecomment-148504037","issue_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/254","id":148504037,"user":{"login":"jordanjennings","id":1031913,"avatar_url":"https://avatars.githubusercontent.com/u/1031913?v=3","gravatar_id":"","url":"https://api.github.com/users/jordanjennings","html_url":"https://github.com/jordanjennings","followers_url":"https://api.github.com/users/jordanjennings/followers","following_url":"https://api.github.com/users/jordanjennings/following{/other_user}","gists_url":"https://api.github.com/users/jordanjennings/gists{/gist_id}","starred_url":"https://api.github.com/users/jordanjennings/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordanjennings/subscriptions","organizations_url":"https://api.github.com/users/jordanjennings/orgs","repos_url":"https://api.github.com/users/jordanjennings/repos","events_url":"https://api.github.com/users/jordanjennings/events{/privacy}","received_events_url":"https://api.github.com/users/jordanjennings/received_events","type":"User","site_admin":false},"created_at":"2015-10-15T19:58:25Z","updated_at":"2015-10-15T19:58:25Z","body":"You rock, thanks for the quick replies!"}}