You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2022/08/02 08:22:29 UTC
[GitHub] [skywalking] wu-sheng commented on a diff in pull request #9416: Elasticsearch storage support merge all metrics/meter indices into one physical index
wu-sheng commented on code in PR #9416:
URL: https://github.com/apache/skywalking/pull/9416#discussion_r935260124
##########
docs/en/setup/backend/backend-storage.md:
##########
@@ -49,6 +49,12 @@ Since 8.8.0, SkyWalking rebuilds the ElasticSearch client on top of ElasticSearc
correct request formats according to the server-side version, hence you don't need to download different binaries
and don't need to configure different storage selectors for different ElasticSearch server-side versions anymore.
+Since 9.2.0, SkyWalking support merge all metrics/meter indices into one physical index `metrics-all`.
+Provide config `SW_STORAGE_ES_LOGIC_SHARDING` to sharding metrics indices into multi physical indices as previous version, but disabled by default.
+If disabled, all metrics will persist in one physical index, to reduce the number of physical indices.
+If enabled, the metrics will persist in multi physical indices according to their model index name and aggregation function name,
+the metrics which has the same aggregation function name will persist in one physical index.
Review Comment:
```suggestion
Since 9.2.0, SkyWalking merges all metrics/meter indices into one physical index template `metrics-all` on the default setting.
Provide system environment variable(`SW_STORAGE_ES_LOGIC_SHARDING`) to shard metrics indices into multi-physical indices as the previous versions(one index template per metric/meter aggregation function).
In the current one index mode, users still could choose to adjust ElasticSearch's shard number(`SW_STORAGE_ES_INDEX_SHARDS_NUMBER`) to scale out.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org