Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

After you deploy the OVA, do these configuration steps

  1. To use the separate database cluster in Abiquo, edit the tomcat configuration at:

    Code Block
    /opt/abiquo/tomcat/conf/Catalina/localhost/api.xml

  2. Change the DB endpoint from localhost to the Galera cluster.
    Remove:

    Code Block
    driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/kinton?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8"/>

    Add:

    Code Block
    driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://10.10.51.105:3306,10.10.51.106:3306,10.10.51.107:3306/kinton?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8"/>


  3. Change the user and password. Please contact Abiquo Support for more information

  4. To point to the services cluster instead of the local host for RabbitMQ and Redis, edit the abiquo.properties file at:

    Code Block
    /opt/abiquo/config/abiquo.properties
  5. Set the RabbitMQ property

    Code Block
    abiquo.rabbitmq.addresses=

    Enter the three IPs in the datanode services cluster, separated by commas.
    For example:

    Code Block
    abiquo.rabbitmq.addresses=10.60.30.185,10.60.30.186,10.60.30.187

  6. Set the Redis host property

    Code Block
    abiquo.redis.host=

    Enter the master IP of the cluster, which be the IP of the first VM deployed in the cluster.
    For example:

    Code Block
    abiquo.redis.host=10.60.30.185

Datanode services cluster

Do these steps on ALL SERVERS in the datanode services cluster (usually 3 servers).

  1. Log in to each server as an administrator

  2. On the leader node, create the Galera cluster for MySQL

    Code Block
    galera_new_cluster
  3. On the other nodes, start MariaDB or MySQL service

    Code Block
    [root@datanodes1 /]# systemctl start mariadb
    [root@datanodes2 /]# systemctl start mariadb
  4. Edit the RabbitMQ environment configuration file at:

    Code Block
    /etc/rabbitmq/rabbitmq-env.conf
  5. Set the nodename that corrresponds to the server.
    For example: "rabbit@services1", "rabbit@services2", or "rabbit@services3"

  6. Restart the RabbitMQ service

    Code Block
    service rabbitmq-server restart
  7. Then start with the master and run the following command on each server

    Code Block
    /usr/local/abiquo/setup build_cluster

Monitoring cluster

Do these steps on node 2 and node 3 in the monitoring cluster, not the master node (again, we’re assuming you’ve got three servers).

  1. Log in to node 2 and node 3, not the master node

  2. Edit the Cassandra configuration file at:

    Code Block
    /etc/cassandra/conf/cassandra.yaml

  3. Remove the seeds value. In this example, remove “x.x.x.x”

    Code Block
    seeds: x.x.x.x

  4. Add the IP of the master VM as the new seeds value.

    Code Block
    seeds: <IP.of.Master.VM>

Then do these steps on ALL monitoring nodes.

  1. Log in to the monitoring server

  2. Edit the KairosDB properties file at:

    Code Block
    /opt/kairosdb/conf/kairosdb.properties

  3. Remove the this property

    Code Block
    kairosdb.datastore.cassandra.host_list

  4. Add this property (note the cql_” in the name) and set the value as the three IP addresses of the cluster, without the port, and separated by commas

    Code Block
    kairosdb.datastore.cassandra.cql_host_list=10.60.30.188,10.60.30.189,10.60.30.190

  5. Edit the watchtower properties files at:

    Code Block
    /etc/abiquo/watchtower/delorean.conf 
    /etc/abiquo/watchtower/emmett.conf
  6. Set the URL of the mysql server connection (as on the API server) with the 3 IP addresses of the watchtower cluster servers.

  7. Set the database credentials.

  8. Restart the cluster

    1. On all servers, stop the following services:

      1. cassandra

      2. kairosdb

      3. abiquo-emmett

      4. abiquo-delorean

      5. firewalld (and allow connections as required)

    2. Start cassandra and wait 5 minutes before continuing

    3. Start kairosdb and wait 1 minute

    4. Start abiquo-emmett and abiquo-delorean

    5. Start firewalld

The cluster should now be fully functioning.

...