Skip to content
This repository has been archived by the owner on Jan 29, 2019. It is now read-only.

#82 Contract Summary Tx processing stucks #117

Merged
merged 2 commits into from
Apr 23, 2018

Conversation

arturalbov
Copy link
Contributor

Contract Summary Tx processing stucks.
max.poll.interval.ms & session.timeout.ms increased to 20000ms and 30000ms accordingly (with a large margin till we don't find appropriate values).
Added new metric called contract_summary_records_processing to check processing time of records batch. It needed for more accurate tune of max.poll.interval.ms & session.timeout.ms properties.

@arturalbov arturalbov requested a review from hleb-albau April 22, 2018 15:45
@@ -29,6 +29,8 @@ import org.springframework.kafka.listener.config.ContainerProperties
import org.springframework.transaction.annotation.EnableTransactionManagement

private const val MAX_POLL_RECORDS_CONFIG = 500
private const val MAX_POLL_INTERVAL_MS_CONFIG = 20000
Copy link
Contributor

Choose a reason for hiding this comment

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

default is 300000. but you change to 20000.

@@ -19,7 +19,8 @@ interface BitcoinUpdateContractSummaryRepository : ReactiveCrudRepository<CqlBit
fun findByHash(hash: String): Mono<CqlBitcoinContractSummary>

@Consistency(value = ConsistencyLevel.LOCAL_QUORUM)
fun findAllByHashIn(hashes: Iterable<String>): Flux<CqlBitcoinContractSummary>
fun findAllByHashIn(hashes: Iterable<String>): Flux<CqlBitcoinContractSummary> = Flux.fromIterable(hashes)
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove In on the function name end.

@hleb-albau hleb-albau merged commit 838174c into master Apr 23, 2018
@hleb-albau hleb-albau deleted the 82-contract-summary-stucks branch April 23, 2018 08:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants