curator-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jordan Zimmerman <jor...@jordanzimmerman.com>
Subject Re: curator-x-discovery-server not purging static services after specified instanceRefreshMs
Date Fri, 17 May 2013 20:27:44 GMT
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