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

camel-consul - High CPU load on events watching

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.21.0
    • 2.21.1, 2.22.0
    • camel-consul
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: