Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make the kafka producer single threaded for the OpenSearchBulkIngestApi #705

Merged
merged 3 commits into from
Oct 23, 2023

Conversation

vthacker
Copy link
Contributor

Summary

In the current design of OpenSearchBulkIngestApi , we create one transaction producer. This means if every /_bulk request creates it's own thread ( which it does today ) and calls produceDocuments there will be many parallel transactions that we try creating from 1 producer instance.

This is not supported by Kafka. So this PR makes the write into kafka single threaded. We will work on a making it the producing to kafka multi-threaded

@vthacker vthacker force-pushed the vthacker_make_producer_single_threaded branch from c238777 to 7a2437f Compare October 23, 2023 17:03
@vthacker vthacker force-pushed the vthacker_make_producer_single_threaded branch from 7a2437f to 146df94 Compare October 23, 2023 17:04
@vthacker vthacker force-pushed the vthacker_make_producer_single_threaded branch 4 times, most recently from 3cf0916 to 0aed86f Compare October 23, 2023 17:47
@vthacker vthacker force-pushed the vthacker_make_producer_single_threaded branch from 0aed86f to 88a3ca8 Compare October 23, 2023 17:50
@vthacker vthacker merged commit 18a325f into master Oct 23, 2023
2 checks passed
@vthacker vthacker deleted the vthacker_make_producer_single_threaded branch October 23, 2023 18:34
@bryanlb bryanlb added this to the Bulk ingest support milestone Oct 30, 2023
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