You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by Apache Wiki <wi...@apache.org> on 2010/06/01 20:49:15 UTC

[Hadoop Wiki] Update of "ZooKeeper/GSoCFailureDetector" by AbmarBarros

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change notification.

The "ZooKeeper/GSoCFailureDetector" page has been changed by AbmarBarros.
http://wiki.apache.org/hadoop/ZooKeeper/GSoCFailureDetector?action=diff&rev1=4&rev2=5

--------------------------------------------------

  == Related JIRA ==
   * [[https://issues.apache.org/jira/browse/ZOOKEEPER-702|ZOOKEEPER-702]]
  
+ == Design decisions ==
+ 
+ ==== Should a failure detector instance (FD) run in a separate thread from the application? ====
+  * Drawbacks
+   * There will be another thread competing for CPU, and its inclusion should add some overhead.
+   * Concurrency issues must be handled.
+  * Benefits
+   * The FD will run in a more independent way, and it will notify the application of changes using listeners or callbacks. If it runs in the same thread, the application must signal the failure detector of changes, and also retrieve its status periodically. In other words, the application code will be coupled to FD code.
+