Return-Path: X-Original-To: apmail-curator-user-archive@minotaur.apache.org Delivered-To: apmail-curator-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 67D2FD5B6 for ; Fri, 17 May 2013 20:28:32 +0000 (UTC) Received: (qmail 49547 invoked by uid 500); 17 May 2013 20:28:32 -0000 Delivered-To: apmail-curator-user-archive@curator.apache.org Received: (qmail 49503 invoked by uid 500); 17 May 2013 20:28:32 -0000 Mailing-List: contact user-help@curator.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@curator.incubator.apache.org Delivered-To: mailing list user@curator.incubator.apache.org Received: (qmail 49495 invoked by uid 99); 17 May 2013 20:28:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 May 2013 20:28:32 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [209.85.160.45] (HELO mail-pb0-f45.google.com) (209.85.160.45) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 May 2013 20:28:27 +0000 Received: by mail-pb0-f45.google.com with SMTP id mc17so225441pbc.18 for ; Fri, 17 May 2013 13:27:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=eqaxoLm9BnImkJRRnSoWDfKbtVfYrxzyTVyI02ctdn0=; b=dkHjIrn6eu3U8Mvlak6W2wPXQMAl931sTWnxxzxf7TMoHmc/9/nXQFqhiwy+IED3MY u6U5QB/P5BN95PqfPnLU1g+xpkpRJcCQSmqodhr8JfnECM/RN1VcOB8HC0KZfKbqNDu5 goJFFjnSVu9fy9TYyXBTs+L/JrrDJ9Qn18QVPL8z47NKr3SeDr0JOCEInk6dkORLoLcT 4V2OLDGn9uL4I++kowCXQvPxcZVp9IK6VbOcFZesQSubVoktBn8MkmWYC57UJbDe3BFh o5/Us+IS6Hqf65I30ZFsblt7BNxEXNzSfhDvG/vFssGKaMDjKydl+XQPVnCfL9Ti2R8x o4fA== X-Received: by 10.66.252.4 with SMTP id zo4mr51341701pac.100.1368822467037; Fri, 17 May 2013 13:27:47 -0700 (PDT) Received: from lgmac-nprasad-2.corp.netflix.com (dc1-corp.netflix.com. [69.53.237.126]) by mx.google.com with ESMTPSA id 10sm12443716pbr.45.2013.05.17.13.27.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 May 2013 13:27:45 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: curator-x-discovery-server not purging static services after specified instanceRefreshMs From: Jordan Zimmerman In-Reply-To: Date: Fri, 17 May 2013 13:27:44 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <47DC8D23-BD18-4318-AACA-A98E67B46E6F@jordanzimmerman.com> References: To: user@curator.incubator.apache.org X-Mailer: Apple Mail (2.1503) X-Gm-Message-State: ALoCoQkUyD0uNERR5IvEb7RnU1UbEplu5Z5Z5pWeliy9LuLLfbEPOrjAsbdHwiqp219/nb0m6cYe X-Virus-Checked: Checked by ClamAV on apache.org Sorry it's taken so long to reply on this=85 Have you allocated and started a InstanceCleanup instance? -Jordan On May 9, 2013, at 8:21 AM, Rob Righter wrote: > Hello, >=20 > I am using Curator's curator-x-discovery-server. It is allowing me to > putService, getAll and removeService via the REST api and that all > appears to be working correctly. However, when I call putService with > a serviceType of "STATIC", the service is not being automatically > purged from the getAll list after the specified InstanceRefreshMs has > passed. I had assumed from the documentation ( > = https://github.com/Netflix/curator/tree/master/curator-x-discovery-server > ) that a STATIC service would be removed from all lists after that > InstanceRefreshMs (specified in the DiscoveryContext) expires. >=20 > If it is helpful, the Json associated with my service is: >=20 > { > "name": "analytics", > "id": "ca2fff8e-d756-480c-b59e-8297ff88624b", > "address": "10.20.30.40", > "port": 1234, > "payload": { > "datacenter": "dallas", > "role": "master" > }, > "registrationTimeUTC": 1368105287000, > "serviceType": "STATIC" > } >=20 >=20 > My questions are: >=20 > (1) Is my understanding of the "STATIC" serviceType correct, or am I > misreading the documentation? >=20 > (2) If my understanding is correct, is this a known issue, and can > anybody reproduce this behavior? >=20 > Thanks, > Rob