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

about build_size_bytes #3

Open
xiaoliang-samsung opened this issue Jul 11, 2013 · 1 comment
Open

about build_size_bytes #3

xiaoliang-samsung opened this issue Jul 11, 2013 · 1 comment

Comments

@xiaoliang-samsung
Copy link

bulkSize = XContentMapValues.nodeIntegerValue(indexSettings.get("bulk_size_bytes"), 10_1024_1024);

So if I input 10485760 as bulk size bytes ,the final bulk size would be 1?

@jatrost
Copy link
Contributor

jatrost commented Jul 15, 2013

If you put 10485760 as the bulk size, then the bulk size fetched from Kafka would be set to 10MB. This value controls the size passed in the FetchRequest to Kafka.

Ref:

  1. https://github.com/endgameinc/elasticsearch-river-kafka/blob/master/src/main/java/org/elasticsearch/river/kafka/KafkaClient.java#L101
  2. https://github.com/kafka-dev/kafka/blob/master/core/src/main/scala/kafka/api/FetchRequest.scala#L37

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

No branches or pull requests

2 participants