question

Josep C. avatar image
Josep C. asked ·

Agent migration

Hi all,

we've migrated our Dynatrace AppMon Server from 6.5 to 7.2. The migrations was without upgrade the agent version so, all agents remain in 6.5 versión.

Now we want to do the agent upgrade from 6.5 to 7.2 but we want to do that in a gradual basis (per agent group for example) and with confidence (with a rollback procedure), so how can we do that?

We've thousands of agents in hundreds of agent groups and system profiles, so what we want was start migrating one of these agent groups, try all functionalities and, if we've any problem with the new version, rollback all agents in the agent group to the 6.5 version.

Thanks in advance!

6.5agentjavacollector7.2dotnetmigrationapache
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Joe H. avatar image
Joe H. answered ·

One option is to disable automatic updates (as mentioned by Sebastian), then manually upgrade a small set of agents for a single app or single agentGroup. Manual upgrades can be completed by uninstalling/reinstalling the agent on the selected hosts. Complete your verification procedure. Once you have a necessary level of confidence, then re-enable automatic updates and let the rest of the agents update automatically.

1 comment Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

This was missing on my mind :) I wasn't sure that reinstallation is mandatory in such case. I'll remember. Thx!

0 Likes 0 · ·
Carlos O. avatar image
Carlos O. answered ·

We are doing some test for do a rollback from version 7.2 to version 6.5 in a lab environment, for do that, we delete all the files associated with the agent in .../agent/conf path, but it still starts with version 7.2 after restarting the service.

We also try to stop collector first, delete downloads directory and restart all again, but it doesnt work.

Do you know which files we should clean for do the rollback?

4 comments Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

If collector is 7.2 and autoupdate is turned on, everytime agent will be started as 7.2 because first action will be update.

Sebastian

0 Likes 0 · ·

Sorry, I forgot to say that auto update is desactivated.

Carlos.

0 Likes 0 · ·

Did you reinstall agent? Or just clear afent/conf?

0 Likes 0 · ·

Discussing it with Josep, we see that if you have 2 different installation folders, you can swap version changing the conf file, but if you use the REST API functionality, the new version is downloaded to agent/downloads and we can't do the rollback.

In this second scenario (updating using REST API), we try clearing this paths:

agent/conf

agent/downloads

C:\ProgramData\Dynatrace\AppMon\agent\conf\runtime\agentName

I suppose that it takes the last agent version used from some conf file, but we don't know which one.

0 Likes 0 · ·
Sebastian K. avatar image
Sebastian K. answered ·

Hello, if you have migrated Dynatrace Server and Collectors, agents will upgrade automatically after application restart. You can disable automatic agent updated in server settings. I’m not sure how to force particular agent group to upgrade than

Sebastian

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.