diff options
author | Ola Aunrønning <olaa@verizonmedia.com> | 2020-02-07 13:18:37 +0100 |
---|---|---|
committer | Ola Aunrønning <olaa@verizonmedia.com> | 2020-02-07 14:14:34 +0100 |
commit | 6165e307f376ce04e00fa712faebdb1369d2f54a (patch) | |
tree | 176e436b8f22e635ef424c649fa0e89f291f080c /searchcore | |
parent | b8a5d7e72ea6919a903e71e6f3bf553cd2494cc0 (diff) |
Removed query_setup_time averages in metric set. Added TODO comments for removing old metric
Diffstat (limited to 'searchcore')
3 files changed, 6 insertions, 5 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/matching/matcher.cpp b/searchcore/src/vespa/searchcore/proton/matching/matcher.cpp index b9d242b7765..630ac66f4f1 100644 --- a/searchcore/src/vespa/searchcore/proton/matching/matcher.cpp +++ b/searchcore/src/vespa/searchcore/proton/matching/matcher.cpp @@ -287,8 +287,8 @@ Matcher::match(const SearchRequest &request, vespalib::ThreadBundle &threadBundl numThreadsPerSearch, _rankSetup->getNumThreadsPerSearch(), estHits, reply->totalHitCount, request.ranking.c_str()); } - double querySetupTime = vespalib::to_s(total_matching_time.elapsed()) - my_stats.queryLatencyAvg() - my_stats.queryCollateralTime(querySetupTime); + double querySetupTime = vespalib::to_s(total_matching_time.elapsed()) - my_stats.queryLatencyAvg(); + my_stats.queryCollateralTime(querySetupTime); // TODO: Remove in Vespa 8 my_stats.querySetupTime(querySetupTime); { vespalib::duration duration = request.getTimeUsed(); diff --git a/searchcore/src/vespa/searchcore/proton/matching/matching_stats.cpp b/searchcore/src/vespa/searchcore/proton/matching/matching_stats.cpp index dd93cc7073d..8cc98816241 100644 --- a/searchcore/src/vespa/searchcore/proton/matching/matching_stats.cpp +++ b/searchcore/src/vespa/searchcore/proton/matching/matching_stats.cpp @@ -29,7 +29,7 @@ MatchingStats::MatchingStats() _softDoomed(0), _doomOvertime(), _softDoomFactor(INITIAL_SOFT_DOOM_FACTOR), - _queryCollateralTime(), + _queryCollateralTime(), // TODO: Remove in Vespa 8 _querySetupTime(), _queryLatency(), _matchTime(), @@ -70,7 +70,7 @@ MatchingStats::add(const MatchingStats &rhs) _softDoomed += rhs.softDoomed(); _doomOvertime.add(rhs._doomOvertime); - _queryCollateralTime.add(rhs._queryCollateralTime); + _queryCollateralTime.add(rhs._queryCollateralTime); // TODO: Remove in Vespa 8 _querySetupTime.add(rhs._querySetupTime); _queryLatency.add(rhs._queryLatency); _matchTime.add(rhs._matchTime); diff --git a/searchcore/src/vespa/searchcore/proton/matching/matching_stats.h b/searchcore/src/vespa/searchcore/proton/matching/matching_stats.h index d8e9eea67cf..6b533aab7e5 100644 --- a/searchcore/src/vespa/searchcore/proton/matching/matching_stats.h +++ b/searchcore/src/vespa/searchcore/proton/matching/matching_stats.h @@ -125,7 +125,7 @@ private: size_t _softDoomed; Avg _doomOvertime; double _softDoomFactor; - Avg _queryCollateralTime; + Avg _queryCollateralTime; // TODO: Remove in Vespa 8 Avg _querySetupTime; Avg _queryLatency; Avg _matchTime; @@ -169,6 +169,7 @@ public: double softDoomFactor() const { return _softDoomFactor; } MatchingStats &updatesoftDoomFactor(vespalib::duration hardLimit, vespalib::duration softLimit, vespalib::duration duration); + // TODO: Remove in Vespa 8 MatchingStats &queryCollateralTime(double time_s) { _queryCollateralTime.set(time_s); return *this; } double queryCollateralTimeAvg() const { return _queryCollateralTime.avg(); } size_t queryCollateralTimeCount() const { return _queryCollateralTime.count(); } |