From user-return-8115-archive-asf-public=cust-asf.ponee.io@uima.apache.org Fri May 10 14:27:22 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 43BB318061A for ; Fri, 10 May 2019 16:27:22 +0200 (CEST) Received: (qmail 93622 invoked by uid 500); 10 May 2019 14:27:21 -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 93609 invoked by uid 99); 10 May 2019 14:27:20 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 May 2019 14:27:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 4463AC00CF for ; Fri, 10 May 2019 14:27:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.801 X-Spam-Level: ** X-Spam-Status: No, score=2.801 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_REPLY=1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-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 (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id ep5-5G-Veqw0 for ; Fri, 10 May 2019 14:27:18 +0000 (UTC) Received: from mail-qt1-f177.google.com (mail-qt1-f177.google.com [209.85.160.177]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id C7983611D2 for ; Fri, 10 May 2019 14:27:17 +0000 (UTC) Received: by mail-qt1-f177.google.com with SMTP id a17so5531901qth.3 for ; Fri, 10 May 2019 07:27:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=41n857JbXx/JhZcUs31jlkN7HDmQhus9yqQY8a3Hvzw=; b=JcFqoNLFgODfzwKYoor8n2I/pBxH1gWxirVcV0ZawueDzwoPi/4Utom4CEwNoq2mmF Edu0HSCwC7koK6K442stHMYzEmqGqGUuzR1w4KxUxvr14YzStmuNopxHbpDX2RKOxP+6 k8RP3PWLv3k9n9MhQtXcFcmmK18qRgRKc/0q/OFq9+Q50d8WoMEqO5YNhXcrPnIVPrTB u3bC1hufr0tSzuK4qeFdjadVFIdolb9NrVYyBxmUlu02ZbwfplS7cfISzuVS5r8hkx0J NjSHraYAnrKjrs49odxlvdtEFHKxbnxHbLK8s0vJ5fCXfRGEjB1yJHs2lFyYUHsffTlu YoVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=41n857JbXx/JhZcUs31jlkN7HDmQhus9yqQY8a3Hvzw=; b=te8moVUUpDxQywAxOpXyGbwRQ+BfGQIaStldzpHeeBN7rVzsPRl/HKHz3u2wdEyPn2 0AubzVfm2jhc/JtKhN1GtTsu+SIzWRwVDjZlon8mh+XxUbyDmk8m1+KxqFtjZxJUgARN 3XSSzZ3ymXZ8xmxA8NRAefI5n/eb1jbtZHM0bleeHpbLucbwj7iT81btA02z0qZBKYVu zW5ELbYIDylIsQ4NDDHq/Ep9j3xc7cDMmaC4fmkqVVTwwuY3ku2oHOsFUMI50ew0sHAn 60oaE1TUynorSeTK31vpVNcR/GHu9BEyZn3lXQazWbvpDRzNt8OP88pPGEALVw3Jdh+H DmbA== X-Gm-Message-State: APjAAAW0M1/wRW8sEi6vUnfXqzvofKYpuXC9aXS58HMmYWTcQWnYzofj cYG08U4GI+MWh/c+0R+L3TTwd4xpU9bKfiWfoXDuWM0Q X-Google-Smtp-Source: APXvYqxf6uuWXkhFMcHoXO8vmz7kz4GOu2BlOquhYO9fon9zl4/TePUGYspwEtdceqenf/w4cP5ofSWZLS3YRSgct5c= X-Received: by 2002:a0c:b6d8:: with SMTP id h24mr9129991qve.178.1557498430811; Fri, 10 May 2019 07:27:10 -0700 (PDT) MIME-Version: 1.0 References: <1556646205.3971.0@smtp.web.de> <1557152005.20510.1@web.de> In-Reply-To: <1557152005.20510.1@web.de> From: Eddie Epstein Date: Fri, 10 May 2019 10:26:59 -0400 Message-ID: Subject: Re: Customizing Sample Pinger of Uima To: user@uima.apache.org Content-Type: multipart/alternative; boundary="000000000000b4f1900588895c02" --000000000000b4f1900588895c02 Content-Type: text/plain; charset="UTF-8" Hi Florian, The documentation for this is at http://uima.apache.org/d/uima-as-2.10.3/uima_async_scaleout.html#ugr.ref.async.api.usage_targetservice There is a test case at https://svn.apache.org/viewvc/uima/uima-as/trunk/uimaj-as-activemq/src/test/java/org/apache/uima/ee/test/TestUimaASExtended.java?revision=1826882&view=markup#l2238 Regards, Eddie On Mon, May 6, 2019 at 10:13 AM Florian wrote: > Hi, > > is there eventual an example or demo for sending request to individual > service instances? I couldn't find an example in the repository. > > Best regards, > Florian > > On Mi, Mai 1, 2019 at 12:13 AM, Eddie Epstein > wrote: > > Hi Florian, > > > > Interesting questions. First, yes the intended behavior is to leave 1 > > instance running. Services are either started by having > > autostart=true, or > > by a job or another service having a dependency on the service. > > Logically > > it could be possible to let a pinger stop all instances and have the > > service still be in some kind of "running" state so that the pinger > > would > > continue running and be able to restart instances when it detected a > > need; > > all that is needed is a bit of programming :) > > > > A hacky approach would be not to use autostart, rather to start > > service-A > > by using a dummy service-B with a dependency on A. When service A > > pinger > > wants to stop A, it could issue a command to stop B which would allow > > service A to be stopped. Restarting A would require an external > > program > > requesting B to be started again. > > > > For the second question, the answer is yes for UIMA-AS services. The > > latest > > version of UIMA-AS supports sending process requests to specific > > service > > instances. A pinger could send such requests, and when an instance > > fails to > > reply the pinger can direct that instance to be stopped and another > > instance started. The answer is also yes for custom services for > > which the > > pinger knows how to address each instance. > > > > Regards, > > Eddie > > > > On Tue, Apr 30, 2019 at 1:43 PM Florian > > wrote: > > > >> Hello everyone, > >> > >> I have two questions about the given sample pinger example of Uima. > >> > >> It is possible to set the minimal numbers of instances of a service > >> to > >> zero? If I set the min-variable to zero uima is always starting a > >> new > >> instance, when the last one is shutdown. Is this behavior intended > >> or > >> is there a way to prevent the start of a new instance, when there > >> is no > >> calls to the service? As we have some services that a rarely used, > >> we > >> would only like to start instances on demand. > >> > >> Secondly is there also a option to call specific instances of a > >> service > >> and restart them? We would like to do health checks for individual > >> instances and restart them if needed. > >> > >> Best Regards > >> > >> Florian > >> > >> > >> > >> > > --000000000000b4f1900588895c02--