AppDynamics Application Intelligence Platform
3.9.x Documentation
To upgrade the Controller, you run the installer for the version of the Controller to which you want to upgrade on the Controller machine. When a Controller instance is already present, the installer detects the instance and prompts you to upgrade that instance. If there are multiple Controller instances on the machine, the installer detects the last one installed.
The Controller installer supports upgrading from a given version to any later version, so you don't need to apply updates for each intermediate version to update the Controller by several versions. However, be sure to read the release notes for all intermediate versions to learn about the new features and known issues that may apply to you.
During an upgrade, the Controller does not process metrics from the agents because it is not running. You are not required to stop the agents during the Controller upgrade.
Before applying an upgrade to the Controller, you must back up the existing installation. If the upgrade does not finish successfully for any reason, you will need to use the backup files to restore the installation to its previous state. Do not attempt to upgrade again without restoring the installation. See Troubleshooting the Upgrade for more information.
You need to back up the existing Controller home and the data directory for the Controller. Be default, the data directory resides under the Controller home in the db directory.
For Linux, run:
<controller_installation_directory>/bin/controller.sh stop-appserver <controller_installation_directory>/bin/controller.sh stop-db
For Windows, run the following command in an elevated command prompt (right-click on the Command Prompt icon in the Windows Start menu and choose Run as administrator):
<controller_installation_directory>\bin\controller.bat stop-appserver <controller_installation_directory>\bin\controller.bat stop-db
The following steps describe how to upgrade the Controller on Windows and Linux. To upgrade a Controller that is running as a service on Windows, see Install the Controller as a Windows Service.
You use the Controller installer in GUI mode, console mode, or silent mode to perform the upgrade.
If using silent mode to apply the upgrade, pass the response file that the installer generated at first installation to the installer. This response file is at the following location
If you have made any changes to the settings as originally configured by the installer—such as to the connection port numbers, tenancy mode, or data directory—you must make the same change in the response file before starting the upgrade.
You must also add the existing root user password to˜ the file, rootUserPassword and rootUserRePassword. If you do not, the installer prompts you to add the password.
For Linux, run:
<controller_installation_directory>/bin/controller.sh stop-appserver <controller_installation_directory>/bin/controller.sh stop-db
For Windows, run the following command in an elevated command prompt (right-click on the Command Prompt icon in the Windows Start menu and choose Run as administrator):
<controller_installation_directory>\bin\controller.bat stop-appserver <controller_installation_directory>\bin\controller.bat stop-db
Open a browser and access the AppDynamics user interface:
http://<Controller_Host>:<Controller_Port>/controller
If the UI does not display the new Controller, refresh your browser cache to view the new UI.
If you configure the high availability mode for the AppDynamics Controller, you must upgrade both the primary and the secondary Controller.
On the secondary Controller, stop the application server:
<controller_installation_directory>/bin/controller.sh stop-appserver
For Linux, run:
controller.sh login-db
For Windows, run the following command in an elevated command prompt (right-click on the Command Prompt icon in the Windows Start menu and choose Run as administrator):
controller.bat login-db
Execute following command:
SHOW SLAVE STATUS\G
This step should provide you following result:
Seconds_Behind_Master: $Number_Of_Seconds_Behind_Master
If you get a non-zero number for this test, wait until the number becomes zero.
Start the application server for the secondary Controller:
For Linux, run:
<controller_installation_directory>/bin/controller.sh start-appserver
For Windows, in an elevated command prompt, run:
<controller_installation_directory>\bin\controller.bat start-appserver
Upgrade the secondary Controller using the instructions provided in the To upgrade the Controller.
Stop the application server for the secondary Controller.
For Linux, run:
controller.sh stop-appserver
For Windows, in an elevated command prompt, run:
controller.bat stop-appserver
Both the primary and secondary Controllers are now upgraded.
The installer attempts to restart the Controller and database after applying an update or installation. For large databases and depending on the system resources, this can take a considerable amount of time. If the Controller installer cannot finish starting up the Controller within a set time-out period (30 minutes by default), it exits the installation or upgrade.
If the upgrade does not succeed for any reason, the installer does not roll back changes on disk. This give you an opportunity to diagnose and troubleshoot the issue before reattempting the installation or upgrade.
To troubleshoot the issue, check the installation log at <Controller_home>/.install4j/installation.log, along with any other Controller log files.
After diagnosing the issue, you need to manually revert the installation back to its state prior to starting the upgrade. To do so, replace the existing Controller directory and data home directories with the backup directories you created before starting the upgrade. Then apply your remediation changes, and restart the update or installation.
If necessary, you can increase the default time out period for system startup in the installer. To do so, set the ad-timeout-in-min property to the new time in minutes in the response.varfile under Controller_home/.install4j directory or from the command line as an argument to the installer.