We are planning on migrating 2 Dynatrace servers 6.3 (Prod and Test) currently residing on two Linux servers to a single VM on a docker. We want to migrate to the same version (6.3) and upgrade later. We also want to migrate the 2 collectors that are running on the server machines currently. Having different ports for each of these processes will be of great importance for the migration to go smoothly. I was wondering if anyone has any documentation to do this migration smoothly or if you can offer advice on what all ports we need to configure differently for the 2 server instances and 2 collector instances to work properly? Also, for the 2 collectors (prod and test) to connect to the 2 servers (prod and test) respectively, do we just mention the -server Server:Port while installing the collectors? Also, the DT homes will need to be different for the two DT servers, right? Any ideas/suggestions are appreciated. Thanks!
dtcollector -service install -instance CollectorName -listen Collectorhost:port -server Server:Port
For ex: We will need different ports for the following:
1) Ports on which the client connects with both servers
2) Ports on which the 2 collectors will connect to agents (-listen Collectorhost:port)
3) Ports on which the 2 collectors will connect to the servers (-server server:port)
Are you planning to Migrate both Linux server(Physical) to single VM? If that is the case than i don't think so its possible. Even if its possible it will have High load on single VM. For Collectors you can use Single VM and distribute the Instances accordingly of the ports that you have defined previously.
I found the follwing article which talks about installing two DT servers (of different versions) on a single VM: https://www.dynatrace.com/support/doc/appmon/installation/upgrade-and-migration-guide/migration-tool/migrating-server-instances-to-separate-installations/running-multiple-server-versions-on-one-system/
In my case, both Dynatrace servers will be of the same version. Each installation instance must have different port assignments. However, because AppMon assigns ports during installation, the same default ports are potentially assigned for each of two separate installations on the same machine. One installation must use non-default port settings. AppMon writes the port settings during initial Server or Frontend Server startup. One of the installation instances must have different ports assigned. To best resolve this potential issue, you must change one of the installation instances to use different ports.
To do this, do the following to the second instance installed.
1. During installation, clear the Start Server option in the installer.
2. Then as a user with the necessary permissions, continue depending on the version in that installation directory, with an example offset of 100:
AppMon 6.3 and later* In the proper AppMon installation directory run the following:
dtserver -portoffset 100
dtfrontendserver -portoffset 100
Please suggest which all ports of the below list will change by running the above two commands:
|Client to Frontend Server||2021||TCP|
|Client to Frontend Server||8023||HTTP|
|Frontend Server to Server||2031||TCP|
|Collector to Server||6699||TCP|
|Collector to Server||8033||HTTP|
|Collector to Server||8041||HTTP(S)|
|Agent to Collector||9998||TCP|
|Agent to Collector||8043||HTTP(S)|
|Memory Analysis Server to Server||7788||TCP|
|Browser to Server||8021||HTTP(S)|
|Dynatrace Web to Frontend Server||9911||HTTPS|
the most important part here is that it is not recommended, as the linked documentation already mentions. When you run a load test or high load on your test system, this will impact the production system.
I think it is also not recommended to run the collectors on the same machine as the servers.
Also, you will need the combined hardware requirements for two installations on one hardware system (eg if both require 4 CPU cores, you need 8 in total as per system specifications).
Regarding the ports, you should use the -portoffset (for new ports when you upgrade to 6.5), but this only takes effect during first server startup (for fresh installations for instance). So for all current ports, you will need to change them manually, for instance while still on the old servers through the UI.
The portoffset and reconfiguration for the ports also applies to the collector configurations.
Only two separate DT homes will work.
As mentioned, I would not recommend running two servers on the same box / OS installation due to load and sizing requirements.