[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ecf-dev] etcd-provider - service keys to register service for discovery

Hi Scott,

I've been playing with the etcd discovery provider lately with the aim of replacing zeroconf for our escape game platform. It's very nice and really, really (!) fast. In the escape game deployment scenario the system will be running longer than 20 minutes, which is why I set TTL to 0 so the services will not be removed automatically. (The default TTL is 1200 seconds.)

This raises another issue though: As long as an application is shutdown gracefully the service key will be removed from etcd. But if you kill an application this is not the case. Unfortunately this is exactly what happens with the Raspberry Pi gateways on site. The guys power up the pi at the morning and at the evening they just kill the power to shut it down. The effect is that the keys will stay in etcd for ever. Since the keys are generated randomly for every session this leads to duplicates of services in etcd.

I had a look at EtcdDiscoveryContainer and I was wondering if we could use a key to register the service with etcd that doesn't change between session? What do you think?

Christoph Keimel

Oskar-Messter-Str. 29 
85737 Ismaning

Tel.: 089-99 65 47-26 Fax.: 089-99 65 47-99
Web: www.emsw.de E-Mail: c.keimel@xxxxxxx

Geschäftsführer: Dipl.-Inf. (FH) Georg Engl
UST-Id-Nr.: DE 131 175 644, HRB 80271 München