Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D440F200BB2 for ; Sat, 29 Oct 2016 17:14:32 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D2DAA160AF4; Sat, 29 Oct 2016 15:14:32 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 26C8A160AF1 for ; Sat, 29 Oct 2016 17:14:32 +0200 (CEST) Received: (qmail 90707 invoked by uid 500); 29 Oct 2016 15:14:31 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 90695 invoked by uid 99); 29 Oct 2016 15:14:30 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Oct 2016 15:14:30 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 5ABCFC0D1F for ; Sat, 29 Oct 2016 15:14:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.38 X-Spam-Level: ** X-Spam-Status: No, score=2.38 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 3j-4TypdNCT7 for ; Sat, 29 Oct 2016 15:14:27 +0000 (UTC) Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 87AC75F4ED for ; Sat, 29 Oct 2016 15:14:26 +0000 (UTC) Received: by mail-wm0-f42.google.com with SMTP id 140so117364395wmv.0 for ; Sat, 29 Oct 2016 08:14:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=KrnFsZyF7ewisW9cfPmvRo9Tt2Obe6bTLUKmzEpWcrg=; b=jF3uMFhG0LDz3i4dPLuSVX8dh4JfPcZzuhs7/WuZZrURrb3aJXJN3InqCEjk2TvInq pBBWX4xn0P/SuPJ3BjhD4a5uySL4TVaRZ/bvVXzZDBQsnuJ8srKHdLKxgUJBduKvo5se QSrob5qHiGUicL4PEWRxfdw2TEvWvr/sLboJIU9ddIzCjw8Ob8/Fp4l1Z3PvJdd+jiBK f7xp2LymsjMwfr9wE63WFDnRBt8uJuJJNaa0Sh6EeEQt373vGrXlg8w/VmCBwjPrs70b f8KLExDC9LM2IK/zzEochKg/v/SIygznIFM4ULxwX8KmecQifktjTFKvyOFL54WU/EHI Iwvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=KrnFsZyF7ewisW9cfPmvRo9Tt2Obe6bTLUKmzEpWcrg=; b=ZMpc7DSmpr2AtCDM4QNzVnZ/VVS8o4YX5uNe4+kGpFxCF75cL1OIIL/HRxWbUMATnN qc94Pse6V3wuxmxG08BA48ZtOtCAw1ZxpO1OSqXTK7G2HbX2TCjdn0bi3nATXEDU0LQk 9OB+XATk74ssfXjtkEa+vsPZ0e8uKGffmxJ1cT4UOvdUN+WBtdss1DecxYPkAvV1lupS 5QOvKQ15Bk0gCYJpXTE5zYkAh7ThKgOgA55R/G3t3PO+ulXqprKNpE+6gJRGOwQcrtwW 31PP7l0ASsnFPas3qrhuDa+fmYE5YQfl6KX4qUIhfb3YuQx8mcmY0iI8yVbIF+QdjArH /QfA== X-Gm-Message-State: ABUngvfIVoVfUtRjOW7smJ3E0vpPBErs4X2+YPwHvNJBSQOcQB03YABKi+Dk22+EnVsMrj5MvtjSSFvGsPImMQ== X-Received: by 10.28.38.2 with SMTP id m2mr3795353wmm.102.1477754056487; Sat, 29 Oct 2016 08:14:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.177.195 with HTTP; Sat, 29 Oct 2016 08:14:15 -0700 (PDT) In-Reply-To: <79493b82-4349-80e6-f65f-05729461e8d5@em.uni-frankfurt.de> References: <79493b82-4349-80e6-f65f-05729461e8d5@em.uni-frankfurt.de> From: Eddie Epstein Date: Sat, 29 Oct 2016 11:14:15 -0400 Message-ID: Subject: Re: Uima Ducc Service restart on timeout To: user@uima.apache.org Content-Type: multipart/alternative; boundary=94eb2c03fb969a36bd0540026d97 archived-at: Sat, 29 Oct 2016 15:14:33 -0000 --94eb2c03fb969a36bd0540026d97 Content-Type: text/plain; charset=UTF-8 Hi Wahed, One approach would be to configure the service itself to self-destruct if processing exceeds a processing threshold. UIMA-AS error configuration does support timeouts for remote delegates, but not for in-process delegates. So this would require starting a timer thread in the annotator that would call exit() if not reset at the end of the process() method. DUCC will automatically attempt to restart a service instance that exits. DUCC's pinger API allows a service pinger to detect that a service instance is not working correctly and tell DUCC to restart the instance. This approach has been confirmed to work for the current trunk code, after post v2.1.0 fixes. Eddie On Fri, Oct 28, 2016 at 10:07 AM, Wahed Hemati wrote: > Hi, > > is there a mechanism in Ducc to restart a service, if it is processing a > cas for to long? > > I have a annotator running as a primitive service on Ducc, which sometimes > gets to an endless loop. I call this service with a Uima AS Client. I can > set a timeout on the UIMA AS Client, this works. The client throws a > timeout after the specified period, which is nice. However the Service is > still processing the cas somehow? Can i tell Ducc to shutdown and restart a > service, if it is processing a cas takes more then a specified time period > (e.g 60 sec)? > > Thanks in advance > > -Wahed > > > --94eb2c03fb969a36bd0540026d97--