Hello, Paul.

Yes, I see and realize the aftermath and actually I just haven't realized
the thing about get_lock, because main documentation (
http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/4.9/management-server/)
didn't mention that ACS requirement, and as I said before I was asked by a
person to try deploy the topology.

Just wondering if someone have thought about using Apache Zookeeper for
distributed locks coordination? We are using it with Apache Curator library
in almost all our distributed projects and there are recipes for the DLM:
http://curator.apache.org/curator-recipes/shared-reentrant-lock.html or
http://curator.apache.org/curator-recipes/shared-lock.html . I briefly took
a look at locking code and it seems Zk fits (if there are no other
implications).

Also, as for single node configuration ZK server can be launched embedded
in ACS (as it's also a Java and widely used embedded for integrational
testing and other embedded stuff) to avoid additional configuration
dependencies. Global configuration parameters might allow switching from
127.0.0.1:28010/cloudstack (fake embedded) to a real cluster zk://
1.1.1.1:2821,1.1.1.2:2821,1.1.1.3:2821/cloudstack.

Or, actually, db.ha.enabled, db.cloud.slaves options solve the problem and
ZK is "overengineering" approach?

Have a good day.

2017-07-19 1:14 GMT+07:00 Paul Angus <paul.an...@shapeblue.com>:

> Hi Ivan,
>
> Load balancer is a generic term, it doesn't have to distribute load
> evenly.  In the case of a Galera cluster, it would have a primary galera
> node to send traffic to, the other nodes would be fail over options.
>
> Every production environment should have a failover option for the MySQL
> database in case of a physical hardware failure. Also, OSes can become
> corrupted, and shared storage can become unavailable.
>
>
>
> Kind regards,
>
> Paul Angus
>
> paul.an...@shapeblue.com
> www.shapeblue.com
> 53 Chandos Place, Covent Garden, London  WC2N 4HSUK
> @shapeblue
>
>
>
>
> -----Original Message-----
> From: Rafael Weingärtner [mailto:rafaelweingart...@gmail.com]
> Sent: 18 July 2017 18:17
> To: users@cloudstack.apache.org
> Subject: Re: ACS 4.9.2 Management Server and Galera Cluster in CentOS 7
>
> By failover as requirement, do you mean master-master replication and
> transparent DB access for ACS?
>
> On Tue, Jul 18, 2017 at 1:14 PM, Ivan Kudryavtsev <
> kudryavtsev...@bw-sw.com>
> wrote:
>
> > Hi, Paul. Thanks for advice. It seems that load balance is not an
> > option and the failover is the only case.
> > By the way does anyone tried, thought about implementing the case with
> > Zookeeper functionality?
> >
> > As I said, I personally haven't met the situation when load balancing
> > required or even failover required, but it might be for intensive
> > API-centric deployments it's an option?
> >
> > 2017-07-18 22:32 GMT+07:00 Paul Angus <paul.an...@shapeblue.com>:
> >
> > > Be careful with your load-balancing Ivan - Since CloudStack relies
> > > on MySQL’s GET_LOCK and RELEASE LOCK, multi-master isn't supported.
> > >
> > > http://www.shapeblue.com/how-to-deploy-high-availability-
> > > cloudstack-with-mariadb-galera-cluster/
> > >
> > >
> > >
> > > Kind regards,
> > >
> > > Paul Angus
> > >
> > > paul.an...@shapeblue.com
> > > www.shapeblue.com
> > > 53 Chandos Place, Covent Garden, London  WC2N 4HSUK @shapeblue
> > >
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: Ivan Kudryavtsev [mailto:kudryavtsev...@bw-sw.com]
> > > Sent: 18 July 2017 16:08
> > > To: users@cloudstack.apache.org
> > > Subject: ACS 4.9.2 Management Server and Galera Cluster in CentOS 7
> > >
> > > Hello, community.
> > >
> > > A person asked me whether i have experience of deploying ACS 4.9 with
> > > Galera HA cluster and after I answered - "I don't" I decided to try
> > because
> > > I was unable to find relevant new article I wrote it as well. It
> explains
> > > how to deploy ACS 4.9.2 to Galera in CentOS 7. I published it under
> > Apache
> > > License, so If someone includes it in docs it would be great, please
> also
> > > don't hesitate notifying me with any bugs found and considerations.
> Hope
> > > it'll help to someone.
> > >
> > > Link:
> > > https://bitworks.software/blog/en/2017-07-18-mariadb-
> > > galera-cloudstack-ha-cluster.html
> > >
> > > Have a good day.
> > >
> > > --
> > > With best regards, Ivan Kudryavtsev
> > > Bitworks Software, Ltd.
> > > Cell: +7-923-414-1515
> > > WWW: http://bitworks.software/ <http://bw-sw.com/>
> > >
> >
> >
> >
> > --
> > With best regards, Ivan Kudryavtsev
> > Bitworks Software, Ltd.
> > Cell: +7-923-414-1515
> > WWW: http://bitworks.software/ <http://bw-sw.com/>
> >
>
>
>
> --
> Rafael Weingärtner
>



-- 
With best regards, Ivan Kudryavtsev
Bitworks Software, Ltd.
Cell: +7-923-414-1515
WWW: http://bitworks.software/ <http://bw-sw.com/>

Reply via email to