当前位置: 首页 > news >正文

app对接网站官方网站建设教程

app对接网站,官方网站建设教程,常德网站定制,营销网站手机站ElasticSearch的慢日志#xff0c;相关的参数及配置方法。 在log4j2.properties中配置慢日志的输出文件名。 Search Slow Log 相关参数 index.search.slowlog.threshold.query.warnindex.search.slowlog.threshold.query.infoindex.search.slowlog.threshold.query.debugin…ElasticSearch的慢日志相关的参数及配置方法。 在log4j2.properties中配置慢日志的输出文件名。 Search Slow Log 相关参数 index.search.slowlog.threshold.query.warnindex.search.slowlog.threshold.query.infoindex.search.slowlog.threshold.query.debugindex.search.slowlog.threshold.query.traceindex.search.slowlog.threshold.fetch.warnindex.search.slowlog.threshold.fetch.infoindex.search.slowlog.threshold.fetch.debugindex.search.slowlog.threshold.fetch.trace 上述参数的默认值均为-1即关闭日志的输出。 参数值为时长单位如下 s即秒样例10s。ms即毫秒样例10ms。 修改各参数的时长命令样例如下 curl -X PUT https://localhost:9200/testindex_001/_settings?pretty -H Content-Type: application/json -d {index.search.slowlog.threshold.query.warn: 10s,index.search.slowlog.threshold.query.info: 5s,index.search.slowlog.threshold.query.debug: 2s,index.search.slowlog.threshold.query.trace: 500ms,index.search.slowlog.threshold.fetch.warn: 1s,index.search.slowlog.threshold.fetch.info: 800ms,index.search.slowlog.threshold.fetch.debug: 500ms,index.search.slowlog.threshold.fetch.trace: 200ms }--cacert $ES_HOME/config/certs/http_ca.crt -u elastic:ohCxPHQBEs5*lo7F9执行结果的样例如下 {acknowledged : true }查看上述参数的当前值命令样例如下 curl -X GET https://localhost:9200/testindex_001/_settings?pretty --cacert $ES_HOME/config/certs/http_ca.crt -u elastic:ohCxPHQBEs5*lo7F9执行结果的样例如下 {testindex_001 : {settings : {index : {routing : {allocation : {include : {_tier_preference : data_content}}},search : {slowlog : {threshold : {fetch : {warn : 1s,trace : 200ms,debug : 500ms,info : 800ms},query : {warn : 10s,trace : 500ms,debug : 2s,info : 5s}}}},number_of_shards : 1,provided_name : testindex_001,merge : {scheduler : {max_thread_count : 2}},creation_date : 1701354456991,number_of_replicas : 1,uuid : 7iGJRFfxRd2jD3qP-KDRmQ,version : {created : 8500003}}}} }Index Slow log 相关参数 index.indexing.slowlog.threshold.index.warn index.indexing.slowlog.threshold.index.info index.indexing.slowlog.threshold.index.debug index.indexing.slowlog.threshold.index.trace 上述参数的默认值均为-1即关闭日志的输出。 参数值为时长单位如下 s即秒样例10s。ms即毫秒样例10ms。 index.indexing.slowlog.source指定在日志中记录数据中_source时的长度默认值为1000。 false或者0记录日志时跳过_source字段。true记录日志时完整记录_source字段。非零值记录日志时截取_source字段的部分。 index.indexing.slowlog.reformat输出日志时对_source做格式化操作默认值为true。 true对_source做格式化操作。false不对_source做格式化操作。 修改各参数的时长命令样例如下 curl -X PUT https://localhost:9200/testindex_001/_settings?pretty -H Content-Type: application/json -d {index.indexing.slowlog.threshold.index.warn: 10s,index.indexing.slowlog.threshold.index.info: 5s,index.indexing.slowlog.threshold.index.debug: 2s,index.indexing.slowlog.threshold.index.trace: 500ms,index.indexing.slowlog.source: 1000 }--cacert $ES_HOME/config/certs/http_ca.crt -u elastic:ohCxPHQBEs5*lo7F9执行结果的样例如下 {acknowledged : true }查看上述参数的当前值命令样例如下 curl -X GET https://localhost:9200/testindex_001/_settings?pretty --cacert $ES_HOME/config/certs/http_ca.crt -u elastic:ohCxPHQBEs5*lo7F9执行结果的样例如下 {testindex_001 : {settings : {index : {routing : {allocation : {include : {_tier_preference : data_content}}},indexing : {slowlog : {threshold : {index : {warn : 10s,trace : 500ms,debug : 2s,info : 5s}},source : 1000}},number_of_shards : 1,provided_name : testindex_001,merge : {scheduler : {max_thread_count : 2}},creation_date : 1701354456991,number_of_replicas : 1,uuid : 7iGJRFfxRd2jD3qP-KDRmQ,version : {created : 8500003}}}} }控制日志级别 从前述配置方法可以发现当前慢日志没有提供参数用于控制日志级别。 但可以通过关闭低级别的日志从而模拟对日志级别的控制。 比如当前只希望记录INFO级别以上的日志则可以执行如下日志关闭debug和trace。 curl -X PUT https://localhost:9200/testindex_001/_settings?pretty -H Content-Type: application/json -d {index.indexing.slowlog.threshold.index.debug: -1,index.indexing.slowlog.threshold.index.trace: -1 }--cacert $ES_HOME/config/certs/http_ca.crt -u elastic:ohCxPHQBEs5*lo7F9相关资料 Slow LogUpdate index settings API
http://www.pierceye.com/news/129/

相关文章:

  • 建设银行网站无法打开详细论述制作网站的步骤
  • php 网站后台在因特网上建设网站可选择的方案有
  • 做书照片网站开放平台是干什么的
  • 企业网站用什么cms比较好北京网站建设制作开发
  • 局域网建立网站教程网站嵌入播放器
  • 网站开发时间进度wordpress 近期文章 修改
  • 网站做图标链接泉州哪里做网站
  • 网站聊天代码销售管理系统包括哪几大模块
  • 空壳网站数据微信公众平台视频网站开发
  • 杭州网站开发公司浙江1万家企业
  • 做平面设计买哪个素材网站会员建设部网站如何下载文件
  • 郑州市金水区建设局官方网站wordpress 关键词过滤
  • 支付宝怎么做网站维护中国建设银行网站忘记密码怎么办
  • 网页制作与网站建设实战大全pdf网站备案登录
  • 那个网站做图片好看wordpress模板专题页
  • 做电影网站危险吗西安招标信息网官网
  • 建一个网站需要什么条件广告设计公司开的版面费
  • 伊川网站建设沈阳专业网站建设公司
  • 15年做哪个网站致富简约网站程序
  • 做推广用的网站做公司网站需要多久
  • 建手机网站的必要性成品门户网站源码免费
  • 虚拟主机网站源码企业建设网站有哪些费用
  • 自己做一个app软件大概要多少钱长沙关键词优化新报价
  • 凡科网站 怎么开支付自己做网站怎么能被访问
  • 怎么建立公司网站?seo网站优化优化排名
  • 网站举报百色建设网站
  • 网站 位置导航wordpress原生app
  • 怎么查看自己网站是否被收录上海市城市建设管理局网站
  • 网站提供的链接合肥电脑网站建站
  • 国外室内设计网站排名泰安专业网站开发公司