码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • 部署elasticsearch需要调整的系统参数


    在部署elasticsearch启动的过程中失败了,具体报错如下:

    ERROR: [2] bootstrap checks failed
    [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
    [2]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured
    ERROR: Elasticsearch did not exit normally - check the logs at /usr/share/elasticsearch/logs/docker-cluster.log
    
    • 1
    • 2
    • 3
    • 4
    ERROR: [1] bootstrap checks failed. You must address the points described in the following [1] lines before starting Elasticsearch.
    bootstrap check failure [1] of [1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
    ERROR: Elasticsearch did not exit normally - check the logs at /data1/elasticsearch/logs/starces.log
    
    • 1
    • 2
    • 3

    解决方法:
    报错的意思是ElasticSearch拥有的内存太小,至少需要262144。查看命令sysctl -a|grep vm.max_map_count可以看到到vm.max_map_count = 65530,需要增加这个值。临时生效的方法:sysctl -w vm.max_map_count=262144。如果需要永久生效,需要在/etc/sysctl.conf文件下添加一行:vm.max_map_count=262144并重启,即可解决。重启命令如下:

    sysctl -p
    
    • 1

    最大线程个数太低。修改配置文件/etc/security/limits.conf

    * soft nofile 65536
    * hard nofile 65536
    * soft nproc 4096
    * hard nproc 4096
    
    • 1
    • 2
    • 3
    • 4

    –查看当前系统配置文件ulimit的全局配置

    ulimit -a
    
    • 1

    如果未进行具体设置的话,会使用默认配置,如下查看

    grep '^*' /etc/security/limits.conf
    
    • 1
  • 相关阅读:
    计算机网络
    Linux 基础指令
    软件动态更新的评价指标
    【TcaplusDB知识库】TcaplusDB技术支持介绍
    【Linux初阶】Linux环境下的 git 使用 | git的add/commit/push/log/pull/mv/rm/status
    ardupilot 高度控制器核心部分---》水平位置为什么不采用三级PID控制
    计算机网络 --- WebSocket协议 和 Signalr
    天线材质介绍--FPC天线
    Spring解决循环依赖
    如何进入TB top排行榜查找热卖款的宝贝呢?
  • 原文地址:https://blog.csdn.net/jiedaodezhuti/article/details/132967540
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号