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 D7B66200BC7 for ; Fri, 11 Nov 2016 04:06:47 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id CDEB2160B10; Fri, 11 Nov 2016 03:06:47 +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 46D2B160B01 for ; Fri, 11 Nov 2016 04:06:47 +0100 (CET) Received: (qmail 96481 invoked by uid 500); 11 Nov 2016 03:06:46 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Delivered-To: moderator for users@jackrabbit.apache.org Received: (qmail 73298 invoked by uid 99); 10 Nov 2016 17:06:31 -0000 X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.473 X-Spam-Level: *** X-Spam-Status: No, score=3.473 tagged_above=-999 required=6.31 tests=[FORGED_HOTMAIL_RCVD2=1.187, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Date: Thu, 10 Nov 2016 08:55:59 -0800 (PST) From: hsp To: users@jackrabbit.apache.org Message-ID: <1478796959869-4665414.post@n4.nabble.com> Subject: Use FileDataStore with NFS SAN (NAS) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Fri, 11 Nov 2016 03:06:48 -0000 Hi, We use persistence with DataStore using a path that maps to a remote NAS, using NFS. With the default configuration in org.apache.jackrabbit.core.data.FileDataStore it was causing too much delay to upload the files from server to the NAS. To workaround this we implemented a option in FileDataStore that uses java.nio.Channels.FileChannel and performs better than the default way, over a version 2.10.0. Would be better (less error prone for us) if this implementation could be part of the api build. The configuration in repository.xml would be added with a parameter in DataStore element: In our code, the parameter REMOTEPERSISTENCEBYNFS is hardcoded so far... Our environment server is with: linux SUSE SLES 11 sp3, kernel "3.0.101-0.15-default" 4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181440) (eager to upgrade to Java 8 and wildFLy10 as soon as possible, probably next year) JVM: 1.6.0_27 I would be glad if you can suggest ideas or better approach to solve this "neck" in the process to save a file. We are waiting for version 2.14 of jackrabbit, hoping not to have to generate a parallel version of it, ;-). The file is attached, sorry by not make only a diff file. Best Regards, Helio. FileDataStore.java -- View this message in context: http://jackrabbit.510166.n4.nabble.com/Use-FileDataStore-with-NFS-SAN-NAS-tp4665414.html Sent from the Jackrabbit - Users mailing list archive at Nabble.com.