Installing
This topic provides details on how to install BMC AMI Cloud Analytics in an on-premise environment.
Prerequisites
- 8 vCPU, 32gb RAM instance, 1TB of storage (preferably SSD)
- AWS instance types:
- m5d.2xlarge
- m5ad.2xlarge
- Docker or Podman must be installed on the instance.
- A user with docker or Podman privileges is required to run docker and Podman commands.
Installation
Important
Root access might be required for some of the steps depending on the system's configuration. Therefore, we recommend using a root user for the installation.
Task 1: To download the installation package file
Use the following procedure to obtain the installation files and a license key:
- Go to
Electronic Product Distribution (EPD)
and login.
- In the search bar, search for BMC AMI Cloud Analytics. Both product files are composed with the same binaries.
- Click on the version you want to download.
- In the Product tab, select the file and click Download.
Move the files to the target installation system. The recommended location for the package files on the installation system is:
/data/model9/gravity/packages
- Select the License Information tab and download the temporary license key.
- To obtain a full license key, go to Support Central and select Case Management.
Open a license key request by clicking on Create New Case and filling in the required information.
Important
Supply the output of the z/OS command
D M=CPU
.
Task 2: To prepare for installation
Set the version environment variable:
export GRAVITY_VERSION=<v.r.m>
Important
Note the following:
- In the command above, <v.r.m> represents the package version number, for example 1.0.0.
- The following installation steps use exported environment variables.
Extract the package file:
export GRAVITY_PACKAGES=/data/model9/gravity/packages cd $GRAVITY_PACKAGES tar -xzvf model9-gravity-package-$GRAVITY_VERSION.tar.gz export GRAVITY_EXTRACTED=$(pwd)/model9-gravity-$GRAVITY_VERSION export GRAVITY_BUILD=$(cat $GRAVITY_EXTRACTED/build-id.txt)
Create an installation target folder structure:
export GRAVITY_HOME=/data/model9/gravity mkdir -p $GRAVITY_HOME/config mkdir -p $GRAVITY_HOME/keys mkdir -p $GRAVITY_HOME/logs mkdir -p $GRAVITY_HOME/work
Important
$GRAVITY_HOME/work is the work directory used by the service for data processing. You must mount it on a block device with enough space available.
Task 3: To configure the product
Copy key stores into the $GRAVITY_HOME/keys folder:
cp $GRAVITY_EXTRACTED/keys/* $GRAVITY_HOME/keys
Important
The key stores provided in the package include the default self-signed BMC AMI Cloud certificates for setting up TLS in the BMC AMI Cloud Analytics service. If required, you can replace these key stores with key stores provided by the organization.
Create the configuration file:
cp $GRAVITY_EXTRACTED/application.properties $GRAVITY_HOME/config
After creating the application.properties file, edit it and specify the missing values:
vi $GRAVITY_HOME/config/application.properties
Important
vi is usually available by default on Linux systems. Depending on your preference, you can also use other editors such as nano.
# ---------------------------------------- # Model9 Gravity Configuration # Documentation: https://docs.model9.io # Support: support@model9.io # ---------------------------------------- model9.gravity.global.license-key= logging.level.io.model9=INFO
For details on the configuration options and their default values, see Additional configuration parameters.
Task 4: To start the BMC AMI Cloud Analytics service
Load the BMC AMI Cloud Analytics docker image:
docker load --input $GRAVITY_EXTRACTED/model9-gravity-$GRAVITY_VERSION-build-$GRAVITY_BUILD.docker.gz
Important
You must create a separate network bridge for the Gravity container.
Create a Docker Network bridge:
docker network create -d bridge gravity-bridge
Start the BMC AMI Cloud Analytics container:
docker run --detach --publish 443:443 \ --net gravity-bridge \ --volume $GRAVITY_HOME/config:/data/model9/config:z \ --volume $GRAVITY_HOME/keys:/data/model9/keys:z \ --volume $GRAVITY_HOME/logs:/data/model9/logs:z \ --volume $GRAVITY_HOME/work:/data/model9/work:z \ --env "TZ=America/New_York" \ --env "JAVA_OPTS=-Xmx28g" \ --restart unless-stopped \ --name model9gravity-v$GRAVITY_VERSION model9/gravity:$GRAVITY_VERSION.$GRAVITY_BUILD
Important
Note the following:
- Change the TZ environment variable as appropriate.
- Change the -Xmx value to reflect the amount of available memory for the service (in GBs) - Remember to leave a few free GBs for the operating system.
- 443 is the default secure port, if running the service on another port, this value should be changed as well.
For tasks that you must perform immediately after installing the product, see Additional configuration parameters.
Comments
Log in or register to comment.