# How can change the bulk size with geonames

**URL:** <https://discuss.elastic.co/t/how-can-change-the-bulk-size-with-geonames/94594>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [July 26, 2017, 8:20am UTC](https://discuss.elastic.co/t/how-can-change-the-bulk-size-with-geonames/94594 "2017-07-26T08:20:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [July 26, 2017, 8:20am UTC](https://discuss.elastic.co/t/how-can-change-the-bulk-size-with-geonames/94594/1 "2017-07-26T08:20:20Z")

</div>

@danielmitterdorfer  
how can change the bulk size with geonames  
when i change about .rally/benchmarks/tracks/default/geonames/operations/default.json  
i wan't change "bulk-size": 5000 to 10000,but when i change it  
i can't running esrally  
**error: Your local changes to the following files would be overwritten by checkout:**  
\*\* geonames/operations/default.json\*\*  
**Please, commit your changes or stash them before you can switch branches.**  
**Aborting**  
**[ERROR] Cannot race. Cannot update track data in [/root/.rally/benchmarks/tracks/default].**  
how can change the default bulk size

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [July 26, 2017, 8:58am UTC](https://discuss.elastic.co/t/how-can-change-the-bulk-size-with-geonames/94594/2 "2017-07-26T08:58:24Z")

</div>

Hi @zqc0512,

Rally tracks are fully versioned so Rally can support benchmarking any version of Elasticsearch between 1.x and the latest master version:

```auto
daniel@io:tracks/default ‹master›$ git branch -r
  origin/1
  origin/2
  origin/5
  origin/HEAD -> origin/master
  origin/master

```

So you can see that there exist multiple branches to support that. Rally will check which version of Elasticsearch you want to benchmark (it will use what you've provided via the `--distribution-version` command line parameter) and tries to find the best branch. Some examples:

- For 2.4.4 it will find that the best match is the branch "2" and check that one out.
- For 5.5.0 it will use "5"

This brings me now to your problem: I assume you made your changes on the master branch but Rally has detected that it needs to switch branches because e.g. you're benchmarking Elasticsearch 2.4.5. When attempting to switch branches it detects that you have uncommitted changes and refuses to continue. To avoid that you should make your changes on the branches that you're interested in. That means:

- If you want to benchmark 1.x: make your changes on branch "1"
- If you want to benchmark 2.x: make your changes on branch "2"

and so on.

I recommend that you fork the official repository and work in your fork. Then you can also commit and push changes as you see fit. For further information please check the [docs about custom track repositories](http://esrally.readthedocs.io/en/latest/adding_tracks.html#custom-track-repositories).

Daniel

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [July 26, 2017, 9:01am UTC](https://discuss.elastic.co/t/how-can-change-the-bulk-size-with-geonames/94594/3 "2017-07-26T09:01:19Z")

</div>

You can now add additional files in the `operations` and `challenges` directories and have these loaded on startup. You could therefore create a new file under operations that contain the indexing operation with a different bulk size and then reference this from a new custom challenge created based on the existing one.

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [July 26, 2017, 9:03am UTC](https://discuss.elastic.co/t/how-can-change-the-bulk-size-with-geonames/94594/4 "2017-07-26T09:03:45Z")

</div>

@Christian_Dahlqvist raises a good point here to which I agree. This is definitely recommended practice. See the [eventdata track](https://github.com/elastic/rally-eventdata-track/tree/master/eventdata) for an example how this can be implemented in practice.

Daniel

---

<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:** [August 23, 2017, 9:03am UTC](https://discuss.elastic.co/t/how-can-change-the-bulk-size-with-geonames/94594/5 "2017-08-23T09:03:47Z")

</div>

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