Modify log and APM ES Index#410
Merged
Merged
Conversation
2018.10.11 merge
1.日志、调用链、重调用链、线程分析分别用一个索引,由按周改为按天滚动。 2.日志索引的分片由2改为5,所有索引(日志、APM)的副本由0改为1。 3.索引改为按天滚动后之前24小时内的查询涉及两个索引,故改为当天查询。 4.日志、重调用链原索引与appid有关,修改后插入和查询时增加appid,且appid的type设为keyword
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
1.日志、调用链、重调用链、线程分析分别用一个索引,由按周改为按天滚动。
2.日志索引的分片由2改为5,所有索引(日志、APM)的副本由0改为1。
3.索引改为按天滚动后之前24小时内的查询涉及两个索引,故改为当天查询。
4.日志、重调用链原索引与appid有关,修改后插入和查询时增加appid,且appid的type设为keyword
具体索引修改如下:
1)日志
原索引:applog_appid_yyyy-MM-dd,现索引:uav_applog_yyyy-MM-dd
原索引与appid有关,查询时使用appid和type,为区分不同应用,插入和查询ES时增加appid,且appid的type设为keyword
2)调用链
原索引:uav_ivc_db_yyyy-MM-dd,现索引:uav_ivc_yyyy-MM-dd
查询使用appuuid
3)重调用链
原索引:ivcdat_appid_yyyy-MM-dd,现索引:uav_ivcdat_yyyy-MM-dd
原索引与appid相关,查询使用appid和tranceid,重调用链数据中已经包含appid,故appid设为keyword
4)线程分析
原索引:uav_jta_db_yyyy-MM-dd,现索引:uav_jta_yyyy-MM-dd