Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F07351017E for ; Sat, 9 Nov 2013 14:20:57 +0000 (UTC) Received: (qmail 14661 invoked by uid 500); 9 Nov 2013 14:20:56 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 14420 invoked by uid 500); 9 Nov 2013 14:20:53 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 14412 invoked by uid 99); 9 Nov 2013 14:20:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Nov 2013 14:20: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 daan.hoogland@gmail.com designates 209.85.223.175 as permitted sender) Received: from [209.85.223.175] (HELO mail-ie0-f175.google.com) (209.85.223.175) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Nov 2013 14:20:45 +0000 Received: by mail-ie0-f175.google.com with SMTP id u16so1902390iet.34 for ; Sat, 09 Nov 2013 06:20:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=Cd8Qo9iAiZ4CLSoAkvT3IforRcaH9OTkQouUc3EPNuU=; b=gGqRU12b/MEYfdp4HK3J9O3fGq5+S+lz0jESjXZi8NbmkeHP/Yzln8aywMy30lLzH+ +EnaONaaauQoscNyamSgvOdnVu1AhjBAcGPubtcsCx5LQtVL2YyCpXh2cw/WElLz0IHB pcVewk3p0xrsa5UtIInHDo7A/EjK+dNgDwMPv1qROfe2Uo8Y4iwMekUOnlU3NK2VIxrL EPIQXojofiy+2XY28gNgVP38jkRQbSr8qTGgi8a3H/faXY7HTVYL+fdN0KMNynwmu9zk WAoQkQjEO7Y1xdJgsdd3TKkNtGtqIWOzWpoXB5UkZOQgP9jH4VmQJXIxk/Ts3m7tLIN3 ahEA== X-Received: by 10.42.40.83 with SMTP id k19mr12172233ice.3.1384006824662; Sat, 09 Nov 2013 06:20:24 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.226.135 with HTTP; Sat, 9 Nov 2013 06:20:04 -0800 (PST) In-Reply-To: <2CC95E5C-671A-4270-873E-E913D975D4F4@gmail.com> References: <2CC95E5C-671A-4270-873E-E913D975D4F4@gmail.com> From: Daan Hoogland Date: Sat, 9 Nov 2013 15:20:04 +0100 Message-ID: Subject: Re: [DISCUSS] Domain/Account/User Sync Up Among Multiple Regions To: dev Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org H Guys, Can you shoot at my claims below, please? syncing being optional does not conflict with the code being in the core server. It seems that making a plugin for this is misuse of the plugin mechanism. To me it is more of an option to switch on or of with a global setting, having some extra configuration. Also, cloudstack being a slave to the real user db is a separate issue from cloudstack syncing its copy. As for answerring the cap; this is a security answer as well as an operational answer. thanks, Daan On Sat, Nov 9, 2013 at 1:53 AM, Chip Childers wrote: > We are already (generally) AP for most infra changes really. I'd use that model. Eventual consistency is better in this scenario. > >> On Nov 8, 2013, at 6:49 PM, Chiradeep Vittal wrote: >> >> I'd also like to highlight that it isn't a trivial problem. >> Let's say there's 3 regions: this means there are 3 copies of the user >> database that are geographically separated by network links that fail >> quite often (orders of magnitude more than intra-DC networks). >> >> Here we run into the consequences of the CAP theorem [1]. >> We can either have a CP or AP system: either approach makes some tradeoffs: >> 1. If we run a AP system, then the challenge is to resolve conflicting >> updates >> 2. If we run a CP system, then the challenge is to detect partitions >> reliably and disallow updates during partitions. >> >> [1] http://en.wikipedia.org/wiki/CAP_theorem >> >>> On 11/7/13 11:58 AM, "Chip Childers" wrote: >>> >>> On Thu, Nov 7, 2013 at 2:37 PM, Chiradeep Vittal >>> wrote: >>>> It may be an admin burden, but it has to be optional. There are other >>>> ways >>>> to achieve global sync (e.g., LDAP/AD/Oauth). >>>> A lot of service providers who run cloudstack have their own user >>>> database >>>> / portal. In their implementations the CloudStack database is not the >>>> master source of user records, but a slave. >>> >>> +1 to it being optional. >>