Return-Path: X-Original-To: apmail-karaf-commits-archive@minotaur.apache.org Delivered-To: apmail-karaf-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3A980178DE for ; Tue, 27 Jan 2015 14:51:59 +0000 (UTC) Received: (qmail 16462 invoked by uid 500); 27 Jan 2015 14:51:59 -0000 Delivered-To: apmail-karaf-commits-archive@karaf.apache.org Received: (qmail 16430 invoked by uid 500); 27 Jan 2015 14:51:59 -0000 Mailing-List: contact commits-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list commits@karaf.apache.org Received: (qmail 16421 invoked by uid 99); 27 Jan 2015 14:51:59 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Jan 2015 14:51:59 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id D0C73DFDE9; Tue, 27 Jan 2015 14:51:58 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: jbonofre@apache.org To: commits@karaf.apache.org Date: Tue, 27 Jan 2015 14:51:59 -0000 Message-Id: In-Reply-To: <1737fd4b83c74f9bbab13c5263b1dc11@git.apache.org> References: <1737fd4b83c74f9bbab13c5263b1dc11@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/2] karaf git commit: [KARAF-3439] Update failover lock delay documentation [KARAF-3439] Update failover lock delay documentation Project: http://git-wip-us.apache.org/repos/asf/karaf/repo Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/f49a4a08 Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/f49a4a08 Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/f49a4a08 Branch: refs/heads/karaf-3.0.x Commit: f49a4a087b1aecf2b762f506fafaaf8b4ab7e5ae Parents: aa788d1 Author: Jean-Baptiste Onofré Authored: Tue Jan 27 15:51:40 2015 +0100 Committer: Jean-Baptiste Onofré Committed: Tue Jan 27 15:51:40 2015 +0100 ---------------------------------------------------------------------- manual/src/main/webapp/users-guide/failover.conf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/karaf/blob/f49a4a08/manual/src/main/webapp/users-guide/failover.conf ---------------------------------------------------------------------- diff --git a/manual/src/main/webapp/users-guide/failover.conf b/manual/src/main/webapp/users-guide/failover.conf index b35c636..3ad7d1b 100644 --- a/manual/src/main/webapp/users-guide/failover.conf +++ b/manual/src/main/webapp/users-guide/failover.conf @@ -34,13 +34,13 @@ The configuration of the lock system has to be defined in the {{etc/system.prope karaf.lock=true karaf.lock.class=org.apache.karaf.main.SimpleFileLock karaf.lock.dir= -karaf.lock.delay=10 +karaf.lock.delay=10000 {code} * {{karaf.lock}} property enables the the HA/failover mechanism * {{karaf.lock.class}} property contains the class name providing the lock implementation. Here, we use the filesystem lock. * {{karaf.lock.dir}} property contains the location where the lock will be written. All instances have to share the same lock. -* {{karaf.lock.delay}} property is the interval period (in seconds) to check if the lock has been released or not. +* {{karaf.lock.delay}} property is the interval period (in milliseconds) to check if the lock has been released or not. h3. Database lock @@ -61,7 +61,7 @@ The database lock uses JDBC (Java DataBase Connectivity). To use database lockin karaf.lock=true karaf.lock.class=org.apache.karaf.main.DefaultJDBCLock karaf.lock.level=50 -karaf.lock.delay=10 +karaf.lock.delay=10000 karaf.lock.jdbc.url=jdbc:derby://dbserver:1527/sample karaf.lock.jdbc.driver=org.apache.derby.jdbc.ClientDriver karaf.lock.jdbc.user=user @@ -75,7 +75,7 @@ karaf.lock.jdbc.timeout=30 * {{karaf.lock.class}} property contains the class name providing the lock implementation. The {{org.apache.karaf.main.DefaultJDBCLock}} is the most generic database lock system implementation. Apache Karaf supports lock system for specific databases (see later for details). * {{karaf.lock.level}} property is the container-level locking (see later for details). -* {{karaf.lock.delay}} property is the interval period (in seconds) to check if the lock has been released or not. +* {{karaf.lock.delay}} property is the interval period (in milliseconds) to check if the lock has been released or not. * {{karaf.lock.jdbc.url}} property contains the JDBC URL to the database (derby in this example). * {{karaf.lock.jdbc.driver}} property contains the class name of the JDBC driver to use (derby in this example). * {{karaf.lock.jdbc.user}} property contains the username to use to connect to the database. @@ -180,7 +180,7 @@ Apache Karaf supports Microsoft SQLServer database for locking. The lock impleme karaf.lock=true karaf.lock.class=org.apache.karaf.main.lock.SQLServerJDBCLock karaf.lock.level=50 -karaf.lock.delay=10 +karaf.lock.delay=10000 karaf.lock.jdbc.url=jdbc:jtds:sqlserver://127.0.0.1;databaseName=sample karaf.lock.jdbc.driver=net.sourceforge.jtds.jdbc.Driver karaf.lock.jdbc.user=user