@@ -424,21 +424,6 @@ func (p *pool) ReconcilePool() *worker.WarmPoolJob {
424424 len (p .usedResources ), "pending create" , p .pendingCreate , "pending delete" , p .pendingDelete ,
425425 "cool down queue" , len (p .coolDownQueue ), "total resources" , totalCreatedResources , "capacity" , p .capacity )
426426
427- p .log .V (1 ).Info (
428- "Reconciling pool" ,
429- "isPDPool" , p .isPDPool ,
430- "reSyncRequired" , p .reSyncRequired ,
431- "minIPTarget" , p .warmPoolConfig .MinIPTarget ,
432- "warmIPTarget" , p .warmPoolConfig .WarmIPTarget ,
433- "numWarmResources" , numWarmResources ,
434- "used resouces" , len (p .usedResources ),
435- "cool down queue" , len (p .coolDownQueue ),
436- "total resources" , totalCreatedResources ,
437- "pendingCreate" , p .pendingCreate ,
438- "pendingDelete" , p .pendingDelete ,
439- "capacity" , p .capacity ,
440- )
441-
442427 if p .reSyncRequired {
443428 // If Pending operations are present then we can't re-sync as the upstream
444429 // and pool could change during re-sync
@@ -745,7 +730,6 @@ func (p *pool) calculateSecondaryIPDeviation() int {
745730
746731 // warm pool is in draining state, set targets to zero
747732 if p .warmPoolConfig .DesiredSize == 0 {
748- p .log .V (1 ).Info ("DesiredSize is zero, warmPool is in draining state" )
749733 p .warmPoolConfig .WarmIPTarget = 0
750734 p .warmPoolConfig .MinIPTarget = 0
751735 p .warmPoolConfig .WarmPrefixTarget = 0
@@ -755,22 +739,14 @@ func (p *pool) calculateSecondaryIPDeviation() int {
755739 isWarmIPTargetInvalid := p .warmPoolConfig .WarmIPTarget < 0
756740 // Handle scenario where MinIPTarget is configured to negative integer which is invalid
757741 if isMinIPTargetInvalid {
758- p .log .V (1 ).Info (
759- "MinIPTarget value is invalid negative integer, setting MinIPTarget to default" ,
760- "IPv4DefaultWinMinIPTarget" , config .IPv4DefaultWinMinIPTarget ,
761- )
762742 p .warmPoolConfig .MinIPTarget = config .IPv4DefaultWinMinIPTarget
763743 }
764744 // Handle scenario where WarmIPTarget is configured to negative integer which is invalid
765745 if isWarmIPTargetInvalid {
766- p .log .V (1 ).Info (
767- "WarmIPTarget value is invalid negative integer, setting warmIPTarget to default" ,
768- "IPv4DefaultWinWarmIPTarget" , config .IPv4DefaultWinWarmIPTarget ,
769- )
770746 p .warmPoolConfig .WarmIPTarget = config .IPv4DefaultWinWarmIPTarget
771747 }
772748
773- availableResources := numWarmResources + p .pendingCreate - p . pendingDelete
749+ availableResources := numWarmResources + p .pendingCreate
774750
775751 // Calculate how many IPs we're short of the warm target
776752 resourcesShort := max (p .warmPoolConfig .WarmIPTarget - availableResources , 0 )
@@ -787,19 +763,6 @@ func (p *pool) calculateSecondaryIPDeviation() int {
787763 // The final deviation is the difference between short and over
788764 deviation := resourcesShort - resourcesOver
789765
790- p .log .V (1 ).Info (
791- "Finished calculating IP deviation for secondary IP pool" ,
792- "minIPTarget" , p .warmPoolConfig .MinIPTarget ,
793- "warmIPTarget" , p .warmPoolConfig .WarmIPTarget ,
794- "numWarmResources" , numWarmResources ,
795- "numUsedResources" , numUsedResources ,
796- "numAssigned" , numAssignedResources ,
797- "availableResources" , availableResources ,
798- "resourcesShort" , resourcesShort ,
799- "resourcesOver" , resourcesOver ,
800- "deviationResult" , deviation ,
801- )
802-
803766 return deviation
804767}
805768
0 commit comments