Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 53868200D60 for ; Fri, 1 Dec 2017 19:28:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 52400160C06; Fri, 1 Dec 2017 18:28:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 98F5E160BF4 for ; Fri, 1 Dec 2017 19:28:04 +0100 (CET) Received: (qmail 51502 invoked by uid 500); 1 Dec 2017 18:28:03 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 51491 invoked by uid 99); 1 Dec 2017 18:28:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Dec 2017 18:28:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id DE893C2D7F for ; Fri, 1 Dec 2017 18:28:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.011 X-Spam-Level: X-Spam-Status: No, score=-99.011 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KB_WAM_FROM_NAME_SINGLEWORD=0.2, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id cSzakR972jdx for ; Fri, 1 Dec 2017 18:28:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 753075F24C for ; Fri, 1 Dec 2017 18:28:01 +0000 (UTC) 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 91C3FE099C for ; Fri, 1 Dec 2017 18:28: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 510C0255BF for ; Fri, 1 Dec 2017 18:28:00 +0000 (UTC) Date: Fri, 1 Dec 2017 18:28:00 +0000 (UTC) From: "Keith Turner (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (ACCUMULO-4743) Use tserver prefix for Cache config instead of general custom MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 01 Dec 2017 18:28:05 -0000 [ https://issues.apache.org/jira/browse/ACCUMULO-4743?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Keith Turner reassigned ACCUMULO-4743: -------------------------------------- Assignee: Jared R > Use tserver prefix for Cache config instead of general custom > ------------------------------------------------------------- > > Key: ACCUMULO-4743 > URL: https://issues.apache.org/jira/browse/ACCUMULO-4743 > Project: Accumulo > Issue Type: Bug > Reporter: Keith Turner > Assignee: Jared R > Labels: pull-request-available > Fix For: 2.0.0 > > Time Spent: 2h 10m > Remaining Estimate: 0h > > In ACCUMULO-4463 caching implementations were made configurable. At the time config for a cache was placed under the {{general.custom.cache}} prefix. The idea was that a cache impl would be passed in a AccumuloConfiguration object and it could grab whatever it wanted from {{general.custom.cache}}. > In ACCUMULO-4644 the cache API was changed to not use AccumuloConfiguration because that type is not in the public API. This removed the reason for using general.custom in the first place. > When trying to implement an external cache I discovered that I can not set general.custom props in zookeeper. However the cache class is a tserver prefixed property can can be set in zookeeper. For the [accumulo-ohc|https://github.com/keith-turner/accumulo-ohc] I wanted to do the following in the shell but could not set the general props. > {noformat} > config -s general.custom.cache.ohc.data.on-heap.maximumWeight=1000000000 > config -s general.custom.cache.ohc.data.off-heap.capacity=10000000000 > config -s tserver.cache.manager.class=accumulo.ohc.OhcCacheManager > {noformat} > I think it would be nice to change cache config prefix from {{general.custom.cache..}} to {{tserver.cache.config..}}. Doing this would enable setting up a cache in the shell like the following. > {noformat} > config -s tserver.cache.config.data.on-heap.maximumWeight=1000000000 > config -s tserver.cache.config.data.off-heap.capacity=10000000000 > config -s tserver.cache.manager.class=accumulo.ohc.OhcCacheManager > {noformat} > Part of the code for this prefix is at [BlockCacheManager.java line 33|https://github.com/apache/accumulo/blob/d877a2df2943e48d70d99b96616844d0dff9a501/core/src/main/java/org/apache/accumulo/core/file/blockfile/cache/BlockCacheManager.java#L33] -- This message was sent by Atlassian JIRA (v6.4.14#64029)