Hystrix: No URLs will be polled as dynamic configuration sources.

Created on 17 Jun 2014  路  12Comments  路  Source: Netflix/Hystrix

hi,

I am using :

<dependency>
    <groupId>com.netflix.hystrix</groupId>
    <artifactId>hystrix-core</artifactId>
    <version>1.3.16</version>
</dependency>

From time to time I see the following log message:

WARN No URLs will be polled as dynamic configuration sources. ("com.netflix.config.sources.URLConfigurationSource)

URLConfigurationSource is located in archaius-core which is a dependency of hystrix-core.

Any ideas why hystrix wants to use a URLConfigurationSource ?

Most helpful comment

I also encountered this problem, why create a config.properties, do not want to create config.properties do not want to see this warning, because useless

All 12 comments

Hi,
Create a config.properties file in your classpath, it prevents this warning.

I also encountered this problem, why create a config.properties, do not want to create config.properties do not want to see this warning, because useless

If Hystrix works without config.properties, it's merely an info. Why'd the user create a useless file to suppress this warning?

@benjchristensen I suggest re-opening this issue, as it's still an issue.

Imho to fix this issue (simple lumber way), just removal of one line is needed: URLConfigurationSource.java#L126

Information will not be lost, as next line will print similar info.

Proper fix probably should be done in archaius in DynamicPropertyFactory class. It should not use some URLConfigurationSource if not requested. According to nice documentation it will automatically try to get config from url saved in system property URLConfigurationSource.CONFIG_URL = "archaius.configurationSource.additionalUrls". What about to check, if given property is set and use URLConfigurationSource only when it has some value?

PS: setting DISABLE_DEFAULT_CONFIG = "archaius.dynamicProperty.disableDefaultConfig" system property to true, will get rid of trying doing things which you do not use. Thus get rid of given warning and info message.

涓轰粈涔堥潪瑕佸垱寤轰竴涓病鏈夌敤鐨勬枃浠跺憿锛屽氨娌℃湁鍒殑鏂规硶鍚楋紵

Another approach for your Spring Boot properties file: logging.level.com.netflix.config.sources.URLConfigurationSource=ERROR

Had to delete application and git clone + fresh install... tried all the suggestions here

@benjchristensen I suggest re-opening this issue, as it's still an issue.

We use Zuul, which requires Hystrix. System is working as expected without the need of any additional configuration. So this warning is misleading. Nothing is wrong with configuration.

Get rid of the warning please. Reduce log level or delete it completely.

Had similar problem. WARN -- No URLs will be polled as dynamic configuration sources.

Next line is INFO - To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.

Just added a blank config.properties file to the classpath (in the resources folder) and warning is gone.

Can also define system property: https://github.com/Netflix/archaius/wiki/Getting-Started and https://www.baeldung.com/netflix-archaius-spring-cloud-integration

the warning is still in place. to silence it adding an empty config.properties still helps. so i would guess it will stay in because after 6 years i don't think a fix will happen.

Was this page helpful?
0 / 5 - 0 ratings