Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D615710DD6 for ; Thu, 1 Aug 2013 19:01:59 +0000 (UTC) Received: (qmail 45003 invoked by uid 500); 1 Aug 2013 19:01:59 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 44420 invoked by uid 500); 1 Aug 2013 19:01:54 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 44222 invoked by uid 99); 1 Aug 2013 19:01:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Aug 2013 19:01:51 +0000 Date: Thu, 1 Aug 2013 19:01:51 +0000 (UTC) From: "Preben Asmussen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-4876) Add support for a "back-off multiplier" capability to the ScheduledPollConsumer MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-4876?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13726751#comment-13726751 ] Preben Asmussen commented on CAMEL-4876: ---------------------------------------- [~davsclaus] Another way this could be use full -> If repeated errors occur, the poll could use the backoffMultiplier feature to auto delay the next poll. We could introduce options to control this e.g. autoBackOffOnError=true/false, numberOfErrorsBeforeBackoff in combination with the other new backOff options. When combining this with consumer.bridgeErrorHandler you would have a nice way for consumer endpoints to deal with failing infrastructure. I would even go so far to say that autoBackOff should be enabled by default on 3.0 > Add support for a "back-off multiplier" capability to the ScheduledPollConsumer > ------------------------------------------------------------------------------- > > Key: CAMEL-4876 > URL: https://issues.apache.org/jira/browse/CAMEL-4876 > Project: Camel > Issue Type: New Feature > Reporter: Ashwin Karpe > Fix For: 2.12.0 > > > Usually files or tables are only updated once a day or even once a week in a batch like fashion. When this happens its of course important to process as fast as possible (using the default 500 ms delay), but most of the time when there is no activity, polling every 500 ms. is not necessary and takes system resources when running many polling routes on the same box. > I was thinking that the ScheduledPollConsumer could be more dynamic by introducing a new option eg. backoffMultiplier, that resets the scheduler to maxDelay if a poll results in no exchange (maybe after x polls with no results). > The same goes if a poll results in an exchange, and the delay currently is at backoffMultiplier the scheduler is reset to the original delay thereby polling more agresive again. > Original Camel User Forum request : http://camel.465427.n5.nabble.com/DISCUSS-Dynamic-ScheduledPollConsumer-td5129231.html -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira