- mongodb - 在 MongoDB mapreduce 中,如何展平值对象?
- javascript - 对象传播与 Object.assign
- html - 输入类型 ="submit"Vs 按钮标签它们可以互换吗?
- sql - 使用 MongoDB 而不是 MS SQL Server 的优缺点
我正在尝试在 AWS 容器服务上运行 Elasticsearch。这里是我关注的文档:https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-cli-run-prod-mode
The vm_map_max_count setting should be set permanently in /etc/sysctl.conf:
$ grep vm.max_map_count /etc/sysctl.conf
vm.max_map_count=262144
To apply the setting on a live system type: sysctl -w vm.max_map_count=262144
有没有办法通过脚本设置 vm.max_map_count?我不想每次运行新容器时都手动进行。
谢谢
最佳答案
我找到了解决办法:
#!/bin/bash
echo vm.max_map_count=262144 >> /etc/sysctl.conf
sysctl -w vm.max_map_count=262144
现在 EC2 实例已正确配置。
关于amazon-web-services - AWS 容器服务 : set max_map_count,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41792918/
当尝试在Elasticsearch日志中启动Elasticsearch服务时,我尝试使用Ansible在LXC上运行Elasticsearch 6.x. [2020-01-04T08:45:58,74
我正在尝试在 Ubuntu EC2 机器 (t2.medium) 中运行 Elasticsearch 。 但我收到消息: max virtual memory areas vm.max_map_cou
好了,现在开始,我到目前为止尝试的所有事情: 在以下位置设置vm.max_map_count: etc / sysctl.conf中的主机 /etc/sysctl.d/99-sysctl.conf中的
我尝试在 Google Container Engine 的集群节点上安装 ElasticSearch(最新版),但 ElasticSearch 需要变量:vm.max_map_count >= 26
我正在尝试使用 Docker Compose 来使用 docker 的图像 elk-docker (https://elk-docker.readthedocs.io/)。 .yml 文件,是这样的:
我正在尝试在 AWS 容器服务上运行 Elasticsearch。这里是我关注的文档:https://www.elastic.co/guide/en/elasticsearch/reference/c
我正尝试在我的 windows10 上运行 ELK docker 镜像,如下所示。 C:\WINDOWS\system32> docker run -p 5601:5601 -p 9200:92
启动 sonarqube 时出现此错误。 我试过: sudo sysctl -w vm.max_map_count=262144 哪个返回: sysctl: setting key "vm.max_m
我对 ElasticSearch 的 systemd 配置有疑问。 [Unit] Description=platform-elasticsearch After=syslog.target netw
我正在使用 this在 docker 中启动 elasticsearch 的容器。根据manual我必须更新 max_map_count 才能启动容器 sudo sysctl -w vm.max_ma
在我的OS X上运行Docker时,出现以下错误: sysctl:设置键“vm.max_map_count”:只读文件系统 我知道在Linux上您可以使用edit sysctl,但是我还没有弄清楚如何
如何配置 elasticsearch docker 容器 (elasticsearch:7.5.0) 以使用更少的资源并在非生产模式下运行? 我想在 Jenkins 和我的桌面上运行容器,并且满足 t
我希望将我的 ES 版本从 2.3 更新到 5.0.0-alpha4,以便能够使用 Ingest 节点并将 Logstash 排除在外。但是,如果我不将 vm.max_map_count 设置为 26
我正在尝试在 AWS fargate 平台上运行 sonarqube 应用程序。当我运行原始 docker 图像时,它就像一个魅力。但是如果我将 JDBC 属性作为参数传递给容器,我将面临以下问题。显
我收到此错误: es01 | {"type": "server", "timestamp": "2019-09-18T17:31:42,267+0000", "level": "INFO", "com
我是一名优秀的程序员,十分优秀!