From dev-return-80060-archive-asf-public=cust-asf.ponee.io@zookeeper.apache.org Wed Apr 10 13:59:02 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 20086180626 for ; Wed, 10 Apr 2019 15:59:02 +0200 (CEST) Received: (qmail 65697 invoked by uid 500); 10 Apr 2019 13:59:01 -0000 Mailing-List: contact dev-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zookeeper.apache.org Delivered-To: mailing list dev@zookeeper.apache.org Received: (qmail 65686 invoked by uid 99); 10 Apr 2019 13:59:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Apr 2019 13:59:01 +0000 Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 86F28E0782 for ; Wed, 10 Apr 2019 13:59:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 2EF6724422 for ; Wed, 10 Apr 2019 13:59:00 +0000 (UTC) Date: Wed, 10 Apr 2019 13:59:00 +0000 (UTC) From: "David Mollitor (JIRA)" To: dev@zookeeper.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ZOOKEEPER-3352) Use LevelDB For Backend MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ZOOKEEPER-3352?page=3Dcom.atlas= sian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D= 16814466#comment-16814466 ]=20 David Mollitor commented on ZOOKEEPER-3352: ------------------------------------------- Ya, my drive here for using a third-party library on this is that ZK should= not be writing its own data store.=C2=A0 ZK would benefit from a lot of th= e work that these specialized projects are doing. =C2=A0 As a start, I was thinking that the ZK Transaction Log could be replaced wi= th Level/RocksDB. * Compression: faster writes * TTL for each record: TXN log entries expire automatically =C2=A0 Since TXN logs are not read that often (as I understand it), the 'read' buf= fer for the DB would be disabled. =C2=A0 However, as an entire database system for ZK, I think these key/value store= s are probably a good fit for ZK since they keep everything sorted. For exa= mple, for the following znodes, if the storage key is the path, * /service/lock-001 * /service/lock-002 * /service/lock-003 To perform an 'ls' on the {{/service}} ZNode would only require a quick sca= n =C2=A0 > Use LevelDB For Backend > ----------------------- > > Key: ZOOKEEPER-3352 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3352 > Project: ZooKeeper > Issue Type: New Feature > Components: server > Reporter: David Mollitor > Assignee: David Mollitor > Priority: Critical > Fix For: 4.0.0 > > > Use LevelDB for managing data stored in ZK (transaction logs and snapshot= s). > https://stackoverflow.com/questions/6779669/does-leveldb-support-java -- This message was sent by Atlassian JIRA (v7.6.3#76005)