amazon-web-services - 托管在服务器上时如何为 Elasticsearch 配置 yml 文件?
问题描述
我正在尝试在 aws 服务器上托管 Elasticsearch 应用程序。
我能够对它进行试验并使其工作,但它非常不稳定并且会使 AWS 机器崩溃。但是,这只发生在我在弹性搜索之后启动企业搜索时。我很确定,我仍然没有正确配置 yml 文件。有人可以看看吗?
以下是相关信息:
Private DNS: ip-172-31-14-57.eu-central-1.compute.internal
Private IPs: 172.31.14.57
Public DNS (IPv4): ec2-3-122-100-12.eu-central-1.compute.amazonaws.com
IPv4 Public IP: 3.122.100.12
elasticsearch.yml 目前看起来如下:
network.host: ec2-3-122-100-12.eu-central-1.compute.amazonaws.com
http.port: 9200
discovery.seed_hosts: ["ec2-18-194-234-6.eu-central-1.compute.amazonaws.com:9300"]
xpack.security.enabled: false
discovery.type: single-node
cluster.routing.allocation.disk.threshold_enabled: true
xpack.security.authc.api_key.enabled: true
xpack.security.http.ssl.enabled: true
我不得不xpack.security.enabled
暂时关闭,因为它产生了错误。但我想这与问题无关
企业搜索.yml 如下所示:
secret_management.encryption_keys: [5322b64cf4260f9d94751a471e5921829f3b83cda9f..]
ent_search.auth.source: standard
allow_es_settings_modification: true
elasticsearch.host: http://ec2-3-122-100-12.eu-central-1.compute.amazonaws.com:9200
elasticsearch.username: elastic
elasticsearch.password: 9Xyj4hECTcih...
ent_search.external_url: http://ec2-3-122-100-12.eu-central-1.compute.amazonaws:3002
ent_search.listen_host: 3.122.100.12
ent_search.listen_port: 3002
有人可以看看我做错了什么吗?我将不胜感激,我花了无数个小时试图修复整个项目。
非常感谢!!
解决方案
推荐阅读
- c# - 不使用 Return 执行 FileContentResult
- javascript - 如何使用函数的输出更新输入字段的值?
- c# - C#中整数类型的溢出
- networking - Apache2 反向代理的问题
- unity3d - Unity3D 自定义检查器未正确保存值
- php - 如何将_token转移到laravel中的最后一个url
- android - 当应用程序在IOS后台时,如何在新的firebase消息(推送通知)上播放自定义铃声?
- c++ - 使用 input.get() 从 .txt 读取时输出额外值
- javascript - Javascript window.location.replace() 不重定向网页
- mips - 在 MIPS 中使用单点数创建二维数组