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

网页站点怎么命名wordpress图片文件目录

网页站点怎么命名,wordpress图片文件目录,7天酒店网站建设优势,昆明手机网站开发背景#xff1a; 尝试解决如下问题#xff1a;单分片存在过多文档#xff0c;超过lucene限制 分析 1.一般为日志数据或者OLAP数据#xff0c;直接删除索引重建 2.尝试保留索引#xff0c;生成新索引 - 数据写入新索引#xff0c;查询时候包含 old_index,new_index 3.…背景 尝试解决如下问题单分片存在过多文档超过lucene限制 分析 1.一般为日志数据或者OLAP数据直接删除索引重建 2.尝试保留索引生成新索引 - 数据写入新索引查询时候包含 old_index,new_index 3.尝试split split index API 如果需要将当前index的primary shard数量增加时可以使用split index api。 会生成一个新index但会保留原来的index。 步骤 确保source index只读 PUT source_index/_settings {settings: {index.blocks.write: true } } spilt API修改primary shard数量 POST source_index/_split/new_index {settings: {index.number_of_shards: 10} } 监控执行进度 GET _cat/recovery/new_index 测试 版本 7.17.5 # 新建测试索引 PUT test_split {}# 关闭source索引的写入 PUT /test_split/_settings {settings: {index.blocks.write: true } }# 执行split API POST /test_split/_split/test_split_new {settings: {index.number_of_shards: 12} } 遇到报错并解决在split API执行阶段 1. source 索引必须是 read-only 的{error: {root_cause: [{type: illegal_state_exception,reason: index test_split must be read-only to resize index. use \index.blocks.writetrue\}],type: illegal_state_exception,reason: index test_split must be read-only to resize index. use \index.blocks.writetrue\},status: 500 }2. source分片数3必须是target分片数的因子所以target不能为11可以为12{error: {root_cause: [{type: illegal_argument_exception,reason: the number of source shards [3] must be a factor of [11]}],type: illegal_argument_exception,reason: the number of source shards [3] must be a factor of [11]},status: 400 } 应用 集群版本 6.8.5 设置source索引 index.blocks.write: true 之后执行split API异常 {error: {root_cause: [{type: remote_transport_exception,reason: [es-log-all-2][10.xx.x.xx:9300][indices:admin/resize]}],type: illegal_state_exception,reason: the number of routing shards [5] must be a multiple of the target shards [20]},status: 500 } 即目标索引的主分片个数必须是index.number_of_routing_shards的因数 注意number_of_routing_shards 不可以动态修改 结论ES6.8无法通过split API解决索引分片过少的问题 官方docSplit index API | Elasticsearch Guide [8.9] | Elastic Shrink index API 如果需要将当前index的primary shard数量减少时可以使用shrink index api。 会生成一个新index但会保留原来的index。 Shrinks an existing index into a new index with fewer primary shards. POST /my-index-000001/_shrink/shrunk-my-index-000001 步骤 # 新建index PUT test_shrink {}# 查看索引的shard在哪些node GET _cat/shards/test_shrink?v# 将所有主分片分配到node1副本设置为0设置readOnly PUT test_shrink/_settings {settings: {index.number_of_replicas: 0,index.routing.allocation.require._name: node-es-0,index.blocks.write: true} }# 执行shrink API POST /test_shrink/_shrink/new_test_shrink {settings: {index.number_of_replicas: 1,index.number_of_shards: 1, index.codec: best_compression },aliases: {my_search_indices: {}} } 如果上述命令修改成 POST /test_shrink/_shrink/new_test_shrink {settings: {index.number_of_replicas: 1,index.number_of_shards: 2, index.codec: best_compression },aliases: {my_search_indices: {}} } 新的number_of_shards不是source index的number_of_shards的因子那么出现如下错误 {error: {root_cause: [{type: illegal_argument_exception,reason: the number of source shards [3] must be a multiple of [2]}],type: illegal_argument_exception,reason: the number of source shards [3] must be a multiple of [2]},status: 400 } 官方docShrink index API | Elasticsearch Guide [8.9] | Elastic
http://www.zqtcl.cn/news/339370/

相关文章:

  • 大型网站建设哪家服务好dll网站服务
  • 怎样建设网赌网站江苏外贸网站建设
  • 做外贸有哪些网站怎么在360自己做网站
  • 企业网站建立费用 作什么科目深圳服装外贸公司
  • 淘宝网站建设代码视频开放api
  • 清廉企业建设骨科医院网站优化服务商
  • 公司网站建设开源平台网站建设推来客在哪里
  • 本地电脑静态网站建设半年工作总结
  • 潮州哪里做网站html in wordpress
  • 在浏览器上建设网站平面作品集展示图片
  • 建设网站的技术手段天津泰达建设集团网站
  • 怎样做读书会网站广州公司注册在线
  • 多个网站做计划响水哪家专业做网站
  • 中国建设基础设施总公司 网站怒江网站建设
  • 做电脑网站手机能显示不出来怎么办有友情链接的网站
  • 潘家园做网站的公司网络营销管理系统
  • 如何在各大平台推广博客网站seo
  • 网站地图那么建设国内哪个网站做水产比较大
  • 可以做图片视频的网站网站策划网
  • 在阿里云做的网站怎么移动南宁seo咨询
  • 电子商务网站开发课程设计论文温州市微网站制作电话
  • 常州住房和城乡建设部网站网站开发哪家公司口碑好
  • 网站备案 登录名巴中交通建设有限公司网站
  • 门户资源分享网站模板软件网站开发市场前景
  • 海南省住房和城乡建设厅官方网站列举五种常用的网站推广方法
  • aso优化服务平台东莞优化seo
  • 高唐做创建网站的公司网站开发费怎么做账
  • 域名有没有被注册哪个网站最好中企动力网站建设方案
  • 无锡网站制作计划我的世界寻找建筑网站
  • 烟台建设集团招聘信息网站青岛百度公司总部