saintstack commented on a change in pull request #1164: HBASE-23331: 
Documentation for HBASE-18095
URL: https://github.com/apache/hbase/pull/1164#discussion_r378054145
 
 

 ##########
 File path: 
dev-support/design-docs/HBASE-18095-Zookeeper-less-client-connection-design.adoc
 ##########
 @@ -0,0 +1,112 @@
+////
+/**
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.
+ */
+////
+
+= HBASE-18095: Zookeeper-less client connection
+
+
+== Context
+Currently, Zookeeper (ZK) lies in the critical code path of connection init. 
To set up a connection to a given HBase cluster, client relies on the zookeeper 
quorum configured in the client hbase-site.xml and attempts to fetch the 
following information.
+
+* ClusterID
+* Active HMaster server name
+* Meta table region locations
+
+ZK is deemed the source of truth since other processes that maintain the 
cluster state persist the changes to this data into ZK. So it is an obvious 
place to look at for clients to fetch the latest cluster state.  However this 
comes with it’s own set of problems, some of them are below.
+
+* Timeouts and retry logic for ZK clients are managed separately from HBase 
configuration. This is more administration overhead for end users (example: 
multiple timeouts are to be configured for different types of RPCs. 
client->master, client->ZK etc.). This prevents HBase from having a single 
holistic timeout configuration that applies to any RPCs.
+* If there is any issue with ZK (like connection overload / timeouts), the 
entire HBase service appears frozen and there is little visibility into it.
+* Exposing zookeeper to all the clients can be risky since it can potentially 
be abused to DDOS.
+* Embedded ZK client is bundled with hbase client jar as a dependency (with 
it’s log spew :-]).
+
+== Goal
+
+We would like to remove this ZK dependency in the HBase client and instead 
have the clients query a preconfigured list of active and standby master 
host:port addresses. This brings all the client interactions with HBase under 
the same RPC framework that is holistically controlled by a set of hbase client 
configuration parameters. This also alleviates the pressure on ZK cluster which 
is critical from an operational standpoint as some core processes like 
replication, log splitting, master election etc. depend on it. The next section 
describes the kind of changes needed on both server and client side to support 
this behavior.
+
+== Proposed design
 
 Review comment:
   This is the refguide. Audience is operators. Also feature is 'done' so 
s/Proposed//

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to