File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed
ydb/library/yql/dq/actors/spilling Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ TSpillingCounters::TSpillingCounters(const TIntrusivePtr<::NMonitoring::TDynamic
11
11
SpillingNoSpaceErrors = counters->GetCounter (" Spilling/NoSpaceErrors" , true );
12
12
SpillingIoErrors = counters->GetCounter (" Spilling/IoErrors" , true );
13
13
SpillingFileDescriptors = counters->GetCounter (" Spilling/FileDescriptors" , false );
14
+ SpillingIOQueueSize = counters->GetCounter (" Spilling/IOQueueSize" , false );
14
15
}
15
16
16
17
} // namespace NYql::NDq
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ struct TSpillingCounters : public TThrRefBase {
18
18
::NMonitoring::TDynamicCounters::TCounterPtr SpillingNoSpaceErrors;
19
19
::NMonitoring::TDynamicCounters::TCounterPtr SpillingIoErrors;
20
20
::NMonitoring::TDynamicCounters::TCounterPtr SpillingFileDescriptors;
21
+ ::NMonitoring::TDynamicCounters::TCounterPtr SpillingIOQueueSize;
21
22
};
22
23
23
24
struct TSpillingTaskCounters : public TThrRefBase {
Original file line number Diff line number Diff line change @@ -712,6 +712,7 @@ class TDqLocalFileSpillingService : public TActorBootstrapped<TDqLocalFileSpilli
712
712
TAG (TH2) { s << " Active files" ; }
713
713
PRE () { s << " Used space: " << TotalSize_ << Endl; }
714
714
PRE () { s << " Used file descriptors: " << Counters_->SpillingFileDescriptors ->Val () << Endl; }
715
+ PRE () { s << " IO queue size: " << Counters_->SpillingIOQueueSize ->Val () << Endl; }
715
716
716
717
for (const auto & tx : byTx) {
717
718
TAG (TH2) { s << " Transaction " << tx.first ; }
@@ -824,6 +825,7 @@ class TDqLocalFileSpillingService : public TActorBootstrapped<TDqLocalFileSpilli
824
825
825
826
fd.HasActiveOp = true ;
826
827
828
+ Counters_->SpillingIOQueueSize ->Set (IoThreadPool_->Size () + 1 );
827
829
return IoThreadPool_->AddAndOwn (std::move (op));
828
830
}
829
831
You can’t perform that action at this time.
0 commit comments