I've read through the documentation for the HTTP API and cannot figure out how to auto-reap stale service/session/kv entries after a certain window of time has elapsed.
The primary justification for needing TTLs is one of garbage collection of the keyspace (for all of Service/Session/KV).
One such place this quickly arises is when trying to use Consul for service discovery in a Mesos cluster where an instance of a service floats from host to host each time it restarts. Since consul seems to require explicit de-registration of Services this leads to cluttering the replicated database with old service instances that are probably never coming back. Similar problems arise when using KV/Sessions for leader-election according to the published Guide.
With ZK I would use an ephemeral node for announcement (which self-cleans on crash/socket-close/hang). With etcd I would use a TTL on a key that the service would touch.
Is there a trick to achieving this with Consul?