Przeglądaj źródła

Reduce spot price auth failure logging (#3852)

Signed-off-by: thomasvn <thomasvn.dev@gmail.com>
Signed-off-by: Thomas Nguyen <thomasvn.dev@gmail.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Thomas Nguyen 1 dzień temu
rodzic
commit
15a76fa6d3
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      pkg/cloud/aws/provider.go

+ 3 - 3
pkg/cloud/aws/provider.go

@@ -1352,7 +1352,7 @@ func (aws *AWS) spotPricingFromHistory(k models.Key) (*SpotPriceHistoryEntry, bo
 
 
 	price, err := aws.SpotPriceHistoryCache.GetSpotPrice(region, instanceType, availabilityZone)
 	price, err := aws.SpotPriceHistoryCache.GetSpotPrice(region, instanceType, availabilityZone)
 	if err != nil {
 	if err != nil {
-		log.DedupedWarningf(10, "Failed to get spot price history for instance %s: %s", k.ID(), err.Error())
+		log.Debugf("Failed to get spot price history for instance %s: %s", k.ID(), err.Error())
 		return nil, false
 		return nil, false
 	}
 	}
 	return price, true
 	return price, true
@@ -1483,7 +1483,7 @@ func (aws *AWS) createNode(terms *AWSProductTerms, usageType string, k models.Ke
 			UsageType:    PreemptibleType,
 			UsageType:    PreemptibleType,
 		}, meta, nil
 		}, meta, nil
 	} else if aws.isPreemptible(key) { // Preemptible but we don't have any data in the pricing report.
 	} else if aws.isPreemptible(key) { // Preemptible but we don't have any data in the pricing report.
-		log.DedupedWarningf(5, "Node %s marked preemptible but no spot feed data available; falling back to other pricing sources", k.ID())
+		log.Debugf("Node %s marked preemptible but no spot feed data available; falling back to other pricing sources", k.ID())
 
 
 		// Try to get spot pricing from DescribeSpotPriceHistory API
 		// Try to get spot pricing from DescribeSpotPriceHistory API
 		if historyEntry, ok := aws.spotPricingFromHistory(k); ok {
 		if historyEntry, ok := aws.spotPricingFromHistory(k); ok {
@@ -1505,7 +1505,7 @@ func (aws *AWS) createNode(terms *AWSProductTerms, usageType string, k models.Ke
 
 
 		if publicPricingFound {
 		if publicPricingFound {
 			// return public price if found
 			// return public price if found
-			log.DedupedWarningf(5, "No spot price history available for %s, falling back to on-demand pricing", k.ID())
+			log.Debugf("No spot price history available for %s, falling back to on-demand pricing", k.ID())
 			return &models.Node{
 			return &models.Node{
 				Cost:         cost,
 				Cost:         cost,
 				VCPU:         terms.VCpu,
 				VCPU:         terms.VCpu,