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

Allow bulk configs to be overridable via mix tasks #26

Closed
imranismail opened this issue Apr 26, 2018 · 2 comments
Closed

Allow bulk configs to be overridable via mix tasks #26

imranismail opened this issue Apr 26, 2018 · 2 comments

Comments

@imranismail
Copy link

imranismail commented Apr 26, 2018

config :recommender, Recommender.Elasticsearch.Cluster,
  # When indexing data using the `mix elasticsearch.build` task,
  # control the data ingestion rate by raising or lowering the number
  # of items to send in each bulk request.
  bulk_page_size: 5000,

  # Likewise, wait a given period between posting pages to give
  # Elasticsearch time to catch up.
  # 15 seconds
  bulk_wait_interval: 15_000,

Something like this:

mix elasticsearch.build users --cluster Recommender.Elasticsearch.Cluster --wait-interval 15000 --page-size 5000

On top of that. Allowing it to be configured per index level would also be nice.

@imranismail
Copy link
Author

Wow that was fast!

Thank you @danielberkompas

@danielberkompas
Copy link
Owner

No problem! I released v0.4.0 with this change.

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