celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bjoern Petri (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CELIX-265) Discovery: perform poll cycle when url entry has been updated
Date Sun, 04 Oct 2015 19:18:26 GMT
Bjoern Petri created CELIX-265:
----------------------------------

             Summary: Discovery: perform poll cycle when url entry has been updated
                 Key: CELIX-265
                 URL: https://issues.apache.org/jira/browse/CELIX-265
             Project: Celix
          Issue Type: Improvement
            Reporter: Bjoern Petri
            Assignee: Bjoern Petri


Currently the discovery implementation uses a two step approach. First, there is the announcement
of a webserver url in etcd, shm or pre-configured. Second this url gets periodically polled
containing informations about the available webservers. 

Although having some advantages, this approach leads to either a busy thread when setting
the poll interval too low or a delay when setting the interval too high. 

For etcd and shm this could be improved by performing a poll when either receiving an "update"
(etcd) or unlocking the mutexes protecting the critical area (shm). 

    





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message