<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/couchdb.git/src/couch_stats, branch decrease-indexer-transaction-time-limit</title>
<subtitle>github.com: apache/couchdb.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/'/>
<entry>
<title>Add format_status/2 callback in gen_server implementations</title>
<updated>2020-07-30T12:10:08+00:00</updated>
<author>
<name>ILYA Khlopotov</name>
<email>iilyak@apache.org</email>
</author>
<published>2020-07-23T15:05:12+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=97e7a95c3c25c1ece7db25ee87e6476ba0a11282'/>
<id>97e7a95c3c25c1ece7db25ee87e6476ba0a11282</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>feat: simplify code</title>
<updated>2019-11-18T11:02:04+00:00</updated>
<author>
<name>Jan Lehnardt</name>
<email>jan@apache.org</email>
</author>
<published>2019-09-25T09:03:38+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=a8f3ad9d8ca7dc9c12ad22baf188eb76f66e27c3'/>
<id>a8f3ad9d8ca7dc9c12ad22baf188eb76f66e27c3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>feat: use more efficient erlang:send_after() function</title>
<updated>2019-11-18T11:02:04+00:00</updated>
<author>
<name>Jan Lehnardt</name>
<email>jan@apache.org</email>
</author>
<published>2019-09-25T09:01:48+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=99b9cc3425c79dfd7e1078eb6680d1db509bc3a3'/>
<id>99b9cc3425c79dfd7e1078eb6680d1db509bc3a3</id>
<content type='text'>
c.f. http://erlang.org/doc/efficiency_guide/commoncaveats.html#timer-module

h/t @kocolosk
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
c.f. http://erlang.org/doc/efficiency_guide/commoncaveats.html#timer-module

h/t @kocolosk
</pre>
</div>
</content>
</entry>
<entry>
<title>feat: do not run stats aggregations on an interval</title>
<updated>2019-09-20T08:49:16+00:00</updated>
<author>
<name>Jan Lehnardt</name>
<email>jan@apache.org</email>
</author>
<published>2019-09-19T10:01:53+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=aa311b8cd7ac6e2c8cfe8757d2e39e020b153997'/>
<id>aa311b8cd7ac6e2c8cfe8757d2e39e020b153997</id>
<content type='text'>
Similar to 448be7996999a706464d8f7429a56dc9e9c87c3a (hello 0.10.1),
`timer:{send,apply}_interval()` will apply functions / send messages
for all intervals that match the time that a machine was in sleep /
hibernation mode that is common on desktop systems.

In a typical office scneario, a laptop system that sleeps over a
weekend , when woken up on a monday, issue thousands of function
calls, that together with other, unrelated wake-up activity, make
a machine top out its CPU for no good reason.

The change addresses this by instead of relying on an interval to
start a given task, on startup, start the task once after a timeout,
and then start a fresh timer after the task is done.

Other than the 0.10-era patch, this one does not account for a system
waking up before the timeout. I’m happy to add that behaviour, if a
reviewer insists on it.

As a result, no matter how long the sleep period is, we only run
the desired function _once_ after we wake up again. In the never-
sleep scenario, the existing behaviour is retained.

This might impact metrics that have a time component, but I think
that’s a fair compromise, so I didn’t investigate that further.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Similar to 448be7996999a706464d8f7429a56dc9e9c87c3a (hello 0.10.1),
`timer:{send,apply}_interval()` will apply functions / send messages
for all intervals that match the time that a machine was in sleep /
hibernation mode that is common on desktop systems.

In a typical office scneario, a laptop system that sleeps over a
weekend , when woken up on a monday, issue thousands of function
calls, that together with other, unrelated wake-up activity, make
a machine top out its CPU for no good reason.

The change addresses this by instead of relying on an interval to
start a given task, on startup, start the task once after a timeout,
and then start a fresh timer after the task is done.

Other than the 0.10-era patch, this one does not account for a system
waking up before the timeout. I’m happy to add that behaviour, if a
reviewer insists on it.

As a result, no matter how long the sleep period is, we only run
the desired function _once_ after we wake up again. In the never-
sleep scenario, the existing behaviour is retained.

This might impact metrics that have a time component, but I think
that’s a fair compromise, so I didn’t investigate that further.
</pre>
</div>
</content>
</entry>
<entry>
<title>Switching `couch_stats_process_tracker:track/2` argument names</title>
<updated>2018-03-06T22:29:31+00:00</updated>
<author>
<name>gesberger</name>
<email>gavin.esberger@gmail.com</email>
</author>
<published>2018-03-06T20:58:31+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=0464c46d180b535179893b5a037ee834466acef5'/>
<id>0464c46d180b535179893b5a037ee834466acef5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add couch_stats tracking back to couch_log (#1064)</title>
<updated>2017-12-15T02:28:19+00:00</updated>
<author>
<name>Peng Hui Jiang</name>
<email>jiangph@cn.ibm.com</email>
</author>
<published>2017-12-15T02:28:19+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=beb87817f7dfaeb9ce2763147ddde9d6d29ffc6e'/>
<id>beb87817f7dfaeb9ce2763147ddde9d6d29ffc6e</id>
<content type='text'>
issue #832</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
issue #832</pre>
</div>
</content>
</entry>
<entry>
<title>Make stats interval into config parameter (#830)</title>
<updated>2017-09-25T20:04:38+00:00</updated>
<author>
<name>Eric Avdey</name>
<email>eiri@eiri.ca</email>
</author>
<published>2017-09-25T20:04:38+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=3b8b9a3f4e778b20bbffcaa91c86993d6a64452f'/>
<id>3b8b9a3f4e778b20bbffcaa91c86993d6a64452f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add 'src/couch_stats/' from commit '7895d4d3f509ed24f09b6d1a0bd0e06af34551dc'</title>
<updated>2017-04-01T17:38:46+00:00</updated>
<author>
<name>Jan Lehnardt</name>
<email>jan@apache.org</email>
</author>
<published>2017-04-01T17:38:46+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=33154509df765345c889ee9c28c8f116a56d8c10'/>
<id>33154509df765345c889ee9c28c8f116a56d8c10</id>
<content type='text'>
git-subtree-dir: src/couch_stats
git-subtree-mainline: 6368e92b6dc0bc4197fa9bcac64af77a9c4887fe
git-subtree-split: 7895d4d3f509ed24f09b6d1a0bd0e06af34551dc
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
git-subtree-dir: src/couch_stats
git-subtree-mainline: 6368e92b6dc0bc4197fa9bcac64af77a9c4887fe
git-subtree-split: 7895d4d3f509ed24f09b6d1a0bd0e06af34551dc
</pre>
</div>
</content>
</entry>
</feed>
