Deploying VM
This section provides detailed instructions on how to deploy VM in the AWS.
Procedure
-
Install TC-Redis.
-
Update and install Redis.
dnf update dnf install epel-release dnf install redis -
Start Redis.
systemctl status redis systemctl start redis -
Enable remote access: Edit
/etc/redis.conf, comment.cd /etc vi redis.conf comment #bind 127.0.0.1 add bind 0.0.0.0
-
Update and install Redis.
-
Install Rabbitmq-Celery.
-
Update and install Redis.
dnf update dnf install epel-release dnf install redis -
Start Redis.
systemctl status redis systemctl start redis -
Enable remote Redis access: Edit
/etc/redis.conf, comment.cd /etc vi redis.conf comment #bind 127.0.0.1 add bind 0.0.0.0 -
Install dependencies:
dnf install socat logrotate -y. -
Install Erlang.
curl -LO -C - https://github.com/rabbitmq/erlang-rpm/releases/download/v26.2.5/erlang-26.2.5-1.el8.x86_64.rpm sudo dnf install ./erlang-26.2.5-1.el8.x86_64.rpm -
Add RabbitMQ repo and install.
curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | sudo bash dnf install -y rabbitmq-server -
Enable and start RabbitMQ.
sudo systemctl enable rabbitmq-server sudo systemctl start rabbitmq-server -
Enable management plugin:
rabbitmq-plugins enable rabbitmq_management. -
Configure user/vhost/permissions: Create
/etc/rabbitmq/definitions.jsonwith usercelery.vi definitions.json { "users": [ { "name": "celery", "password_hash": "fa604aceeeaae520de8742410200d620edc4a6101fb2971cd706b4cc19141dce", "hashing_algorithm": "rabbit_password_hashing_sha256", "tags": "administrator" } ], "vhosts": [ { "name": "/" } ], "permissions": [ { "user": "celery", "vhost": "/", "configure": ".*", "write": ".*", "read": ".*" } ], "queues": [], "exchanges": [], "bindings": [] } -
Point config to definitions file: Add
load_definitions = /etc/rabbitmq/definitions.jsoninrabbitmq.conf.
-
Update and install Redis.
-
Install Rabbitmq-UI.
-
Update and install Redis.
dnf update dnf install epel-release dnf install redis -
Start Redis.
systemctl status redis systemctl start redis -
Enable remote access: Edit
/etc/redis.conf, comment.cd /etc vi redis.conf comment #bind 127.0.0.1 add bind 0.0.0.0 -
Install dependencies:
dnf install socat logrotate -y. -
Install Erlang & RabbitMQ.
curl -LO -C - https://github.com/rabbitmq/erlang-rpm/releases/download/v26.2.5/erlang-26.2.5-1.el8.x86_64.rpm sudo dnf install ./erlang-26.2.5-1.el8.x86_64.rpm curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | sudo bash dnf install -y rabbitmq-server -
Enable and start RabbitMQ.
sudo systemctl enable rabbitmq-server sudo systemctl start rabbitmq-server -
Enable management plugin:
rabbitmq-plugins enable rabbitmq_management. -
Create definitions file:
/etc/rabbitmq/definitions.jsonwith usercelery.vi definitions.json { "users": [ { "name": "celery", "password_hash": "fa604aceeeaae520de8742410200d620edc4a6101fb2971cd706b4cc19141dce", "hashing_algorithm": "rabbit_password_hashing_sha256", "tags": "administrator" } ], "vhosts": [ { "name": "/" } ], "permissions": [ { "user": "celery", "vhost": "/", "configure": ".*", "write": ".*", "read": ".*" } ], "queues": [], "exchanges": [], "bindings": [] } -
Link config file:
load_definitions = /etc/rabbitmq/definitions.jsoninrabbitmq.conf.
-
Update and install Redis.
-
Install the Scheduler.
-
Create data dir and add jar.
mkdir /data cd /data cp scheduler.jar -
Create config structure.
cd /data mkdir /config/scheduler create application.properties create kill-switch.properties create log4j2.xml create 'Report Error.html' -
Create TSDB config files.
mkdir tsdb inside tsdb -> create metricDumper.ini create metric.ini -
Set permissions.
chown cdpservice:cdpservice /data chmod 777 /data/config -
Create symbolic link.
mkdir -p /disk1 ln -s /data/config /disk1
-
Create data dir and add jar.