10 Oct 2019 03:48 PM
We recently migrated all of our java services to new hosts with an upgraded OS version. Instead of updating the hosts/properties on our existing services, Dynatrace automatically created new process groups and services and did not migrate our settings. This created a host of issues.
None of our service settings are showing on the duplicate services. Request naming rules are not working. Many request attributes were tied to a process group and are now all broken.
All of our multi-dimension analysis rules are also not present, as they were on the original service and did not get auto-migrated to the new.
When I tried to pin attributes to a service or process group, I now see two of every service in the list, and don't know which is the correct one without trial and error on every single service.
Why did Dynatrace create duplicates of all our services, and is there something we could have done to prevent it or ease the migration pain?
10 Oct 2019 04:02 PM
Also, how long does it take the old services/processes to be removed with no traffic going to them?
10 Oct 2019 06:26 PM
In general if for Example command linę arguments, binary location, host group or other things changed during migration, this is behavior that should may be expected. This is because Dynatrace detects it as some new process that has nothing in common with old one. There is no option for merging process groups. Not all services may be merged. In general new process group always results with separate set of services. You can use configuration API in dynatrace to migrate some of configurations. Not all endpoints that you may need exists, but there is always something.
Old process should not be visible when You have timeframe that not covers their existence. If you don’t have agents on old hosts that, they should disappear almost instant. Only archival data will be possible.Sebastian
10 Oct 2019 06:54 PM
That is disappointing.
Looking through the API docs, it looks like it would help maybe with naming rules, request attributes, and dashboards. That is a still a large effort to document all the old vs new service/process group IDs and write code to cover everything. For others, many additional hours of work would be needed to rebuild the multi-analysis rules, custom error detections, etc., by hand. As we roll out dynatrace to cover hundreds or thousands of microservices, I don't know how we would manage these tasks.
Also, you are correct that old services drop off from Transactions and Services when we change the timeframe. However, process groups are still visible for things like Request Attribute criteria regardless of our time setting. I can't tell which process group is which since they share the exact same name.
Dynatrace Devs, any ideas on how to approach these kinds of changes? In Appmon, there is zero effort on our part when migrating apps to a new cluster, unless we used a host filter in the agent mapping.
10 Oct 2019 07:49 PM
Did you try to adapt the process group detection rules so the new processes will match the old process groups you have already settings on? That would be probably the first thing I'd try to do. Alternatively, you can force a process to be a member of a process group by setting the DT_CLUSTER_ID (and DT_NODE_ID) for each process.
10 Oct 2019 07:52 PM
Good suggestions, I'll give it a try.
10 Oct 2019 08:02 PM
Don't forget you need the process group detection rules, not process group naming rules for that. Also, host groups affect those settings. Processes that would be normally members of one process group will on hosts with different host group end up in two separate process groups.
Often overlooked, but getting the right process group names / IDs is one of the most important things with Dynatrace deployment. If your process groups are not wisely named and used from the beginning, you might find your self in a very uncomfortable situation.
10 Oct 2019 08:11 PM
Agreed, we put a lot of work in the initial implementation in designing the process group naming rules to be more user friendly.
10 Oct 2019 08:16 PM
Naming rules are as the name says - just for naming. It's just "a display name" for the process group. Detection rules are the most important ones.
16 Oct 2019 09:11 PM
We couldn't find anything wrong with the process group detection rules. Both sets of groups were identified exactly the same way with the same result.
We did see that the new servers are in a different host group. Would that cause the process/service groups to split up?
17 Oct 2019 07:08 AM
Exactly! Dynatrace splits processes groups by host group. Processes in a process group must be on hosts within the same host group.
Just change the host group for the new hosts to the host group for the old ones and restart the processes. I don't know your reasons for the host groups in your environment - the change of a host group might have other implications in your environment (tagging rules, management zones, etc...)