RabbitMQ Configuration for Accelerator
Below you can find instructions on how to configure RabbitMQ for CDN Accelerator.
Compute Resources and Control Panel must use the same rabbitmq-server. For instructions on how to install RabbitMQ server, refer to the RabbitMQ Server Installation document.
- Starting from 6.2 Edge 2, Accelerator is renamed into Edge Accelerator.
- If you have the latest OnApp update installed, there is no need to upgrade and reboot compute resources. In this case:
- Configure users for RabbitMQ server (where RabbitMQ server is installed)
- Configure /home/mq/onapp/messaging/credentials.yml file (for Cloudboot compute resources, this file should be configured after every reboot)
- Run the
service onapp-messaging start
command.
Configuration for Accelerator
Perform the following steps for your Cloudboot compute resources if you plan to deploy Accelerator. These steps are to be performed on each of the compute resources.
Run the following command on the CP server:
For all compute resources:
rake hypervisor:messaging:configure
For certain compute resources only:
rake hypervisor:messaging:configure['11.0.50.111 11.0.50.112']
To perform the configuration for a number of compute resources, separate their IPs with a space.
The command above should be run after every reboot. However, you can avoid the necessity to run the command repeatedly after every reboot by coping the following information (using your parameters) from /home/mq/onapp/messaging/credentials.yml to the custom config:
echo "--- host: 10.0.50.4 # RABBITMQ SERVER IP/FQDN port: 5672 # RABBITMQ CONNECTION PORT(default: 5672) vhost: '/' user: accelerator-example # RABBITMQ USER NAME password: 'e{y31?s8l' #RABBITMQ ACCESS PASSWORD queue: 'hv-10.0.50.102' # hv-[IP Address of Compute Resource] exchange: name: 'acceleration' type: 'direct' durable: True" > /home/mq/onapp/messaging/credentials.yml chown -R mq:mq /home/mq service onapp-messaging restart
To make the configuration for the Accelerator manually, perform the following steps:
Copy file:
cp /home/mq/onapp/messaging/credentials{_example,}.yml
Open
vi /home/mq/onapp/messaging/credentials.yml
and check the following details:--- host: 10.0.50.4 # RABBITMQ SERVER IP/FQDN port: 5672 # RABBITMQ CONNECTION PORT(default: 5672) vhost: '/' user: accelerator-example # RABBITMQ USER NAME password: 'e{y31?s8l' #RABBITMQ ACCESS PASSWORD queue: 'hv-10.0.50.102' # hv-[IP Address of Compute Resource] exchange: name: 'acceleration' type: 'direct' durable: True
Change owner:
chown -R mq:mq /home/mq
Run the following:
service onapp-messaging start
Note that steps 1-4 of the above instruction should be done after every reboot of CloudBoot compute resource. You can run the following commands (using your parameters) to the custom config instead:
cp /home/mq/onapp/messaging/credentials{_example,}.yml echo "--- host: 10.0.50.4 # RABBITMQ SERVER IP/FQDN port: 5672 # RABBITMQ CONNECTION PORT(default: 5672) vhost: '/' user: accelerator-example # RABBITMQ USER NAME password: 'e{y31?s8l' #RABBITMQ ACCESS PASSWORD queue: 'hv-10.0.50.102' # hv-[IP Address of Compute Resource] exchange: name: 'acceleration' type: 'direct' durable: True" > /home/mq/onapp/messaging/credentials.yml chown -R mq:mq /home/mq service onapp-messaging restart