摘要: 命令样例如下: curl -X GET "https://localhost:9200/_cat/health?v=true&pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+s5=*lo7F9" 执行 阅读全文
posted @ 2023-11-25 23:38 jackieathome 阅读(61) 评论(0) 推荐(0)
摘要: 命令样例如下: curl -X GET "https://localhost:9200/_cat/fielddata?v=true&pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+s5=*lo7F9" 阅读全文
posted @ 2023-11-25 23:31 jackieathome 阅读(30) 评论(0) 推荐(0)
摘要: 命令样例如下: curl -X GET "https://localhost:9200/_cat/ml/datafeeds?v=true&pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+s5=*lo7 阅读全文
posted @ 2023-11-25 23:13 jackieathome 阅读(20) 评论(0) 推荐(0)
摘要: ElasticSearch在运行过程中,涉及多种线程池、线程的使用,因此而需要给予足够的线程资源,保证ElasticSearch在需要时可以正常创建出线程。 查看Linux系统当前用户允许创建的线程的数量,命令如下: ulimit -a 执行结果的样例,如下: core file size (blo 阅读全文
posted @ 2023-11-25 23:02 jackieathome 阅读(58) 评论(0) 推荐(0)
摘要: ElasticSearch在运行过程中,涉及大量文件的打开、关闭、读、写等操作。因此当ElasticSearch进程的文件描述符数量不足时可能导致丢失数据等故障现象。 因此为保障ElasticSearch正常运行,需保证ElasticSearch可以使用至少65535个文件描述符。 查看Linux系 阅读全文
posted @ 2023-11-25 00:12 jackieathome 阅读(57) 评论(0) 推荐(0)
摘要: 查看当前Linux系统中vm.max_map_count变量的值,命令如下: sysctl vm.max_map_count 执行结果的样例,如下: vm.max_map_count = 65530 修改参数vm.max_map_count的值,命令如下 sysctl -w vm.max_map_c 阅读全文
posted @ 2023-11-24 23:58 jackieathome 阅读(85) 评论(0) 推荐(0)
摘要: 操作系统将进程加载至内存中执行时,对于当前未使用到的内存页,可能会将相关内存页交换至硬盘上,即swap。 对于性能敏感、时延敏感的应用程序比如ElasticSearch,swap特性会明显影响性能和稳定性,因此最好禁用swap特性。 对于Linux环境,目前有如下手段可以禁用swap特性。 临时关闭 阅读全文
posted @ 2023-11-24 23:32 jackieathome 阅读(169) 评论(0) 推荐(0)
摘要: 命令样例如下: curl -X GET "https://localhost:9200/_cat/ml/data_frame/analytics?v=true&pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH= 阅读全文
posted @ 2023-11-24 01:04 jackieathome 阅读(39) 评论(0) 推荐(0)
摘要: 读取当前存储的记录的数量。 命令样例如下: curl -X GET "https://localhost:9200/_cat/count?v=true&pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+ 阅读全文
posted @ 2023-11-23 22:09 jackieathome 阅读(289) 评论(0) 推荐(0)
摘要: ElasticSearch主要的配置文件,如下: elasticsearch.yml,ElasticSearch的相关参数。 jvm.options,JVM的相关参数。 log4j2.properties,日志的相关参数。 默认情况下,ElasticSearch从$ES_HOME/config目录下 阅读全文
posted @ 2023-11-23 22:03 jackieathome 阅读(68) 评论(0) 推荐(0)