perfsonar-user - Re: [pS-dev] TTL for LS records
Subject: perfSONAR User Q&A and Other Discussion
List archive
- From: Maciej Glowiak <>
- To: Vedrin Jeliazkov <>
- Cc: ,
- Subject: Re: [pS-dev] TTL for LS records
- Date: Wed, 30 Aug 2006 16:42:59 +0200
- Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA CXBIWXMAAEU1AABFNQF8gVf5AAAAB3RJTUUH1QYQDjo6uEWvwgAAAM5JREFUGNNN0LFqAkEUheGj KRZsfATrvENgYyH4APabxwgWGUUQC99BsNDCInUq7VImbbDZ0kayxBXMuN7jvTuKVh//mZlmQKZ1 EhQ8GAVgZECspEBdWQHRjR70KlgFKkoUaCw3ijSYQ4n5HfBK4a4jDcdDQPol/80Sr9BxZOOL4Fmr Jq8VBx7eopaSPvWGOm67fqol3j1q0XNs7Nk2cs6MU6gPNzf+ZGKQX4Ek8H6rAnFZnXB2vJxJcv8g C2P+WzL4tD+Txc4KydrIkh+eAdo01QbjQ84vAAAAAElFTkSuQmCC
- Organization: Poznan Supercomputing and Networking Center
Hi Vedrin,
Sorry for such a long time without answer, but I've just finished my holidays.
Vedrin Jeliazkov napisał(a):
Hi All,
After having played with the recent versions of LS, I started to wonder if the
concept of time-to-live (TTL) is implemented in the LS. I mean - what should
happen if a given service registers with LS and unexpectedly fails later on.
Should the LS remove the respective entry from its database after some TTL has
elapsed after the last successful service registration? I expected to see such
behaviour, but this doesn't happen in ISTF's LS (the record stays forever,
unless an explicit de-register request is sent). We're running the latest
snapshot (perfSONAR-LS-src-snapshot-20060720.tar.gz). I'm not sure if it is
supposed to be that way or we have some problem with our specific LS
installation/configuration.
Yes, a kind of TTL is supported. It's called LS Cleanup (in early deliverables it might have been called LS Sweeper).
Another related question is - what's the purpose of the
"component.ls_cleanup_loader.interval" - initially I presumed that this is in
fact the above mentioned TTL, but I'm not so sure anymore...
Yes. The interval is defined as a time when Lookup Information is valid.
So, if a service is being registered, the current timestamp is stored as a parameter.
Scheduler which runs every N seconds checks all timestamps and if any of them is exceeded, the Lookup Information is removed.
So, if you set interval to 5 minutes, all not-updated-since-5-minutes services will be removed while running LS Cleanup scheduler action.
Each service activity (register, update, keepalive) will change the timestamp.
The answers to the above questions are important for the development of
perfsonarUI's interactions with LS. We have to know if the client could rely
on the "freshness" of the records in LS or should check the registration
timestamps and apply a TTL mechanism itself.
Of course it depends on the service configuration. It may be difficult for client if an administrator sets TTL for "one month".
Now the client has an access to control data, but it may be disabled in the future - personally I think the remote client shouldn't have rights for browsing control data directly. So maybe the "control" interface for the lookup service will be required in the future, something like: "Hey, LS, tell me what is your Lookup Information TTL?"
Thanks for your comments and sorry for my laziness (I haven't thoroughly
checked if this info is available in some document).
That's no problem.
Maciej
--
--------------------------------------------------------------------
| Maciej Glowiak Network Research and Development ||
|
Poznan Supercomputing and Networking Center ||
| (+48 61) 858 2024 http://monstera.man.poznan.pl/ ||
====================================================================
- TTL for LS records, Vedrin Jeliazkov, 08/23/2006
- Re: [pS-dev] TTL for LS records, Maciej Glowiak, 08/30/2006
Archive powered by MHonArc 2.6.16.