文章分类 -  elasticsearch

摘要:介绍日常维护运行在集群上的服务时,依次登录到机器上查看日志文件显然是非常低效的。另一方面,这些日志文件经常是有着良好的格式以及固定的路径。如果能将指定的日志文件批量导出到一个数据库里,无论是查看还是检索都会方便很多。这里记录一下在构建日志管理系统时的一些工具和方法,方便以后取用。 本文将构建的系统如 阅读全文
posted @ 2024-10-31 14:00 星云惊蛰 阅读(17) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/pony_maggie/article/details/111571577 关于elasticsearch使用G1垃圾回收替换CMS https://blog.csdn.net/m0_37787662/article/details/129191703 最 阅读全文
posted @ 2023-07-04 17:03 星云惊蛰 阅读(132) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/w903328615/article/details/115255228 https://zhuanlan.zhihu.com/p/411417987 写在前面注意:本文基于 Elasticsearch 7.12 版本进行总结梳理 Elasticsearc 阅读全文
posted @ 2023-07-04 13:08 星云惊蛰 阅读(888) 评论(0) 推荐(0) 编辑
摘要:因为jvm堆需要调整 https://www.elastic.co/guide/cn/elasticsearch/guide/current/heap-sizing.html#heap-sizing 阅读全文
posted @ 2023-07-04 11:09 星云惊蛰 阅读(237) 评论(0) 推荐(0) 编辑
摘要:Elasticsearch 集群健康状态分为三种: GREEN YELLOW RED GREEN是最健康的状态,说明所有的分片包括副本都可用。这种情况Elasticsearch集群所有的主分片和副本分片都已分配,Elasticsearch集群是100%可用的。 那么,集群状态在什么情况下发生RED和 阅读全文
posted @ 2023-07-03 18:09 星云惊蛰 阅读(118) 评论(0) 推荐(0) 编辑
摘要:https://github.com/medcl/elasticsearch-analysis-ik/releases?page=4 https://www.elastic.co/cn/downloads/elasticsearch 阅读全文
posted @ 2023-06-28 09:59 星云惊蛰 阅读(4) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/guoxilen/article/details/109226390 阅读全文
posted @ 2023-06-27 13:59 星云惊蛰 阅读(5) 评论(0) 推荐(0) 编辑
摘要:https://www.jb51.net/article/245100.htm 阅读全文
posted @ 2022-11-09 15:06 星云惊蛰 阅读(18) 评论(0) 推荐(0) 编辑
摘要:用terms可以的,默认最大长度65535,也可以通过index.max_terms_count更改这个值。 另外也可以修改indices.query.bool.max_clause_count,这是Boolean Query的子语句的数量,默认1024,也就是只能有term1024个 match 阅读全文
posted @ 2022-10-24 13:24 星云惊蛰 阅读(229) 评论(0) 推荐(0) 编辑
摘要:一、三者之间的区别from size:深度分页或者size特别大的情况,会出现deep pagination问题。且es的自保机制max_result_window是10000,当查询数量超过一万就会报错该查询的实现原理类似于mysql中的limit,比如查询第10001条数据,那么需要将前面的10 阅读全文
posted @ 2022-10-20 09:52 星云惊蛰 阅读(1292) 评论(0) 推荐(0) 编辑
摘要:public function create_index(){ //创建es实例 $es = ClientBuilder::create()->setHosts(['127.0.0.1:9200'])->build(); $params = [ 'index' => '索引名称',//类似于库名 ' 阅读全文
posted @ 2022-10-19 10:56 星云惊蛰 阅读(238) 评论(0) 推荐(0) 编辑
摘要:https://www.elastic.co/guide/en/elasticsearch/client/php-api/current/namespaces.html?baymax=rec&rogue=rec-1&elektra=guide 阅读全文
posted @ 2021-08-25 14:19 星云惊蛰 阅读(12) 评论(0) 推荐(0) 编辑
摘要:转:https://www.cnblogs.com/quanxiaoha/p/10961920.html 阅读全文
posted @ 2021-07-02 15:50 星云惊蛰 阅读(482) 评论(0) 推荐(0) 编辑
摘要:https://doc.codingdict.com/elasticsearch/95/ 阅读全文
posted @ 2021-06-16 10:25 星云惊蛰 阅读(452) 评论(0) 推荐(0) 编辑
摘要:所以我打开了英文文档和github,这才找到了资料; 安装扩展 composer require --prefer-dist yiisoft/yii2-elasticsearch main.php中引入 'elasticsearch' => [ 'class' => 'yii\elasticsear 阅读全文
posted @ 2021-04-27 10:35 星云惊蛰 阅读(244) 评论(0) 推荐(0) 编辑