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

毕业设计网站怎么做中国新闻最新消息今天

毕业设计网站怎么做,中国新闻最新消息今天,佛山营销型网页设计,网站两边横幅怎么做一 .概念 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.tj-hxxt.cn/news/45438.html

相关文章:

  • 网站制作视频教程免费百度地图推广
  • 提供电商网站建设域名注册服务网站查询
  • 视频分享网站怎么做的自媒体135网站
  • bootstrap做的网站谷歌网站优化推广
  • 网页搜索关键词长沙seo公司排名
  • 将自己做的网站发布到网上十大引擎网址
  • 旅游商城网站建设网络营销的概念与含义
  • 家政网站怎么做郑州seo技术代理
  • 做冻品海鲜比较大的网站有哪些网络营销的含义是什么
  • 深圳网站建设吗如何去推广一个app
  • 个人网站的留言板数据库怎么做株洲做网站
  • 网站建设试题以及答案广州seo网络优化公司
  • 电子政务网站系统发布软文平台
  • 做饼的网站热门关键词排名查询
  • 如何提升wordpress网站速度网站怎么被收录
  • 西部数码网站备案北京网站优化外包
  • 陕西网站建设热线如何建立电商平台
  • 罗湖建网站公司写一篇推广商品的软文
  • 做网站用的图片百度竞价排名公司
  • 做竞价网站访问突然变少百度关键词首页排名怎么上
  • 做 cad效果图网站宁波网站推广营销
  • 同城换物网站为什么做不起来企业培训考试系统app
  • 互联网金融网站建设怎么做推广
  • web网页设计图片上海专业seo排名优化
  • 注册一个网站域名一年需要多少钱全网营销骗局揭秘
  • 站长工具爱站网易搜索引擎入口
  • dede小说网站模板下载策划推广
  • 廊坊seo排名公司windows优化大师提供的
  • 安防网站下载网站快速优化排名方法
  • 网站分析怎么做的如何查询域名注册人信息