...
Note |
---|
title | Important step for RHEL7 / CentOS7 |
---|
|
Support for RHEL7 is still experimental. The default MySQL variant for MySQL on RHEL7/CentOS7 is MariaDB. Our RPM packages are however not yet ready for this change. Please execute the following workaround before you execute the next step: Code Block |
---|
| echo "Installing Squirro dependency MariaDB"
yum install -y mariadb-server
yum install -y policycoreutils-devel
if [ -f /lib/systemd/system/mariadb.service ]; then
systemctl stop mariadb
mv /lib/systemd/system/{mariadb,mysqld}.service
systemctl enable mysqld
systemctl start mysqld
fi |
Note that once we've release offical support this renaming of the mariadb script will have to be undone. |
...
Code Block |
---|
|
[root]# yum install squirro-cluster-node-users
[root]# yum install squirro-cluster-node |
If the Storage and Cluster node are not the same physical machine, then you need now to adjust the fileĀ /etc/nginx/conf.d/upstream-elastic.inc to point to the IP or Hostnames of the storage node(s).
Examples:
Single Server both roles | Dedicated Storage Node | Multiple Storage Nodes |
---|
Code Block |
---|
upstream elastic {
server 127.0.0.1:9200;
keepalive 32;
} |
|
Code Block |
---|
upstream elastic {
server 192.168.0.20:9200;
keepalive 32;
} |
|
Code Block |
---|
upstream elastic {
server 192.168.0.20:9200;
server 192.168.0.21:9200;
server 192.168.0.22:9200;
keepalive 32;
} |
|
If changes have been made to this file, reload the nginx configuration
Code Block |
---|
service nginx reload |
Finally start the Squirro Services
Code Block |
---|
|
[root]# service monit start
[root]# monit -g all-manual start |
...