Return-Path: X-Original-To: apmail-cloudstack-users-archive@www.apache.org Delivered-To: apmail-cloudstack-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B5F3E10CD7 for ; Tue, 5 Nov 2013 21:51:06 +0000 (UTC) Received: (qmail 20648 invoked by uid 500); 5 Nov 2013 21:51:05 -0000 Delivered-To: apmail-cloudstack-users-archive@cloudstack.apache.org Received: (qmail 20620 invoked by uid 500); 5 Nov 2013 21:51:05 -0000 Mailing-List: contact users-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cloudstack.apache.org Delivered-To: mailing list users@cloudstack.apache.org Received: (qmail 20612 invoked by uid 99); 5 Nov 2013 21:51:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Nov 2013 21:51:05 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [74.125.149.199] (HELO na3sys009aog108.obsmtp.com) (74.125.149.199) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Nov 2013 21:51:01 +0000 Received: from mail-wg0-f52.google.com ([74.125.82.52]) (using TLSv1) by na3sys009aob108.postini.com ([74.125.148.12]) with SMTP ID DSNKUnloL4ehcyxv8PUJH1EJ6hAFXgH8lHC5@postini.com; Tue, 05 Nov 2013 13:50:40 PST Received: by mail-wg0-f52.google.com with SMTP id k14so4157665wgh.7 for ; Tue, 05 Nov 2013 13:50:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=8d//jV+N000FljmLxJTrPjbtm92zienCR5LvEiRwtWk=; b=HmIf7duOlrHsPY995U/8kgPGLnxBRvR/AjuG4CEklkMk12jy+gw97cfnN3e+yIVM/f u3N1fQN/APgY2iV8011ZlAkoSJ1l86YaxgVLnknMlxAhsCFT7v8xRjxir5GqEFBo20Xj wpEtgmkdCyqyO1HkvklbIJKDHfKjLMZKP0zJ3qPPE/UPvp3r8u19BqKSth0FCDm855NN nQ06/E4BDk7Y/J5McasFec/N2rJVpAxG3lmRZj7ps5ZyNaAdtBRyQbGN+HIizKjHE0Qj ieww26Ih2Jl63GHGJuJsvBtAeFDi0WCBRiS/+RHDVmsjjPeC0d5uZGR/OOYanXOEPVkx bKDQ== X-Gm-Message-State: ALoCoQm5yT+cVSgXeTCAHERF70FbQRBgoW2VJC0MQgMANv/eJSNqRQI3mrHPIX5a+62rkDZnXlGQgmaY8z1EBrINe1nVPtxWQsflTOfLd0XXsNAkrsxb8xXZS41Nk2pvirsfxB7XHwXqlYD1pBAzvM3kiQ+bGZrrwc15A7QPvFwOVVZV0eD67Lo= X-Received: by 10.180.94.38 with SMTP id cz6mr18593357wib.27.1383688237947; Tue, 05 Nov 2013 13:50:37 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.180.94.38 with SMTP id cz6mr18593353wib.27.1383688237842; Tue, 05 Nov 2013 13:50:37 -0800 (PST) Received: by 10.216.124.199 with HTTP; Tue, 5 Nov 2013 13:50:37 -0800 (PST) In-Reply-To: <19ee0b1be4bc84fb867fcf9e7b73a858@mail.gmail.com> References: <19ee0b1be4bc84fb867fcf9e7b73a858@mail.gmail.com> Date: Tue, 5 Nov 2013 13:50:37 -0800 Message-ID: Subject: Re: Multi-master MySQL Setup From: Patrick Miller To: users@cloudstack.apache.org Content-Type: multipart/alternative; boundary=f46d04427108e5904804ea750545 X-Virus-Checked: Checked by ClamAV on apache.org --f46d04427108e5904804ea750545 Content-Type: text/plain; charset=ISO-8859-1 Take a look at the percona [1] implementation of mysql and there clustered version. Round robin reads and writes supported. 1] http://www.percona.com/ Patrick On Tue, Nov 5, 2013 at 9:55 AM, Adrian Lewis wrote: > Hi Marty/Nux!, > > Thanks for the feedback - sounds like multi-master is not a good thing > then! Load will likely be very small for at least the next 6 months but I > figured that it was one of those things that could be set easily now > (still setting up) that I might appreciate later. > > Based on both your responses, I think I'll just leave it well alone! Need > to get to grips with pacemaker/corosync anyway for other reasons so I'll > just try that with either DRBD replication or MySQL replication. > > Cheers, > > Adrian > > -----Original Message----- > From: Marty Sweet [mailto:msweet.dev@gmail.com] > Sent: 05 November 2013 17:23 > To: users@cloudstack.apache.org > Subject: Re: Multi-master MySQL Setup > > Others may have had more success with this but from experience of MySQL in > multi-master setups I would avoid this entirely. > > A common setup is using DRDB to provide a master/slave: > Management 1 (MySQL Master) w/ virtual IP Management 2 (MySQL Slave) > > HA IP Address (for agents/services requiring DB write) which is assigned > to the master (using Pacemaker). > > You can then send web management client to the HA IP Address as well. > > It may be worth considering if you need load balancing, depending on your > setup - what loads are you experiencing? > > Marty > > > > On Tue, Nov 5, 2013 at 5:13 PM, Adrian Lewis > wrote: > > > Hi All, > > > > > > > > Just wondering if anyone is using a MySQL multi-master configuration > > with auto_increment_offset (e.g.10) and auto_increment_increment (1 > > for server 1, 2 for server 2 etc)? Does it work? Does anyone know a > > reason why it doesn't or wouldn't work? Is there anything from an > > application point of view that could/would trip up CS if > > auto_increment values are set as more than 1? > > > > > > > > Not planning on deploying multimaster just yet but if I at least start > > with an auto_increment of 10, I'd have the option of adding a second > > master later and being able to load-balance more effectively. > > > > > > > > Thanks in advance, > > > > > > > > Adrian > > > > --f46d04427108e5904804ea750545--