[reSIProcate] Cleaning up in memory registration database
Scott Godin
slgodin at icescape.com
Tue Nov 4 15:32:34 CST 2008
Expired contacts are removed via the
RegistrationPersistenceManager::removeContact interface. If you are using
the ServerRegistration classes, then DUM only cleans up expired registered
contacts when a new registration is formed for a particular aor (see code
in ServerRegistration::accept). If you are using repro then the
registrations are also cleaned out of the in memory database when:
1. Someone routes a message to the AOR, and an expired contact is
detected: LocationServer::process
2. Someone views the registrations web page, and an expired contact is
detected: WebAdmin::buildRegistrationsSubPage
To get cleanup to happen in a more timely fashion, it would be possible to
build logic that would:
1. Fire a timer when a contact is supposed to expire, and clean it up
immediately.
2. Fire a single timer periodically that would remove all expired
contacts since the last run.
Scott
From: resiprocate-devel-bounces at resiprocate.org
[mailto:resiprocate-devel-bounces at resiprocate.org] On Behalf Of Archana
Sent: November 4, 2008 1:06 AM
To: resiprocate-devel at resiprocate.org
Subject: [reSIProcate] Cleaning up in memory registration database
Hi All,
I am using resiprocate 1.3 release.
The entry is made in the Inmemory RegistrationDatabase while sending 200 OK
to REGISTER.
And this entry is removed while sending 200 OK to DEREGISTER.
But for the entries for which we don't get DEREGISTER, entry will still be
there is the map.
I see findNotExpired() is used to find if the entry is expired for
particular AOR. But don't see any function which will go thr' all the
entries and removes the expired ones.
Does the DUM thread takes resposibility of cleaning up all expired entries
from the map?
If no can anybody suggest me how to achieve this (consider map size is very
huge around 50K)?
Thanks,
Archana
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20081104/95f65e0f/attachment.htm>
More information about the resiprocate-devel
mailing list