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

毕业设计网站怎么做网址seo查询

毕业设计网站怎么做,网址seo查询,东莞建网站,自己做网站需要做服务器一 .概念 ILM定义了四个生命周期阶段:Hot:正在积极地更新和查询索引。Warm:不再更新索引,但仍在查询。cold:不再更新索引,很少查询。信息仍然需要可搜索,但是如果这些查询速度较慢也可以。Dele…

一 .概念

ILM定义了四个生命周期阶段:
Hot:正在积极地更新和查询索引。
Warm:不再更新索引,但仍在查询。
cold:不再更新索引,很少查询。信息仍然需要可搜索,但是如果这些查询速度较慢也可以。
Delete:不再需要该索引,可以安全地将其删除

仅仅在 Hot阶段 可以设置 rollover滚动

在实验中可以修改设置,来缩短ILM检测时间间隔。ILM定期运行(indices.lifecycle.poll_interval),默认是10分钟,检查索引是否符合策略标准,并执行所需的任何步骤

PUT /_cluster/settings{ "transient": { "indices.lifecycle.poll_interval": "1m" } }

参数的设置:满足任意一个创建新的索引

HOT

WARM

Delete

二. 实战

1 .创建生命周期策略模板:PUT 请求

http://localhost:9099/_ilm/policy/my_index_rollover_policy

"max_docs": 5000000 设置超过500万是创建新的索引,实际测试可以设置小一点

{"policy": {"phases": {"hot": {"actions": {"rollover": {"max_docs": 5000000},"set_priority": {"priority": 100}}},"warm": {"min_age": "30d","actions": {"forcemerge": {"max_num_segments": 1},"shrink": {"number_of_shards": 1},"allocate": {"number_of_replicas": 1},"set_priority": {"priority": 50}}},"cold": {"min_age": "90d","actions": {"freeze": {},"allocate": {"require": {"type": "cold"}},"set_priority": {"priority": 10}}},"delete": {"min_age": "3650d","actions": {"delete": {}}}}}
}

2. 创建索引模板(日志统计索引) PUT 请求:

http://localhost:9099/_template/my_statistic_log

{"index_patterns": ["my_statistic_log-*"],"settings": {"index.number_of_shards": 5,"index.number_of_replicas": 1,"refresh_interval": "60s","index.lifecycle.name": "my_index_rollover_policy","index.lifecycle.rollover_alias": "statistic_log_write"},"aliases": {"statistic_log_read": {}},"mappings": {"log": {"dynamic": "strict","_field_names": {"enabled": false},"dynamic_templates": [{"date": {"match": "*Date","mapping": {"type": "date"}}},{"strings": {"match_mapping_type": "string","mapping": {"type": "keyword"}}},{"long_or_text": {"match": "*Time","mapping": {"type": "date"}}},{"dataFormat": {"match": "*Date","mapping": {"type": "date"}}},{"timeFormat": {"match": "*Time","mapping": {"type": "date"}}},{"noAnalyzed": {"match_mapping_type": "string","mapping": {"type": "keyword"}}}],"properties": {"area": {"type": "keyword"},"desc": {"type": "keyword"},"hour": {"type": "integer"},"day": {"type": "integer"},"startTime": {"type": "date","format": "yyyy-MM-dd HH:mm:ss"},"totalCount": {"type": "long"}}}}
}

3.    根据索引模板创建起始索引(日志统计索引)
put 请求: http://localhost:9099/my_statistic_log-000001

{"aliases": {"statistic_log_write": {"is_write_index": true}}
}

4.    查看索引生效:GET请求 
http://localhost:9099/my_statistic_log-000001/_ilm/explain

https://www.elastic.co/guide/en/elasticsearch/reference/6.8/_setting_up_a_new_policy.html

http://www.hrbkazy.com/news/7141.html

相关文章:

  • 做高仿表网站容易被k吗免费生成短链接
  • 网站模网站备案查询
  • 网站大量死链广州网络推广万企在线
  • 网站统计平台网络营销的核心是什么
  • 餐饮团购网站建设搜索引擎收录
  • 建设商城网站制作软文编辑
  • 秦皇岛网站制作方案什么是网络营销含义
  • 安徽网站关键词优化打开免费百度啊
  • 做第三方库个人网站自己怎么制作一个网站
  • 网站维护多少钱百度资源搜索
  • 做阿里国际网站会有成效吗网络营销与策划
  • 承德市建设工程交易中心网站深圳seo排名优化
  • 免费海报制作网站国产最好的a级suv
  • 网站高速下载如何做四川seo快速排名
  • 有关网站建设的外文参考文献今日热搜头条
  • 检察院内部网站升级建设南昌seo排名扣费
  • 网站真人主持如何做好品牌推广工作
  • 淮安做网站的公司有哪些公司厦门seo服务
  • 建设银行杭州网站首页印度疫情最新消息
  • 专业做淘宝网站公司吗经典的软文广告
  • 网站建设合同注意网站制作
  • 锟鹏建设招聘网站学seo需要多久
  • 做货代哪个网站上好找客户百度seo排名优化联系方式
  • 如何做网站在售产品分析搜索量最大的关键词
  • 电子商务网站源码下载营销活动方案
  • 顶岗实践网站开发品牌推广策划方案怎么写
  • 今日重大国际新闻军事培训seo
  • 中国商务平台拼多多seo 优化软件
  • 郑州做网站网站建设费用抖音推广运营公司
  • 海淀网站建设wzjs51黄页引流推广网站入口