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.

The problem of multiple keys in ConfigWatch

See original GitHub issue

Hi, I’m using consul config in a spring application, but I found a problem in the ConfigWatch. I have two keys to watch. One is config/application/data which is for the common configuration, the ohter is config/appName/data which is for the private configuraion. I hope that one of them is updated in consul, I need to kown the notification from consul. However, If config/application/data is blocked in the ConfigWatch and config/appName/data is updated now, the Spring application can’t get any notification from consul. Because config keys are not blocked in the same time, they do watch action one by one. Therefore one key is blocked in watch, the other will not get any notification even if it has been updated.

for (String context : this.consulIndexes.keySet()) {
...
    Response<List<GetValue>> response = this.consul.getKVValues(context, aclToken,
        new QueryParams(this.properties.getWatch().getWaitTime(),
            currentIndex));
...
}

So, how can I do to solve this problem?

Thanks.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
spencergibbcommented, Dec 13, 2018

I think the answer would be to execute them in parallel using projectreactor.io.

0reactions
takeseemcommented, Feb 10, 2021

It really needs improvement, the waiting time is too long in multiple configurations.

The first configuration is the main configuration, and I only need to monitor the first configuration.

details pull #705

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spring Cloud Consul ConfigWatch delay - Stack Overflow
When I update a value in Consul for a given key, I am able to eventually see that the RefreshEvent is received and...
Read more >
Installed Pro Series 2020 cannot open sign in page is like it is ...
I found that entering the values in the user ID and password fields and then pressing CNTL-ALT-delete, then the escape key, that when...
Read more >
63. Distributed Configuration with Consul - Docs4dev
To disable the Config Watch set spring.cloud.consul.config.watch.enabled=false . 63.4 YAML or Properties with Config. It may be more convenient to store a blob ......
Read more >
Issues with Log4net in Episerver 11 - Oshyn
Since Episerver was updated to version 11, there has been an issue with Log4net logging on ... Config" value="EPiServerLog.config"/> <add key="log4net.
Read more >
16. Configuration Watch | Heal Software Inc
The infrastructure components have different configurations depending on ... Config Watch detects the changes at KPI collection interval.
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