Skip to content

Conversation

@nickva
Copy link
Contributor

@nickva nickva commented Mar 22, 2021

The indexer transaction time is decreased in order to allow enough time for the client to re-use the same GRV to emit doc bodies.

This PR goes along with another PR, where emitted doc bodies in a view responses now come from the same database read version as the one used by the indexer. Since the batcher previously used 4.5 seconds as the maximum, that left little time to read any doc bodies.

Issue: #3381

@nickva nickva force-pushed the decrease-indexer-transaction-time-limit branch from d04b2fb to e19587b Compare March 22, 2021 06:03
The indexer transaction time is decreased in order to allow enough
time for the client to re-use the same GRV to emit doc bodies.

This PR goes along with [1], where emitted doc bodies in a view
responses now come from the same database read version as the one used
by the indexer. Since the batcher previously used 4.5 seconds as the
maximum, that left little time to read any doc bodies.

[1]: #3391

Issue: #3381
@nickva nickva force-pushed the decrease-indexer-transaction-time-limit branch from e19587b to aa800e2 Compare March 22, 2021 15:45
@nickva nickva requested a review from kocolosk March 23, 2021 14:41
Copy link
Member

@kocolosk kocolosk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense. Curious to see how sensitive indexing throughput is to some of these parameters, but I'd expect cutting the transaction time down to 1.5 seconds will not be an issue at all.

@nickva
Copy link
Contributor Author

nickva commented Mar 23, 2021

The default behavior was characterized by @davisp during the initial PR for the new batcher: #3127 (comment)

During overload, especially if using a remote couch_eval instances like ateles, the retries or any slowdowns there would also be counted against the TX time, that is something to worry about.

@nickva nickva merged commit 0059b8f into main Mar 23, 2021
@nickva nickva deleted the decrease-indexer-transaction-time-limit branch March 23, 2021 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants