Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ES Archiver][Load Action] Add perf option override to cli (elastic#1…
…75781) ## Summary With the merge of elastic#174631, we've need of a follow up pr, to extend the performance override, to the command line interface. Also, modify the type of the performance option override, by making both the batch size and the concurrency optional. - With this change, if one or the other of the two options (batch size & concurrency) are not provided, the defaults are used. ### How to Test locally Start the server in one terminal, such as: `$ node scripts/functional_tests_server.js --config test/functional/apps/console/config.ts` Then in a second terminal: `$ node scripts/es_archiver.js load x-pack/test/functional/es_archives/logstash_functional --batch-size 300 --concurrency 2` #### Additional Testing (regarding only using one option or the other) _Just batch size_ `$ node scripts/es_archiver.js load x-pack/test/functional/es_archives/logstash_functional --batch-size 300` _Just concurrency_ `$ node scripts/es_archiver.js load x-pack/test/functional/es_archives/logstash_functional --concurrency 2` #### To Slow the Load Action Down (good for testing) Load an archive with very low numbers `node scripts/es_archiver.js load x-pack/test/functional/es_archives/logstash_functional --concurrency 1 --batch-size 10` You should see the progress indicator due to the forced latency ``` info [x-pack/test/functional/es_archives/logstash_functional] Created index "logstash-2015.09.20" info [x-pack/test/functional/es_archives/logstash_functional] Deleted existing index "logstash-2015.09.21" info [x-pack/test/functional/es_archives/logstash_functional] Created index "logstash-2015.09.21" info progress: 2940 info progress: 6040 info progress: 9380 info progress: 12451 info [x-pack/test/functional/es_archives/logstash_functional] Indexed 4634 docs into "logstash-2015.09.22" info [x-pack/test/functional/es_archives/logstash_functional] Indexed 4757 docs into "logstash-2015.09.20" info [x-pack/test/functional/es_archives/logstash_functional] Indexed 4614 docs into "logstash-2015.09.21" ``` --------- Co-authored-by: Robert Oskamp <[email protected]>
- Loading branch information