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 F376618128 for ; Mon, 23 Nov 2015 21:54:51 +0000 (UTC) Received: (qmail 31429 invoked by uid 500); 23 Nov 2015 21:54:51 -0000 Delivered-To: apmail-cloudstack-users-archive@cloudstack.apache.org Received: (qmail 31324 invoked by uid 500); 23 Nov 2015 21:54:51 -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 31312 invoked by uid 99); 23 Nov 2015 21:54:50 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Nov 2015 21:54:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 30764180A17 for ; Mon, 23 Nov 2015 21:54:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.554 X-Spam-Level: X-Spam-Status: No, score=-0.554 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.554] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id hA6xXh6nrBgD for ; Mon, 23 Nov 2015 21:54:45 +0000 (UTC) Received: from ezel.ic.uva.nl (ezel.ic.uva.nl [146.50.108.158]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 6CB9A42AEE for ; Mon, 23 Nov 2015 21:54:45 +0000 (UTC) Received: from vpn-staff-146-50-69-236.vpn.uva.nl (vpn-staff-146-50-69-236.vpn.uva.nl [146.50.69.236]) (authenticated bits=0) by ezel.ic.uva.nl (8.13.8/8.13.8) with ESMTP id tANLsbTf021157 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 23 Nov 2015 22:54:38 +0100 From: Stavros Konstantaras Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Failed to configure HA in active/active setup Message-Id: <19A3385B-EB7F-40FE-AF54-DDD7B347D1F0@uva.nl> Date: Mon, 23 Nov 2015 22:54:37 +0100 To: users@cloudstack.apache.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2081\)) X-Mailer: Apple Mail (2.2081) Hi there, I am trying to setup High Availability on Cloudstack 4.5.2 in a = Master-Master implementation with MySQL DB but I get the following = error: =E2=80=94=E2=80=94 2015-11-24 00:29:01,988 INFO [c.c.u.d.T.Transaction] (main:null) Is = Data Base High Availiability enabled? Ans : true 2015-11-24 00:29:02,043 INFO [c.c.u.d.T.Transaction] (main:null) The = slaves configured for Cloud Data base is/are : 10.0.60.2 2015-11-24 00:29:02,087 ERROR [c.c.u.d.Merovingian2] (main:null) Unable = to get a new db connection java.sql.SQLException: Invalid load balancing strategy = 'com.cloud.utils.db.StaticStrategy'. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:934) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931) at com.mysql.jdbc.Util.loadExtensions(Util.java:588) =E2=80=A6 =E2=80=A6 =E2=80=94=E2=80=94 The target is fault tolerance so in case of failure of the first server = then we can continue working as normal with the second server. I tried = to debug this but unfortunately it still goes on.=20 I checked open ports with netstat and mysql listens to all interfaces = =E2=80=9C0.0.0.0:3306=E2=80=9D I enabled HA in db.properties and I inserted the IP of the second = server in db.cloud.slaves and db.usage.slaves (it is also viewable in = the error above). =E2=80=94=E2=80=94 Of course I configured my.cnf file which is quite simple: [mysqld] datadir=3D/var/lib/mysql socket=3D/var/lib/mysql/mysql.sock user=3Dmysql symbolic-links=3D0 innodb_rollback_on_timeout=3D1 innodb_lock_wait_timeout=3D600 default-storage-engine=3DInnoDB character-set-server=3Dutf8 transaction-isolation=3DREAD-COMMITTED innodb_flush_log_at_trx_commit=3D1 max_connections=3D350 # ~ HA ~ server-id=3D1 (THIS VALUE IS 2 IN THE SAME FILE OF THE SECOND SERVER) log-bin=3Dmysql-bin binlog-format=3D'ROW' sync_binlog=3D1 # Bin logs cleanup configuration expire_logs_days=3D10 max_binlog_size=3D100M [mysqld_safe] log-error=3D/var/log/mysqld.log pid-file=3D/var/run/mysqld/mysqld.pid =E2=80=94=E2=80=94 I place the HA java plug-in under = "/usr/share/cloudstack-mysql-ha/lib/cloud-plugin-database-mysqlha-4.5.2.ja= r=E2=80=9D =E2=80=94=E2=80=94 In catalina.properties my common.loader looks normal: = "common.loader=3D${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalin= a.home}/lib,${catalina.home}/lib/*.jar,/usr/share/java/mysql-connector-jav= a.jar,/usr/share/cloudstack-mysql-ha/lib/*jar=E2=80=9D After unlimited restarts of both cloudstack-management and mysqld the = problem still remains. Both IPs are pingable between the two servers. = Any other idea or suggestion on solving that? Thank you in advance.=20 Best regards Stavros ---------------------------- Stavros Konstantaras Science faculty Research IT support (FEIOG)=20 University of Amsterdam, Science Park 904, 1098 XH Fingerprint: E5E5 9B19 D1CD 88CD 4763 3465 A8DC 7C92 330F D59A