We are trying to install a Web Server Agent in an Apache Server, inside a containerized environment.
For reference, we are following this github account -> https://github.com/Dynatrace/Dynatrace-AppMon-Dock...
In there, I found the following DockerFile:
Here, I can see that there are 2 services launched in the same container, which is not good practice inside a containerized environment.
My questions are:
How do the Master+Slave Agents communicate?
Do they have to be in the same container as a must?
Answer by Rick B. ·
Being inside the same container is a must. The agent library (slave) and process (master) use a "shared memory" file inside the container and need to be in sync.
Secondarily i would comment that containers with multiple (albeit a very few) cooperative services in the same container is not so uncommon. We have containers which do UI Automation testing, which instantiate Xvfb before running Selenium, for instance.