curator-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Righter <rob.righ...@pardot.com>
Subject Re: curator-x-discovery-server not purging static services after specified instanceRefreshMs
Date Sat, 18 May 2013 00:20:32 GMT
Yes, I dug around the code and found that instanceCleanup object.
Works perfectly now. Thanks.

On Fri, May 17, 2013 at 4:27 PM, Jordan Zimmerman
<jordan@jordanzimmerman.com> wrote:
> Sorry it's taken so long to reply on this…
>
> Have you allocated and started a InstanceCleanup instance?
>
> -Jordan
>
> On May 9, 2013, at 8:21 AM, Rob Righter <rob.righter@pardot.com> wrote:
>
>> Hello,
>>
>> 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.
>>
>> If it is helpful, the Json associated with my service is:
>>
>> {
>>  "name": "analytics",
>>  "id": "ca2fff8e-d756-480c-b59e-8297ff88624b",
>>  "address": "10.20.30.40",
>>  "port": 1234,
>>  "payload": {
>>    "datacenter": "dallas",
>>    "role": "master"
>>  },
>>  "registrationTimeUTC": 1368105287000,
>>  "serviceType": "STATIC"
>> }
>>
>>
>> My questions are:
>>
>> (1) Is my understanding of the "STATIC" serviceType correct, or am I
>> misreading the documentation?
>>
>> (2) If my understanding is correct, is this a known issue, and can
>> anybody reproduce this behavior?
>>
>> Thanks,
>> Rob
>

Mime
View raw message