You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@zookeeper.apache.org by GitBox <gi...@apache.org> on 2020/10/20 02:28:39 UTC

[GitHub] [zookeeper] chingchan1996 commented on a change in pull request #1444: ZOOKEEPER-3922: The introduction of the oracle, a failure detector.

chingchan1996 commented on a change in pull request #1444:
URL: https://github.com/apache/zookeeper/pull/1444#discussion_r508170716



##########
File path: zookeeper-docs/src/main/resources/markdown/zookeeperOracleQuorums.md
##########
@@ -0,0 +1,128 @@
+<!--
+Copyright 2002-2004 The Apache Software Foundation
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+//-->
+
+# Introduction to Oracle Quorum
+
+The introduction to Oracle Quorum increases the availability of a cluster of 2 ZooKeeper instances with a failure detector
+ as known as the Oracle. The Oracle is designed to grant the permission to the instance which is the only remaining instance
+in a 2-node configuration when the other instance is identified as faulty by the fail detector, the Oracle.
+
+## The implementation of the Oracle

Review comment:
       In the previous deployed context, the oracle is a text file which contains either 0 or 1. 0 means the other instance is not faulty, and vice versa. Due to the heterogeneous deployed contexts, the ways of implementation of an Oracle are not defined. An example could be a hardware device which could distinguishes whether the machine is power on or not. Based the information, the device could update the file on the instance to 0 or 1. Another example could be another process within the same machine as the zookeeper instance constantly check the other instance is alive or not, for instance, by pinging the other node , and bases the information to update the oracle file. In the case for hard to find two dedicated hardware, we could use docker to stimulate a two-node systems (https://github.com/chingchan1996/Docker_ZooKeeper), and manually cause failures and update the oracle files. 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org