Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
shnikd committed May 22, 2024
1 parent 7febf9d commit bc6284a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions ydb/core/kqp/rm_service/kqp_resource_info_exchanger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -632,10 +632,8 @@ class TKqpResourceInfoExchangerActor : public TActorBootstrapped<TKqpResourceInf
ui64 nodesCount = NodesState.size();
if (nodesCount >= 1000) {
ui64 nodesCount = NodesState.size();
if (nodesCount >= 1000) {
ui64 newCurrentDelay = (nodesCount * nodesCount) >> 11;
CurrentNodesDelay = std::max(CurrentNodesDelay, TDuration::MilliSeconds(newCurrentDelay));
}
ui64 newCurrentDelay = (nodesCount * nodesCount) >> 11;
CurrentNodesDelay = std::max(CurrentNodesDelay, TDuration::MilliSeconds(newCurrentDelay));
}
}

Expand Down Expand Up @@ -779,7 +777,7 @@ class TKqpResourceInfoExchangerActor : public TActorBootstrapped<TKqpResourceInf
TIntrusivePtr<TKqpCounters> Counters;
NKikimrConfig::TTableServiceConfig::TResourceManager::TInfoExchangerSettings Settings;

TDuration CurrentNodesDelay = TDuration::MilliSeconds(500);
TDuration CurrentNodesDelay = TDuration::Zero();
};

NActors::IActor* CreateKqpResourceInfoExchangerActor(TIntrusivePtr<TKqpCounters> counters,
Expand Down

0 comments on commit bc6284a

Please sign in to comment.