托管在服务器上时如何为Elasticsearch配置yml文件?

时间:2020-10-20 15:30:13

标签: amazon-web-services elasticsearch amazon-ec2 yaml elastic-stack

我正在尝试在aws服务器上托管Elasticsearch应用程序。

我能够对其进行试验并使其运行,但是它非常不稳定,并且使AWS机器崩溃。但是,只有当我在Elasticsearch之后开始企业搜索时,才会发生这种情况。我很确定,我仍然没有正确配置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,因为它产生了错误。但我想这与问题无关

Enterprise-search.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

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

非常感谢!

0 个答案:

没有答案
相关问题