Skip to content

Modify log and APM ES Index#410

Merged
zxy0728 merged 3 commits into
uavorg:masterfrom
fyb007:yongbiaofeng
Oct 12, 2018
Merged

Modify log and APM ES Index#410
zxy0728 merged 3 commits into
uavorg:masterfrom
fyb007:yongbiaofeng

Conversation

@fyb007

@fyb007 fyb007 commented Oct 11, 2018

Copy link
Copy Markdown
Contributor

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

fyb007 and others added 3 commits October 11, 2018 10:40
1.日志、调用链、重调用链、线程分析分别用一个索引,由按周改为按天滚动。
2.日志索引的分片由2改为5,所有索引(日志、APM)的副本由0改为1。
3.索引改为按天滚动后之前24小时内的查询涉及两个索引,故改为当天查询。
4.日志、重调用链原索引与appid有关,修改后插入和查询时增加appid,且appid的type设为keyword
@fyb007
fyb007 requested a review from zxy0728 October 11, 2018 07:12
@fyb007 fyb007 added this to the Opensource_Iteration_2 milestone Oct 11, 2018
@zxy0728
zxy0728 merged commit 7bdfbec into uavorg:master Oct 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants