# Document updates in ES rally scenarious

**URL:** <https://discuss.elastic.co/t/document-updates-in-es-rally-scenarious/250656>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [October 1, 2020, 11:21am UTC](https://discuss.elastic.co/t/document-updates-in-es-rally-scenarious/250656 "2020-10-01T11:21:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![111391](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111391/32/76523_2.png) [@111391](https://discuss.elastic.co/u/111391)\
**Post date:** [October 1, 2020, 11:21am UTC](https://discuss.elastic.co/t/document-updates-in-es-rally-scenarious/250656/1 "2020-10-01T11:21:18Z")

</div>

Hello guys,  
I'm going to create load tests and I'd like to understand whether implementing my use case is possible via esrally. Basically what I'd like to emulate scenario where I create documents and then update them in single scenario. Do you know if it's possible? How can I pass document id for updates and things like that?

---

<div class="post-metadata">

**Author:** ![Dale\_McDiarmid](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dale_mcdiarmid/32/74184_2.png) [@Dale\_McDiarmid](https://discuss.elastic.co/u/Dale_McDiarmid)\
**Post date:** [October 5, 2020, 8:15pm UTC](https://discuss.elastic.co/t/document-updates-in-es-rally-scenarious/250656/2 "2020-10-05T20:15:49Z")

</div>

Hi  
Firstly the [bulk operation](https://esrally.readthedocs.io/en/stable/track.html#bulk) does support the ability to update documents that have been indexed. This is configured through the parameters `conflicts` and `conflict-probability`. You can modify how often these updates are biased to recent data through the parameter `recency` - caution that impacting older documents will cause greater merge pressure thus increase disk io requirements.

If you need to build your own track, consider consulting the existing [tracks which expose this parameter](https://github.com/elastic/rally-tracks/search?p=1&q=conflict-probability) for inspiration. The event data track [bulk update challenge](https://github.com/elastic/rally-eventdata-track/blob/e23b994e69b7b3ff8b0d386aa3b9a0a37f3e597d/eventdata/challenges/bulk-update.json#L28-L29) also provides an update scenario but exposes some complexity behind a custom parameter source [1](https://github.com/elastic/rally-eventdata-track/blob/e23b994e69b7b3ff8b0d386aa3b9a0a37f3e597d/eventdata/challenges/bulk-update.json#L26) [2](https://esrally.readthedocs.io/en/stable/adding_tracks.html#custom-parameter-sources) [3](https://github.com/elastic/rally-eventdata-track/blob/e23b994e69b7b3ff8b0d386aa3b9a0a37f3e597d/eventdata/parameter_sources/elasticlogs_bulk_source.py).  
Thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 2, 2020, 8:16pm UTC](https://discuss.elastic.co/t/document-updates-in-es-rally-scenarious/250656/3 "2020-11-02T20:16:19Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
