Spring Cloud Config + Github -> refresh Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experienceSpring Cloud Config + Spring Cloud Bus + RabbitMQ - Not auto refreshing clients with local Git repositorySpring cloud config client properties are not getting resolvedHow Spring Cloud Config Server PUSH plain text files to Config Client Application?Spring Cloud Config ServerEmpty list of Keys refreshed [] on Spring Cloud Config Server (Spring Boot application)spring cloud config without post /refreshSpring Cloud Discrovery Eureka - Returns Localhost instead the hostname it is locatedSpring Cloud - Configuration client caching propertiesRefreshing Spring Cloud Config without QueueSpring cloud config server-client refresh strategy

What LEGO pieces have "real-world" functionality?

Why is "Captain Marvel" translated as male in Portugal?

What do I do if technical issues prevent me from filing my return on time?

What is the electric potential inside a point charge?

Why don't the Weasley twins use magic outside of school if the Trace can only find the location of spells cast?

Did the new image of black hole confirm the general theory of relativity?

How to set letter above or below the symbol?

Why does this iterative way of solving of equation work?

How to say that you spent the night with someone, you were only sleeping and nothing else?

Stop battery usage [Ubuntu 18]

Can I throw a longsword at someone?

What items from the Roman-age tech-level could be used to deter all creatures from entering a small area?

Is there a documented rationale why the House Ways and Means chairman can demand tax info?

How can players take actions together that are impossible otherwise?

Need a suitable toxic chemical for a murder plot in my novel

Are my PIs rude or am I just being too sensitive?

What loss function to use when labels are probabilities?

Can smartphones with the same camera sensor have different image quality?

Mortgage adviser recommends a longer term than necessary combined with overpayments

Blender game recording at the wrong time

How do you clear the ApexPages.getMessages() collection in a test?

Is above average number of years spent on PhD considered a red flag in future academia or industry positions?

Simulating Exploding Dice

Can a non-EU citizen traveling with me come with me through the EU passport line?



Spring Cloud Config + Github -> refresh



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
The Ask Question Wizard is Live!
Data science time! April 2019 and salary with experienceSpring Cloud Config + Spring Cloud Bus + RabbitMQ - Not auto refreshing clients with local Git repositorySpring cloud config client properties are not getting resolvedHow Spring Cloud Config Server PUSH plain text files to Config Client Application?Spring Cloud Config ServerEmpty list of Keys refreshed [] on Spring Cloud Config Server (Spring Boot application)spring cloud config without post /refreshSpring Cloud Discrovery Eureka - Returns Localhost instead the hostname it is locatedSpring Cloud - Configuration client caching propertiesRefreshing Spring Cloud Config without QueueSpring cloud config server-client refresh strategy



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















There's an example that after configuring callback in Github to call Spring Cloud Config server, it emits event to RabbitMQ which is received in all microservices and then they restart their configuration. I've managed to do that and I can simulate whole flow by sending :



curl -u -v -X POST "http://localhost:8888/monitor" -H "Content-Type: application/json" -H "X-Event-Key: repo:push" -H "X-Hook-UUID: webhook-uuid" -d '"push": "changes": [] '


All microservices restarts ok after it.



However, because of network configuration, I cannot define webhook. So, after pushing some changes to configuration files, no POST is emmited and no restart is done.
Everything works like it should, right?



But I see that every service query config server periodically:



c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://localhost:8888


That triggers config server with:



o.s.c.c.s.e.NativeEnvironmentRepository : Adding property source: file:/var/folders/mf/_109yxmd5xd2v4kp13h85rh80000gn/T/config-repo-3967856835189569906/application.yaml


but what is most important, when I commit some changes to config files, it reports:



.c.s.e.MultipleJGitEnvironmentRepository : Fetched for remote develop and found 1 updates


  1. Why config server doesn't restart services, whose configuration has changed?

  2. Is it possible to enable such behavior, for example, via some property, or by adding some listener class for such event?









share|improve this question




























    0















    There's an example that after configuring callback in Github to call Spring Cloud Config server, it emits event to RabbitMQ which is received in all microservices and then they restart their configuration. I've managed to do that and I can simulate whole flow by sending :



    curl -u -v -X POST "http://localhost:8888/monitor" -H "Content-Type: application/json" -H "X-Event-Key: repo:push" -H "X-Hook-UUID: webhook-uuid" -d '"push": "changes": [] '


    All microservices restarts ok after it.



    However, because of network configuration, I cannot define webhook. So, after pushing some changes to configuration files, no POST is emmited and no restart is done.
    Everything works like it should, right?



    But I see that every service query config server periodically:



    c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://localhost:8888


    That triggers config server with:



    o.s.c.c.s.e.NativeEnvironmentRepository : Adding property source: file:/var/folders/mf/_109yxmd5xd2v4kp13h85rh80000gn/T/config-repo-3967856835189569906/application.yaml


    but what is most important, when I commit some changes to config files, it reports:



    .c.s.e.MultipleJGitEnvironmentRepository : Fetched for remote develop and found 1 updates


    1. Why config server doesn't restart services, whose configuration has changed?

    2. Is it possible to enable such behavior, for example, via some property, or by adding some listener class for such event?









    share|improve this question
























      0












      0








      0








      There's an example that after configuring callback in Github to call Spring Cloud Config server, it emits event to RabbitMQ which is received in all microservices and then they restart their configuration. I've managed to do that and I can simulate whole flow by sending :



      curl -u -v -X POST "http://localhost:8888/monitor" -H "Content-Type: application/json" -H "X-Event-Key: repo:push" -H "X-Hook-UUID: webhook-uuid" -d '"push": "changes": [] '


      All microservices restarts ok after it.



      However, because of network configuration, I cannot define webhook. So, after pushing some changes to configuration files, no POST is emmited and no restart is done.
      Everything works like it should, right?



      But I see that every service query config server periodically:



      c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://localhost:8888


      That triggers config server with:



      o.s.c.c.s.e.NativeEnvironmentRepository : Adding property source: file:/var/folders/mf/_109yxmd5xd2v4kp13h85rh80000gn/T/config-repo-3967856835189569906/application.yaml


      but what is most important, when I commit some changes to config files, it reports:



      .c.s.e.MultipleJGitEnvironmentRepository : Fetched for remote develop and found 1 updates


      1. Why config server doesn't restart services, whose configuration has changed?

      2. Is it possible to enable such behavior, for example, via some property, or by adding some listener class for such event?









      share|improve this question














      There's an example that after configuring callback in Github to call Spring Cloud Config server, it emits event to RabbitMQ which is received in all microservices and then they restart their configuration. I've managed to do that and I can simulate whole flow by sending :



      curl -u -v -X POST "http://localhost:8888/monitor" -H "Content-Type: application/json" -H "X-Event-Key: repo:push" -H "X-Hook-UUID: webhook-uuid" -d '"push": "changes": [] '


      All microservices restarts ok after it.



      However, because of network configuration, I cannot define webhook. So, after pushing some changes to configuration files, no POST is emmited and no restart is done.
      Everything works like it should, right?



      But I see that every service query config server periodically:



      c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://localhost:8888


      That triggers config server with:



      o.s.c.c.s.e.NativeEnvironmentRepository : Adding property source: file:/var/folders/mf/_109yxmd5xd2v4kp13h85rh80000gn/T/config-repo-3967856835189569906/application.yaml


      but what is most important, when I commit some changes to config files, it reports:



      .c.s.e.MultipleJGitEnvironmentRepository : Fetched for remote develop and found 1 updates


      1. Why config server doesn't restart services, whose configuration has changed?

      2. Is it possible to enable such behavior, for example, via some property, or by adding some listener class for such event?






      spring-cloud spring-cloud-config spring-cloud-bus github-webhook






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 22 at 7:48









      MarxMarx

      336313




      336313






















          0






          active

          oldest

          votes












          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55295042%2fspring-cloud-config-github-refresh%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55295042%2fspring-cloud-config-github-refresh%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript