摘要:需求背景 存储在 Mysql 中的数据量比较大,在 web 端需要进行搜索框搜索,使用的是 es ,问题是如何保证 mysql 数据与 es 数据的实时一致性 技术选型 canal 与 maxwell 都可以实现 mysql binlog 实时监控,将增量数据同步。最后定为使用 canal 环境搭建
阅读全文
摘要:#查询es 集群健康信息 GET /_cluster/health #查询集群健康信息 GET /_cat/health?v #查询集群全部索引 GET /_cat/indices?v #创建索引,使用默认分片数 5 PUT /school?pretty #查询文档结构 GET /school #创
阅读全文
摘要:1.检测集群健康信息 GET /_cluster/health 2.统计文档数量 GET /_count 3.创建索引 book PUT /book 4.创建索引 blog ,同时指定分片与副本数量 PUT /blog { "settings": { "number_of_shards": 5, "
阅读全文