opensearch-benchmark icon indicating copy to clipboard operation
opensearch-benchmark copied to clipboard

Create-Workload Improvements: Add Default Index Settings for Index.json

Open IanHoang opened this issue 10 months ago • 1 comments

When OSB creates a custom workload, the index.json only includes mappings from the referenced index and does not include default settings for index settings.

Each index.json should include default index settings. Example:

  "settings": {
    "index.number_of_shards": {{number_of_shards | default(1)}},
    "index.number_of_replicas": {{number_of_replicas | default(0)}},
    "index.queries.cache.enabled": {{query_cache_enabled | default(false) | tojson}},
    "index.requests.cache.enable": {{requests_cache_enabled | default(false) | tojson}}
  },

IanHoang avatar Apr 01 '24 21:04 IanHoang

Added it to this RFC https://github.com/opensearch-project/opensearch-benchmark/issues/395

IanHoang avatar Apr 01 '24 21:04 IanHoang