forked from logzio/elasticsearch-stress-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
31 lines (27 loc) · 778 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
# documentation
# https://github.com/logzio/elasticsearch-stress-test
indices=5
documents=2
clients=10
seconds=900
shards=4
replicas=1
bulk_size=500
max_fields_per_doc=50
max_size_per_field=500
stats_frequency=30
host=your-host.com
username=shield_username
password=shield_password
python elasticsearch-stress-test.py --es_address $host \
--indices $indices --documents $documents \
--clients $clients --seconds $seconds \
--number-of-shards $shards \
--number-of-replicas $replicas \
--bulk-size $bulk_size \
--max-fields-per-document $max_fields_per_doc \
--max-size-per-field $max_size_per_field \
--stats-frequency $stats_frequency \
--username $username \
--password $password