Skip to content

Commit 6ed0a67

Browse files
authored
Merge c8aaf40 into d25e35f
2 parents d25e35f + c8aaf40 commit 6ed0a67

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

ydb/core/protos/counters_datashard.proto

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ enum ESimpleCounters {
1414
COUNTER_IMMEDIATE_TX_IN_FLY = 4 [(CounterOpts) = {Name: "ImmediateTxInFly"}];
1515
COUNTER_IMMEDIATE_TX_DELAYED = 5 [(CounterOpts) = {Name: "ImmediateTxDelayed"}];
1616
COUNTER_SCAN_TX_COMPLETE_LAG = 6 [(CounterOpts) = {Name: "ScanTxCompleteLag"}];
17-
COUNTER_PROPOSE_QUEUE_SIZE = 7 [(CounterOpts) = {Name: "ProposeQueueSize"}];
17+
COUNTER_TOTAL_PROPOSE_QUEUE_SIZE = 7 [(CounterOpts) = {Name: "TotalProposeQueueSize"}];
1818
COUNTER_SPLIT_SRC_WAIT_TX_IN_FLY = 8 [(CounterOpts) = {Name: "SplitSrcWaitTxInFly"}];
1919
COUNTER_SPLIT_SRC_WAIT_IMMEDIATE_TX_IN_FLY = 9 [(CounterOpts) = {Name: "SplitSrcWaitImmediateTxInFly"}];
2020
COUNTER_MVCC_STATE_CHANGE_WAIT_TX_IN_FLY = 10 [(CounterOpts) = {Name: "MvccStateChangeWaitTxInFly"}];
@@ -27,6 +27,10 @@ enum ESimpleCounters {
2727
COUNTER_CHANGE_RECORDS_REQUESTED = 17 [(CounterOpts) = {Name: "ChangeRecordsRequested"}];
2828
COUNTER_CHANGE_DELIVERY_LAG = 18 [(CounterOpts) = {Name: "ChangeDeliveryLag"}];
2929
COUNTER_CHANGE_DATA_LAG = 19 [(CounterOpts) = {Name: "ChangeDataLag"}];
30+
COUNTER_MEADIATOR_STATE_QUEUE_SIZE = 20 [(CounterOpts) = {Name: "MediatorStateQueueSize"}];
31+
COUNTER_PROPOSE_QUEUE_SIZE = 21 [(CounterOpts) = {Name: "ProposeQueueSize"}];
32+
COUNTER_DELAYED_PROPOSE_QUEUE_SIZE = 22 [(CounterOpts) = {Name: "DelayedProposeQueueSize"}];
33+
COUNTER_WAITING_TX_QUEUE_SIZE = 23 [(CounterOpts) = {Name: "WaitingTxQueueSize"}];
3034
}
3135

3236
enum ECumulativeCounters {

ydb/core/tx/datashard/datashard.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2868,8 +2868,12 @@ bool TDataShard::CheckDataTxRejectAndReply(const NEvents::TDataEvents::TEvWrite:
28682868
return false;
28692869
}
28702870
void TDataShard::UpdateProposeQueueSize() const {
2871-
SetCounter(COUNTER_PROPOSE_QUEUE_SIZE, MediatorStateWaitingMsgs.size() + ProposeQueue.Size() + DelayedProposeQueue.size() + Pipeline.WaitingTxs());
2871+
SetCounter(COUNTER_TOTAL_PROPOSE_QUEUE_SIZE, MediatorStateWaitingMsgs.size() + ProposeQueue.Size() + DelayedProposeQueue.size() + Pipeline.WaitingTxs());
28722872
SetCounter(COUNTER_READ_ITERATORS_WAITING, Pipeline.WaitingReadIterators());
2873+
SetCounter(COUNTER_MEADIATOR_STATE_QUEUE_SIZE, MediatorStateWaitingMsgs.size());
2874+
SetCounter(COUNTER_WAITING_TX_QUEUE_SIZE, Pipeline.WaitingTxs());
2875+
SetCounter(COUNTER_PROPOSE_QUEUE_SIZE, ProposeQueue.Size());
2876+
SetCounter(COUNTER_DELAYED_PROPOSE_QUEUE_SIZE, DelayedProposeQueue.size());
28732877
}
28742878

28752879
void TDataShard::Handle(TEvDataShard::TEvProposeTransaction::TPtr &ev, const TActorContext &ctx) {

0 commit comments

Comments
 (0)