cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Optimizing /var/opt/dynatrace-managed/agents/ ?

AntonioSousa
Champion

/var/opt/dynatrace-managed/agents/ is taking up almost 30 GB of data in our installation. I believe some of this could be optimized, so it can be used to give us more APM data. Not sure if I can handle this at the moment, with some configuration, or if a RFE might be adequate? The following two points take up much of that space, so a good optimization could result from implementing them:

  • In the case I have analyzed, agents are available since version 1.181, which is from last December. In this case, there has been no need to use older agents, so this space usage is not useful. There are versions that seem to take more space, like 1.183 that takes almost 7 GB. Is there a way to safely delete these older versions? Is the number of retained versions configurable? Can eventually older versions be downloaded, if needed?
  • I have noticed that all agents are being downloaded. That includes agents we never use, like aix, solaris, s390, amongst others. Is there a quick way to tell Managed not to care about these ones? It would benefit not only the clients, with no space & traffic needed, but also Dynatrace, which has to support a lot of unneeded traffic worldwide.

I believe these issues might also benefit the SaaS offering, so there is a lower resource usage...

5 REPLIES 5

Radoslaw_Szulgo
Dynatrace Leader
Dynatrace Leader

Hey Antonio,

Old packages (OneAgents, Agentless, ActiveGates, Synthetic modules) are removed autoamtically based on what you are running. Cluster analyzes last 30 days of AG and OA activity and reports the oldest version that was running. All older versions that what was reported - is removed automatically.

Regarding the specific components removal - it's currently not possible. One may want to use them on demand, and we want them to be available right away. We were thinking on enabling downloading that on demand for the cost of worse UX, but that's really a corner case and disk space doesn't take that much to invest in that.


Hope my explanation helps. Let me know if you have any other questions.

Technical Product Manager,
Dynatrace Managed expert

From the first part, it looks like it's a very good strategy! I imagine that in our case some host might be running some older version, and so that's why the 1.181 versions and above might still be there. Might this be the case?

Regarding the specific components removal, I had imagined that having it readily available should explain it. I would imagine that the best solution for this would be having some sort of configuration in the UserAgent definitions area, where all types of agents would be previously selected, but where customers could go there & deselect agents that are not needed for sure. I'm going to put this one as an RFE.


@Radoslaw S.

I have been hunting for the older versions, and thought it was due to an older version of Activegate. But that's not the case, as it has been recently upgraded. Shouldn't be because of OneAgents, as updates are automatic in this case. I would prefer having these ~30 GB being used for data 😉 What would you suggest?

If I got you right, you have updated OneAgents and AG and still seeing old versions available?

If that's true, then as I mentioned - they will be removed after 30 days (that's a safety net for the case where OneAgent is down and reactivates with the old version).

Technical Product Manager,
Dynatrace Managed expert

Yes, OneAgents have been auto updated all along, but Activegate was updated recently, so you're right, I'll have to wait for the 30 days...

In the meantime, it has occurred to me that some servers are not active anymore, having been disabled in the platform, but still with OneAgent installed. Might they be counting for this? And I've searched the documentation, but not been able do confirm if they are also auto updated or not?