You can set up PSA in the Docker engine using the automation script, which is available with the installation zip file. When you run the installation command, the script automatically builds the docker image and deploys PSA.

Supported Operating System 

  • Linux (CentOS and Ubuntu)
  • macOS with Intel or M1 processor  
  • Windows

    Installing PSA using the automated script is not supported on Windows. To install PSA on Windows, see Deploy PSA on Windows.

The following table illustrates the differences between installing PSA in Kubernetes and Docker:

KubernetesDocker

Heimdall and Ignite are deployed as pods on the existing Kubernetes cluster through Helm Charts.

Heimdall and Ignite are deployed as containers.

Heimdall creates Web Monitoring and API Monitoring measurement job pods through Kube APIs.Heimdall creates Web Monitoring and API Monitoring measurement job containers through Docker APIs.
When the measurement is ready, Heimdall deletes the job pods through the Kube APIs.When the measurement is ready, Heimdall deletes the job containers through the Docker APIs.

Download the PSA Installation Files

Download the PSA installation zip file from the Appdynamics Downloads Portal or from the beta upload tool. This file contains Docker files for sum-chrome-agent, sum-api-monitoring-agent, sum-heimdall, Helm charts, and automation scripts. To build an image for sum-chrome-agent, sum-api-monitoring-agent, and sum-heimdall, ensure that Docker is installed. You can download and install Docker from here if it is not installed.

Deploy PSA in Docker

  1. Unzip the PSA installation zip file.
  2. Run the following command to install PSA in a Docker engine:

    ./install_psa -e docker -l -v -u <Shepherd-URL> -a <EUM-account> -k <EUM-key> -c <location-code> -d <location-description> -t <location-name> -s <location-state> -o <location-country> -i <location-latitude> -g <location-longitude> -p <PSA-tag> -r <heimdall-replica-count> -z <agent-type> -m <chrome-agent_min/max-memory> -n <API-agent_min/max-memory> -x <chrome-agent_min/max-CPU> -y <API-agent_min/max-CPU> -b <heimdall_min/max-memory> -f <heimdall_min/max-CPU> -q <ignite-persistence>
    CODE

    A sample installation command looks like this: 

    ./install_psa -e docker -u <Shepherd-URL> -a <EUM-account> -k <EUM-key> -c DEL -d Delhi -t Delhi -s DEL -o India -i 28.70 -g 77.10 -p 23.5 -r 1 -z all -m 100Mi/500Mi -n 100Mi/100Mi -x 0.5/1.5 -y 0.1/0.1 -b 2Gi/2Gi -f 2/2 -q true 
    CODE

The following table describes the usage of the flags in the command. Asterisk (*) on the description denotes mandatory parameters.

FlagDescription
-e

Environment

For example, Docker, Minikube, or Kubernetes.

-lLoad images to the Minkube environment
-vDebug mode
-u

*Shepherd URL

For example, https://sum-shadow-master-shepherd.saas.appd-test.com/

See Shepherd URL.

-a

*EUM Account

For example, ati-23-2-saas-nov2

-k

*EUM Key

For example, 2d35df4f-92f0-41a8-8709-db54eff7e56c

-c

*Location Code

For example, DEL for Delhi, NY for New York

-d

*Location Description

For example, 'Delhi, 100001'

-t

*Location City

For example, Delhi

-s

*Location State

For example, CA for California

-o

*Location Country

For example, India, United States

-i

Location Latitude

For example, 28.70 for Delhi

-g

Location Longitude

For example, 77.10 for Delhi

-p

*PSA release tag

For example, 23.5

-rHeimdall replica count
-z 

Agent type

For example, web, api, or all

-m  

Minimum/Maximum memory in Mi/Gi for sum-chrome-agent 
-n   Minimum/Maximum memory in Mi/Gi for sum-api-monitoring-agent 
-x   Minimum/Maximum CPU for sum-chrome-agent 
-y   Minimum/Maximum CPU for sum-api-monitoring-agent 
-bMinimum/Maximum memory in Mi/Gi for sum-heimdall 
-f Minimum/Maximum CPU for sum-heimdall 
-qSpecify true or false to enable or disable Ignite Persistence. 

Monitor PSA

To monitor the CPU and memory usage of the Heimdall and Ignite containers, run the following command:

./monitoring_psa
CODE

Deploy PSA on Windows

Perform the following steps:

  1. Navigate to the sum-chrome-agent directory and run the following command:

    docker build -f Dockerfile-PSA -t sum-chrome-agent:<agent-tag> .
    CODE


  2. Navigate to the sum-api-monitoring-agent directory and run the following command:

    docker build -f Dockerfile-PSA -t sum-api-monitoring-agent:<agent-tag> .
    CODE
  3. Navigate to the sum-heimdall directory and copy the docker file:

    cp ./docker-PSA/Dockerfile-PSA 
    CODE
  4. Build the Heimdall image:

    docker build -f Dockerfile-PSA -t sum-heimdall:<heimdall-tag> .
    CODE
  5. Navigate to ./docker-psa/appdynamics and update the following details in the onprem.yaml file:
    • Shepherd URL
    • EUM credentials
    • Registration location
    • Agent tag
  6. Navigate to ./docker-psa and update the Heimdall tag in the docker-compose.yaml file.
  7. Perform Docker compose:

    docker-compose up -d
    CODE

Uninstall PSA

To uninstall PSA, run the following commands:

Operating SystemCommand
Linux and macOS
./uninstall_psa -e docker -p 
CODE
Windows
  1. docker ps -a
    CODE
  2. docker rm <heimdall-containerID>
    docker rm <ignite-containerID>
    CODE