Peter Razumovsky a596a89457 Improve Elasticsearch scenario
1. Use NovaScenario parent for Elasticserch scenario and use
_boot_server method for creating server instead of client method.

2. Add server_boot_kwargs args for custom server boot, for example for
defining custom nic.

3. Add action to check server indexed.

4. Add variability flag - search elasticsearch by id or name.

5. Add additional_query arg for better and clarified query results.

Change-Id: Ic889def63bb6e8f535ac9e1aeed9b4f19e6f8823
2018-09-19 06:21:26 +00:00

76 lines
2.4 KiB
JSON

{% set flavor_name = flavor_name or "esc_test.small" %}
{% set image_name = image_name or "testVM" %}
{
"ElasticsearchLogging.log_instance": [
{
"args": {
"flavor": {
"name": "{{ flavor_name }}"
},
"image": {
"name": "{{ image_name }}"
},
"logging_vip": "10.0.0.5",
"elasticsearch_port": 5601,
"sleep_time": 5,
"retries_total": 30,
"additional_query": {
"must_not": [
{
"match_phrase": {
"Payload": "GET"
}
},
{
"match_phrase": {
"http_method": "GET"
}
}
],
"should": [
{
"range": {
"Timestamp": {
"gte": "now-2m",
"lte": "now"
}
}
}
],
"minimum_should_match": 1
}
},
"runner": {
"type": "constant",
"times": 10,
"concurrency": 1
},
"context": {
"users": {
"tenants": 1,
"users_per_tenant": 1
},
"flavors": [
{
"name": "{{ flavor_name }}",
"ram": 512,
"disk": 1,
"vcpus": 1
}
],
"images": {
"image_name": "{{ image_name }}",
"image_url": "http://download.cirros-cloud.net/0.3.5/cirros-0.3.5-x86_64-disk.img",
"disk_format": "qcow2",
"container_format": "bare",
"visibility": "public"
}
},
"sla": {
"failure_rate": {
"max": 0
}
}
}
]
}