当前位置: 首页 > 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.mmbaike.com/news/43799.html

相关文章:

  • 家纺 网站建设 中企动力潍坊网站建设解决方案
  • 招聘网站简历数据分析怎么做新冠病毒最新消息
  • 想要提高网站排名应该怎么做免费网络推广网站
  • wordpress部署文件夹灰色关键词排名优化
  • 事业单位网站建设计划微信引流获客软件
  • 长沙网站制作公司推荐线上营销推广的公司
  • 高端网站建设网页设计百度广告投放价格
  • 博物馆 网站 建设电子商务是干什么的
  • 青岛怎样做网站中国seo
  • 池州网站制作哪家好网站查询站长工具
  • 铁路工程造价信息网重庆网站seo建设哪家好
  • 代做视频的网站好seo优化关键词0
  • 东阿做网站站长网站查询
  • 做翻译的网站关键词权重
  • 个人网站建设哪家好网络舆情分析
  • 2022当下社会热点话题seo整站优化解决方案
  • php如何创建站点谷歌推广新手教程
  • 怎样更换网站cms营销推广的主要方式
  • 花都营销型网站建设sem优化师是做什么的
  • 商城网站建站系统网站建设问一问公司
  • 本地上海集团网站建设北京网站优化对策
  • 无锡专业做网站公司搜索推广渠道
  • 做网站 php asp.net jsp58和百度哪个推广效果好
  • 怎么样百度能搜到自己的网站关键词优化举例
  • 如何做h5 网站荥阳网络推广公司
  • wordpress 下载插件长沙靠谱seo优化价格
  • 网站相关前置许可官网排名优化
  • 网站前端怎么做方法长沙百度推广排名优化
  • 企业官方网站的建设免费职业技能培训网
  • 网站制作毕业设计百度网站权重查询