Deploying the Notifications Component on a Standalone Node

This documentation provides the steps needed to deploy ad-notifications as a standalone add-on.

Prerequisites

Ensure the following criteria are met:

  • You are using “Pulse 3.5.0 or higher” or “Pulse 3.4.3 or higher”.
  • You have already deployed ad-alerts.
  • You have not deployed ad-notifications. If this is already installed, uninstall it using accelo deploy add-ons and unselect Notifications.
  • You have already configured the standalone node.

Deploy ad-notifications as a Standalone add-on

Follow the steps listed below to successfully deploy ad-notifications as a standalone add-on.

  1. On a standalone node, run the following command to generate ad-notifications.yml if it doesn’t exist. Also, ensure to update the values for the EMAIL_SMTP_* environment variables. If Notifications is already deployed and ad-notifications.yml does exist under $AcceloHome/config/docker/addons on the node where it was previously deployed, copy it over to the same location i.e. $AcceloHome/config/docker/addons on the standalone node.
Bash
Copy

Open the file in a text editor and make changes to the value of the following fields.

  • DB_URI: Set it to the value of the environment variable MONGO_URI, which by default, is encrypted.
  • DIRECTOR_HOST: Set it to the hostname of the node where the ad-director will be deployed.
  • DIRECTOR_PORT: Set it to 19016.
Bash
Copy
  1. On the core node, back up $AcceloHome/config/acceldata_<cluster_name>.conf. Open the file in a text editor and navigate to the following section.
Bash
Copy

Under connections, make the following changes:

  • mongo:

    • uri: Change its value for all Mongo connections to the value of ALERTS_DB_URI, whose value you have changed in the previous step.
  • elastic:

    • host: Change its value from ad-elastic to the host/hosts where Logsearch is deployed.

For The connection named fsanalytics, it's the host where FS Elastic is deployed.

- port: Change its value to 19013.

  • Vm:
    • readURL: In this field, replace the following details:
      • ad-vmselect with a hostname of the node where core services are deployed.
      • 8481 with 19042.

Save your changes. If done correctly, the following changes appear on the screen.

Bash
Copy

Repeat the above steps for all cluster configuration files.

  1. Run the following command to push the configuration.
Bash
Copy
  1. On the standalone node where ad-alerts is deployed, run the following command to generate ad-alerts.yml if it doesn’t exist.
Bash
Copy

Open the file in a text editor and make changes to the value of the following fields.

  • NOTIFICATIONS_HOST: Set it to the node's hostname where ad-notifications is deployed.

If done correctly, the following changes appear on the screen.

Bash
Copy

Run the following command to restart ad-alerts.

Bash
Copy
  1. On the standalone node where ad-director is deployed, run the following command to generate ad-director.yml if it doesn’t exist.
Bash
Copy

Open the file in a text editor and make changes to the value of the following fields.

  • NOTIFICATIONS_HOST: Set it to the node's hostname where ad-notifications is deployed.

If done correctly, the following details appear on the screen.

Bash
Copy

Run the following command to restart the ad-director.

Bash
Copy
  1. On the standalone node, run the following command and select Notifications.
Bash
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard