[ELK] 生产环境使用 Elasticsearch Docker 镜像的优化选项
【 配置内核设置 vm.max_map_count 至少为 262144 】
Linux:
echo vm.max_map_count=262144 >> /etc/sysctl.conf
sysctl -w vm.max_map_count=262144
macOS with Docker for Mac:
screen ~/Library/Containers/com.docker.docker/Data/vms/0/tty
sysctl -w vm.max_map_count=262144
Windows and macOS with Docker Desktop:
docker-machine ssh
sudo sysctl -w vm.max_map_count=262144
【 配置文件必须为 elasticsearch 用户可读 】
https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#_configuration_files_must_be_readable_by_the_elasticsearch_user
【 提高 ulimits 】
检查:docker run --rm centos:7 /bin/bash -c 'ulimit -Hn && ulimit -Sn && ulimit -Hu && ulimit -Su'
docker run 设置:--ulimit nofile=65535:65535
【 关闭 swapping:为了性能和节点稳定性 】
https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#_disable_swapping
【 随机公开端口 】
【 设置堆大小 】
https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-set-heap-size
【 部署固定版本的镜像 】
【 总是绑定数据 volumes 】
【 避免使用 loop_lvm 模式 】
【 集中你的日志 】
https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#_centralize_your_logs
【 Docker 下的 ElasticSearch 配置 】
【 挂载 ElasticSearch 配置文件 】
https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-config-bind-mount
【 使用自定义 Docker 镜像 】
https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#_c_customized_image
Other:Docker游乐场
相关文章
- Docker的基本使用——常用docker命令
- docker命令入门教程[通俗易懂]
- docker搭建apache php环境步骤总结「建议收藏」
- ElasticSearch教程_Elasticsearch原理
- docker安装RabbitMq
- dockerfile 端口映射_docker 映射端口
- docker-compose 安装nginx manager
- Docker安装ElasticSearch: 7.7.1
- Docker 部署Redis哨兵
- Docker查看本地所有的镜像命令(docker images)
- Docker服务的删除本地镜像命令(docker rmi 镜像id)
- Docker查看容器命令(docker ps)
- 在mac上安装并使用docker
- ElasticSearch全文搜索引擎 -Spring Boot操作ES(SpringData概述、Spring Data Elasticsearch、基本操作、ElasticSearch操作文档)
- Docker - docker-compose搭建ELK服务
- 基于 Docker 的深度学习环境:入门篇
- Docker容器的重启策略及docker run的–restart选项详解程序员
- 基于Docker实施Redis的简易部署(dockerredis)
- 使用 Docker 和 Elasticsearch 构建一个全文搜索应用程序
- 为什么 strace 在 Docker 中不起作用?