<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/couchdb.git/rel/files/eunit.ini, 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>Remove couch_rate</title>
<updated>2020-09-15T17:49:02+00:00</updated>
<author>
<name>Paul J. Davis</name>
<email>paul.joseph.davis@gmail.com</email>
</author>
<published>2020-09-03T18:28:19+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=15ff5802612bfd39f0cc6f4d7f0c3fd993552f7d'/>
<id>15ff5802612bfd39f0cc6f4d7f0c3fd993552f7d</id>
<content type='text'>
This implementation was difficult to understand and had behavior that
was too difficult to predict. It would break if view behavior changed in
significant ways from what was originally expected.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This implementation was difficult to understand and had behavior that
was too difficult to predict. It would break if view behavior changed in
significant ways from what was originally expected.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use `couch_rate` application for `couch_view`</title>
<updated>2020-04-02T10:41:40+00:00</updated>
<author>
<name>ILYA Khlopotov</name>
<email>iilyak@apache.org</email>
</author>
<published>2020-02-13T20:23:42+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=85f81d88018fe526f1f216d673a9bbc847cbd81c'/>
<id>85f81d88018fe526f1f216d673a9bbc847cbd81c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Implement a simple index auto-updater</title>
<updated>2020-03-09T19:10:34+00:00</updated>
<author>
<name>Nick Vatamaniuc</name>
<email>vatamane@apache.org</email>
</author>
<published>2020-03-08T05:03:15+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=02ca72ba34eb1768a631f12e34022464cf70278f'/>
<id>02ca72ba34eb1768a631f12e34022464cf70278f</id>
<content type='text'>
The main logic is as follows:

 - After doc update transaction(s) are completed in the `fabric2_db` module,
   call the `fabric2_index:db_updated(Db)` function.

 - `fabric2_index:db_updated(Db)` inserts a `{DbName, Timestamp}` tuple into
   one of the sharded ets tables. The tuple is inserted using `ets:insert_new`,
   which ensures only the first entry succeeds and others will be ignored,
   until that entry is cleared.

 - Each ets table in `fabric2_index` has a simple monitor process that
   periodically scans that table. If it finds databases which have been
   updated, it notifies all the indices which have registered with
   `fabric2_index` to build indices.

There are config settings to disable index auto-updating and to adjust the
delay interval, and the resolution. The interval specifies how long to wait
since the first time the db was modified. The resolution interval specifies how
often to check the ets tables.

Just like in the original ken, design documents can have an `"autoupdate":
false` option to disable auto-updating that design document only.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The main logic is as follows:

 - After doc update transaction(s) are completed in the `fabric2_db` module,
   call the `fabric2_index:db_updated(Db)` function.

 - `fabric2_index:db_updated(Db)` inserts a `{DbName, Timestamp}` tuple into
   one of the sharded ets tables. The tuple is inserted using `ets:insert_new`,
   which ensures only the first entry succeeds and others will be ignored,
   until that entry is cleared.

 - Each ets table in `fabric2_index` has a simple monitor process that
   periodically scans that table. If it finds databases which have been
   updated, it notifies all the indices which have registered with
   `fabric2_index` to build indices.

There are config settings to disable index auto-updating and to adjust the
delay interval, and the resolution. The interval specifies how long to wait
since the first time the db was modified. The resolution interval specifies how
often to check the ets tables.

Just like in the original ken, design documents can have an `"autoupdate":
false` option to disable auto-updating that design document only.
</pre>
</div>
</content>
</entry>
<entry>
<title>Enable port 5986 for test suites only</title>
<updated>2019-12-12T23:57:25+00:00</updated>
<author>
<name>Robert Newson</name>
<email>bob@rsn.io</email>
</author>
<published>2019-12-12T22:54:49+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=e37ebde5b0f519fdf3050b78487db6244b5024a3'/>
<id>e37ebde5b0f519fdf3050b78487db6244b5024a3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Stitch scheduling replicator together.</title>
<updated>2017-04-28T21:35:50+00:00</updated>
<author>
<name>Nick Vatamaniuc</name>
<email>vatamane@apache.org</email>
</author>
<published>2016-11-25T16:47:56+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=4841774575fb5771a245e5f046a26eaa7ac8dbb4'/>
<id>4841774575fb5771a245e5f046a26eaa7ac8dbb4</id>
<content type='text'>
Glue together all the scheduling replicator pieces.

Scheduler is the main component. It can run a large number of replication jobs
by switching between them, stopping and starting some periodically. Jobs
which fail are backed off exponentially. Normal (non-continuous) jobs will be
allowed to run to completion to preserve their current semantics.

Scheduler behavior can configured by these configuration options in
`[replicator]` sections:

 * `max_jobs` : Number of actively running replications. Making this too high
 could cause performance issues. Making it too low could mean replications jobs
 might not have enough time to make progress before getting unscheduled again.
 This parameter can be adjusted at runtime and will take effect during next
 reschudling cycle.

 * `interval` : Scheduling interval in milliseconds. During each reschedule
 cycle scheduler might start or stop up to "max_churn" number of jobs.

 * `max_churn` : Maximum number of replications to start and stop during
 rescheduling. This parameter along with "interval" defines the rate of job
 replacement. During startup, however a much larger number of jobs could be
 started (up to max_jobs) in short period of time.

Replication jobs are added to the scheduler by the document processor or from
the `couch_replicator:replicate/2` function when called from `_replicate` HTTP
endpoint handler.

Document processor listens for updates via couch_mutlidb_changes module then
tries to add replication jobs to the scheduler. Sometimes translating a
document update to a replication job could fail, either permantly (if document
is malformed and missing some expected fields for example) or temporarily if
it is a filtered replication and filter cannot be fetched. A failed filter
fetch will be retried with an exponential backoff.

couch_replicator_clustering is in charge of monitoring cluster membership
changes. When membership changes, after a configurable quiet period, a rescan
will be initiated. Rescan will shufle replication jobs to make sure a
replication job is running on only one node.

A new set of stats were added to introspect scheduler and doc processor
internals.

The top replication supervisor structure is `rest_for_one`. This means if
a child crashes, all children to the "right" of it will be restarted (if
visualized supervisor hierarchy as an upside-down tree). Clustering,
connection pool and rate limiter are towards the "left" as they are more
fundamental, if clustering child crashes, most other components will be
restart. Doc process or and multi-db changes children are towards the "right".
If they crash, they can be safely restarted without affecting already running
replication or components like clustering or connection pool.

Jira: COUCHDB-3324
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Glue together all the scheduling replicator pieces.

Scheduler is the main component. It can run a large number of replication jobs
by switching between them, stopping and starting some periodically. Jobs
which fail are backed off exponentially. Normal (non-continuous) jobs will be
allowed to run to completion to preserve their current semantics.

Scheduler behavior can configured by these configuration options in
`[replicator]` sections:

 * `max_jobs` : Number of actively running replications. Making this too high
 could cause performance issues. Making it too low could mean replications jobs
 might not have enough time to make progress before getting unscheduled again.
 This parameter can be adjusted at runtime and will take effect during next
 reschudling cycle.

 * `interval` : Scheduling interval in milliseconds. During each reschedule
 cycle scheduler might start or stop up to "max_churn" number of jobs.

 * `max_churn` : Maximum number of replications to start and stop during
 rescheduling. This parameter along with "interval" defines the rate of job
 replacement. During startup, however a much larger number of jobs could be
 started (up to max_jobs) in short period of time.

Replication jobs are added to the scheduler by the document processor or from
the `couch_replicator:replicate/2` function when called from `_replicate` HTTP
endpoint handler.

Document processor listens for updates via couch_mutlidb_changes module then
tries to add replication jobs to the scheduler. Sometimes translating a
document update to a replication job could fail, either permantly (if document
is malformed and missing some expected fields for example) or temporarily if
it is a filtered replication and filter cannot be fetched. A failed filter
fetch will be retried with an exponential backoff.

couch_replicator_clustering is in charge of monitoring cluster membership
changes. When membership changes, after a configurable quiet period, a rescan
will be initiated. Rescan will shufle replication jobs to make sure a
replication job is running on only one node.

A new set of stats were added to introspect scheduler and doc processor
internals.

The top replication supervisor structure is `rest_for_one`. This means if
a child crashes, all children to the "right" of it will be restarted (if
visualized supervisor hierarchy as an upside-down tree). Clustering,
connection pool and rate limiter are towards the "left" as they are more
fundamental, if clustering child crashes, most other components will be
restart. Doc process or and multi-db changes children are towards the "right".
If they crash, they can be safely restarted without affecting already running
replication or components like clustering or connection pool.

Jira: COUCHDB-3324
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix logging for eunit tests</title>
<updated>2016-07-22T10:26:40+00:00</updated>
<author>
<name>Paul J. Davis</name>
<email>paul.joseph.davis@gmail.com</email>
</author>
<published>2016-07-22T10:26:40+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=80dfcd5ef27abc5ff439996853c491d1eb670af4'/>
<id>80dfcd5ef27abc5ff439996853c491d1eb670af4</id>
<content type='text'>
I accidentally unsilenced sasl and kernel error loggers. This also adds
file logging for eunit tests when the logging is enabled.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I accidentally unsilenced sasl and kernel error loggers. This also adds
file logging for eunit tests when the logging is enabled.
</pre>
</div>
</content>
</entry>
<entry>
<title>Set default_security for the tests to everyone</title>
<updated>2016-05-25T15:20:00+00:00</updated>
<author>
<name>Eric Avdey</name>
<email>eiri@eiri.ca</email>
</author>
<published>2016-05-25T15:20:00+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=4d49de6fa9202be439b2ec6256239e9578fa358a'/>
<id>4d49de6fa9202be439b2ec6256239e9578fa358a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>chttpd should use random port for tests</title>
<updated>2015-09-29T17:02:56+00:00</updated>
<author>
<name>Alexander Shorin</name>
<email>kxepal@apache.org</email>
</author>
<published>2015-09-29T16:56:08+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=12b4c2592b83cb7f5ced81ebe5f0c810e15e0eef'/>
<id>12b4c2592b83cb7f5ced81ebe5f0c810e15e0eef</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't include eunit.ini into release</title>
<updated>2015-05-11T12:49:35+00:00</updated>
<author>
<name>ILYA Khlopotov</name>
<email>iilyak@ca.ibm.com</email>
</author>
<published>2015-05-11T12:49:35+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=9c23a065dd30577aed887b2e371a23e9557d4fcb'/>
<id>9c23a065dd30577aed887b2e371a23e9557d4fcb</id>
<content type='text'>
COUCHDB-2684
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
COUCHDB-2684
</pre>
</div>
</content>
</entry>
</feed>
