Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D2344D1E6 for ; Wed, 22 Aug 2012 18:28:52 +0000 (UTC) Received: (qmail 32487 invoked by uid 500); 22 Aug 2012 18:28:51 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 32459 invoked by uid 500); 22 Aug 2012 18:28:51 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 32451 invoked by uid 99); 22 Aug 2012 18:28:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Aug 2012 18:28:51 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dave@muse.net.nz designates 209.85.160.52 as permitted sender) Received: from [209.85.160.52] (HELO mail-pb0-f52.google.com) (209.85.160.52) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Aug 2012 18:28:44 +0000 Received: by pbcxa7 with SMTP id xa7so1822495pbc.11 for ; Wed, 22 Aug 2012 11:28:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=muse.net.nz; s=google; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=Ub0bqge+yRPWl4eTr2e9zZsfFcTn23ug2q6Sg3jLKvg=; b=JCwAT+va1JPWcLzcNp6wK8Oxly6ZKnlkILZ4fcdHEsgyrJP8XpFOQC0Z2c6aeRH6ID 5nZRrWiTL2wHIzDaJo780IMY/Quk6G26zl/PdVCkTaZtmOu9LzacroWkNcS6fU4QU9w6 giXjTyYd01wmZApRPsO1pkrGb4uwZhIM0b+IM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:content-type:x-gm-message-state; bh=Ub0bqge+yRPWl4eTr2e9zZsfFcTn23ug2q6Sg3jLKvg=; b=hXp4ySDFre6lFwW7NaE7zxveDJK3Iymazbl5Q9j04dz6eb9zyq3LDmxAiYnXprVa8l M9Y58/R6REIM8y7uScd3kDTqpK8fBp/LR/WQEljvcWrxGtnSLMH7BitvVAKOWZNiSpuR xQcwFjEU5TUQt7T6O0OZSjwm7SH83IeUGZR2AWrybYmyJAWkKXl7MuaG+PW/6UHKzhJv r4BJ9Ce0UZ61DUAFXhl1JrxmPKvFkpYRVGO/+5vpv5oZbHLEFuW6Qg/vS089XTctAK8t eEHwxWY4v2z/fs9kFhxICSsLHnU0fnYPkASLzvIxnNLO7v9f6MlmaatwfM/Wg9t+u4cm LMwA== MIME-Version: 1.0 Received: by 10.68.217.69 with SMTP id ow5mr54581599pbc.35.1345660101812; Wed, 22 Aug 2012 11:28:21 -0700 (PDT) Received: by 10.68.223.6 with HTTP; Wed, 22 Aug 2012 11:28:21 -0700 (PDT) X-Originating-IP: [84.112.19.176] In-Reply-To: References: Date: Wed, 22 Aug 2012 20:28:21 +0200 Message-ID: Subject: Re: Changing the system clock underneath a multi-master setup From: Dave Cottlehuber To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQnuw7qEynurREqrV978hUD0yMizwDSz97ngNy2K/bPJbiEKjt7PHTd2tB5uGI5f5LUL4Ocn On 22 August 2012 20:13, Michael Parker wrote: > I have two servers running CouchDB in a multi-master setup, where each > is performing a continuous pull replication on the other. I stupidly > assumed that both servers had their system time set appropriately with > ntpd, but I was wrong, and they're both off by a minute or two. Will > running ntpd on each server affect CouchDB or the replication at all? > Should I play it safe and stop replication, down CouchDB, change the > clock, and then up CouchDB and start replication again? I think you can change the clock quite safely. The erlang runtime will likely emit some warnings, but with a delta < 5 minutes this should not cause it to restart[1]. With this short a time difference, I'd not get ntpd to forcefully update, but let it drift onto the corrected time. This will no doubt be platform dependent. A+ Dave [1]:http://www.erlang.org/doc/man/heart.html