Skip to content

Commit

Permalink
[CONTP-547] reduce language detection refresh period to 1 minute (#1336)
Browse files Browse the repository at this point in the history
  • Loading branch information
adel121 authored Jan 3, 2025
1 parent b59b3db commit 4850a5c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions components/datadog/agent/kubernetes_helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,17 @@ func buildLinuxHelmValues(baseName, agentImagePath, agentImageTag, clusterAgentI
},
"containers": pulumi.Map{
"agent": pulumi.Map{
"env": pulumi.StringMapArray{
pulumi.StringMap{
// TODO: remove this environment variable override once a retry mechanism is added to the language detection client
//
// the refresh period is reduced to 1 minute because the language detection client doesn't implement a retry mechanism
// if the cluster agent is not available when the client tries to send the first detected language, the language will only
// be sent again after 20 minutes (default refresh period). This causes E2E to fail since it only waits 5 minutes.
"name": pulumi.String("DD_LANGUAGE_DETECTION_REPORTING_REFRESH_PERIOD"),
"value": pulumi.String("1m"),
},
},
"resources": pulumi.StringMapMap{
"requests": pulumi.StringMap{
"cpu": pulumi.String("400m"),
Expand Down

0 comments on commit 4850a5c

Please sign in to comment.