ES 7.3 和 6.8 对比 6.4 的版本调研

ES 6.8

Cluster

  • 增加集群 shards 数的限制;可配置
  • 集群监控考虑使用 MeticsBeat
  • data.path 中不能包含 cluster name
  • Cross-cluster replication(CCR):支持多集群 replication 和 search;但是,是付费功能

Security

  • TLS(类似 SSL)、RBAC(Role-based access control ) 都可在 basic 版本使用

Index

  • 索引不再使用 mapping type
  • index lifecycle management(ILM):索引可为 hot、warm、cold、delete 状态

Query

  • 限制每个节点的 open scroll context 数:我们使用 scroll,要记得 close 掉

ES 7.3

Cluster

  • Shard refresh:对于 search idle 的 shards 来说,数据写入时不做 refresh,查询时触发 refresh;这样对于集群的写入性能有提高,但是查询效率可能会受一点影响。可配置 refresh interval 禁掉上述功能
  • CCR:此功能 production-ready;kibana 加入了管理界面
  • Discovery 变化挺大的,要现根据文档进行正确配置

Client

  • 废弃 transport client:我们如果有用到的地方,要做更新
  • High-level REST client is feature-complete
  • Low-level REST client:不支持设置 maxRetryTimeout

Index

  • 索引默认 shard 数为 1,之前是 5:我们一直自定义
  • ILM:production-ready
  • _all 废弃
  • off-heap terms index:terms index 不放在内存中,影响查询效率,比如数据量极大内存较小、查询结果数比查询term数多几个数量级的情况下,查询效率会比较低。Lucene 8 的一个新特性,目前看起来不可配置,只能接收

Query

  • 各种请求,都不再使用 index type
  • 对于查询,集群会限制每个节点上请求的并发数
  • 查询请求大小受限
  • ES SQL:production-ready
  • hits.total:在查询的返回结果中,以前是一个值,现在变成一个 object 了,需要确认我们是否使用

JDK

  • Bundle JDK in Elasticsearch distribution:无需安装 JDK
发布了14 篇原创文章 · 获赞 1 · 访问量 845

猜你喜欢

转载自blog.csdn.net/linclaus/article/details/104596582
6.4
6.8