You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ch...@apache.org on 2025/06/27 19:37:00 UTC
(couchdb-ioq) branch couch-stats-resource-tracker updated (35c8e84 -> 6dd727d)
This is an automated email from the ASF dual-hosted git repository.
chewbranca pushed a change to branch couch-stats-resource-tracker
in repository https://gitbox.apache.org/repos/asf/couchdb-ioq.git
discard 35c8e84 Increment csrt ioq called
add 8fd9ce2 Add ioq:bypass/2 API
add e0f9ba4 Make sure to handle `other` priority in ioq's new bypass/2 API
new 6dd727d Increment csrt ioq called
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (35c8e84)
\
N -- N -- N refs/heads/couch-stats-resource-tracker (6dd727d)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
src/ioq.erl | 8 +-
src/ioq_server.erl | 28 +++---
src/ioq_server2.erl | 27 +++---
test/ioq_config_tests.erl | 228 +++++++++++++++++++++++++---------------------
4 files changed, 166 insertions(+), 125 deletions(-)
(couchdb-ioq) 01/01: Increment csrt ioq called
Posted by ch...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
chewbranca pushed a commit to branch couch-stats-resource-tracker
in repository https://gitbox.apache.org/repos/asf/couchdb-ioq.git
commit 6dd727d1fdd55a9e3826109384f9a27e6cadcbe0
Author: Russell Branca <ch...@apache.org>
AuthorDate: Tue Feb 13 16:58:42 2024 -0800
Increment csrt ioq called
---
src/ioq.erl | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/ioq.erl b/src/ioq.erl
index fed2290..eb55316 100644
--- a/src/ioq.erl
+++ b/src/ioq.erl
@@ -53,12 +53,16 @@ call(Pid, {prompt, _} = Msg, Priority) ->
call(Pid, {data, _} = Msg, Priority) ->
ioq_osq:call(Pid, Msg, Priority);
call(Fd, Msg, Priority) ->
+ %% TODO: should this key off of existing couch_stats like most things?
+ %% TODO: if so, which set of IOQ fields and to what granularity?
+ couch_stats_resource_tracker:ioq_called(),
case ioq2_enabled() of
false -> ioq_server:call(Fd, Msg, Priority);
true -> ioq_server2:call(Fd, Msg, Priority)
end.
call_search(Fd, Msg, Priority) ->
+ couch_stats_resource_tracker:ioq_called(), %% TODO: flag as search
case ioq2_enabled() of
false -> ioq_server:call(Fd, Msg, Priority);
true -> ioq_server2:call_search(Fd, Msg, Priority)