06 Jul 2020 03:26 PM - last edited on 13 Apr 2021 02:20 PM by MaciejNeumann
Let's say you run a synthetic monitor every 15 minutes from one location and it fails for some reason. Also, say you have the trigger set to 2 consecutive failures. Can you configure it to auto-retry in 1, 2, or say 5 minutes later and then if there is a 2nd failure, then you can trigger the alert? We want to be as efficient as we can to catch the failure condition as soon as possible
If you wait for a 2nd occurrence to fail, then you could be waiting nearly 30 minutes if the site was down 14 minutes prior to the 1st test since the 2nd test won't occur until 15 minutes after that 1st failure. Sure, you can run it multiple times from multiple sites, but you are increasing your application hits unnecessarily and increasing your licensing dem units, as well as other impacts. This impact is greater the depending on the number of synthetic transactions you run.
Dynatrace indicates that it will retry on failures if the error is a network error. So, if the page fails due to validation or the script fails because the page isn't loaded all the way, or some other condition, it won't run again until the next scheduled run. But, if there is a DNS error or connection timeout, or basically any error from the network layer, it will retry the test immediately. If a retry occurs, the second result is reported.
This helps partially, but there are a lot of reasons that a retry could prove helpful.
Solved! Go to Solution.
06 Jul 2020 03:35 PM
This is a great use case, im not 100% sure that we can currently do this but submitting a RFE would be great as this is a good use case.
06 Jul 2020 03:43 PM
Dynatrace Synthetic retries on Error after any failure. It was Classic Synthetic that limited retries to network failures.
06 Jul 2020 03:49 PM
Thanks for the update.
Is it reported that a retry has occurred or would you just assume that if you got a failure it is a 2nd failure for that attempt?
Does it report what the 1st failure condition was?
Is there a configurable delay before the retry occurs?
06 Jul 2020 04:08 PM
Where a retry is required, we only show only the 2nd execution. There is nothing shown in the WebUI to denote that the execution was a 2nd try. So if you see a failure you will know it was the 2nd execution.
Retry on error is currently not configurable in Dynatrace Synthetic.
Only the 2nd execution is used for alerting purposes.
Support are able to view the 1st execution details so can check something if needed. It might be a good Product Idea to add if you would like to view the first failed execution details and also if you would like to configure a retry delay.
06 Jul 2020 05:07 PM
Thanks for this insight, as I didn't know about it. But it raises an immediate question: how does this retry impact DEM consumption?
06 Jul 2020 05:35 PM
The retries do not consume additional DEM license, everything will appear and be consumed as if it was one run of the test
06 Jul 2020 06:05 PM
If Dynatrace performs an automatic retry, and only reports the 2nd attempt, then I would not expect it to impact DEM licensing.
In order to shorten the time for triggering a 2nd attempt, outside of the auto-retry by Dynatrace, such as by adding a test from multiple locations or shortening the interval from 15 minutes to 10 minutes, so as to execute more synthetic transactions than preferred, I would expect in these cases that DEM licensing would be impacted.
I would hope that adding a configurable delay would not impact DEM licensing if this delay is related to the auto-retry capability. However, I would like to know the condition for failure of the 1st attempt as well as the 2nd attempt and for that also not to impact DEM licensing.
07 Jul 2020 08:43 AM
Hi Greg, these would be questions a PM would consider when planning new functionality. If you would like to suggest any ideas for consideration you can add a Product Idea here, please choose 'Dynatrace Product Ideas' as the forum. Other customers will then be able to vote for and add their use cases to the idea and PMs will be able to gauge interest in the idea and consider it for addition in a future release. Best wishes, Hannah
06 May 2024 10:10 AM - edited 06 May 2024 10:11 AM
Has this idea ever been submitted? What is the status? I don't think this feature is available?
Will this be something that will be introduced outside of Synthetics Classic?
07 May 2024 09:58 AM
Hi Marina,
can you confirm what functionality you are asking about? Browser Monitors have retry on error as an option already.
Are you referring to the suggestion about adding further extra executions?
"outside of the auto-retry by Dynatrace, such as by adding a test from multiple locations or shortening the interval from 15 minutes to 10 minutes, so as to execute more synthetic transactions than preferred, I would expect in these cases that DEM licensing would be impacted"