Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12418

camel-consul - High CPU load on events watching

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.21.0
    • Fix Version/s: 2.21.1, 2.22.0
    • Component/s: camel-consul
    • Labels:
      None
    • Estimated Complexity:
      Novice

      Description

      Camel-Consul library expects EventClient to block requests and passes number of seconds to block request to EventClient.
      However Event HTTP Endpoint does not support Blocking Queries and EventClient ignores passed queryOptions.
      This results in high CPU usage because ConsulEventConsumer constantly makes requests to Consul without any delay or blocking.
      Maybe some Thread.sleep could be added to EventWatcher.watch(EventClient client) before client.listEvents call or any other fix to introduce delay between listEvents requests.

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              Viachaslau.Tsikhanovich Viachaslau Tsikhanovich
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: