首页 > 解决方案 > 托管在服务器上时如何为 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

有人可以看看我做错了什么吗?我将不胜感激,我花了无数个小时试图修复整个项目。

非常感谢!!

标签: amazon-web-serviceselasticsearchamazon-ec2yamlelastic-stack

解决方案


推荐阅读