在Liferay 7中禁用ElasticSearch日志 [英] Disable ElasticSearch logs in Liferay 7
问题描述
我已经开始使用Liferay v7,并且收到以下日志消息:
17:14: [fse02E6ISIWnZ5cxWw_mow] [Mirage] [/ Users / randy / FasterPayments / src / eclipse]中的[高级磁盘水印[90%])超过[ /com.rps.portal/com.rps.portal.backoffice/bundles/data/elasticsearch/indices/LiferayElasticsearchCluster/nodes/0] free:46gb [9.9%],碎片将被重新定位到这个节点之外
说实话,我现在不想花时间学习ElasticSearch,是否可以简单地禁用Liferay中的ElasticSearch 7开发环境?还是删除这些日志消息的其他操作?
转到控制面板/配置/系统设置/ Foundation / Elasticsearch。 p>
在其他配置下输入
cluster.routing.allocation.disk .threshold_enabled:True
cluster.routing.allocation.disk.watermark.low:30gb
cluster.routing.allocation.disk.watermark.high:20gb
或任何适合您系统的值(有警告,磁盘几乎满)。
保存&重新启动(这些值在运行时似乎没有被拿起)。
I've started using Liferay v7, and am getting a lot of the following log messages:
17:14:12,265 WARN [elasticsearch[Mirage][management][T#1]][decider:157] [Mirage] high disk watermark [90%] exceeded on [fph02E6ISIWnZ5cxWw_mow][Mirage][/Users/randy/FasterPayments/src/eclipse/com.rps.portal/com.rps.portal.backoffice/bundles/data/elasticsearch/indices/LiferayElasticsearchCluster/nodes/0] free: 46gb[9.9%], shards will be relocated away from this node
To be honest, I'd rather not spend time learning about ElasticSearch right now, is it possible to simply disable ElasticSearch within Liferay 7 dev environment? Or other action to remove these log messages?
Go to Control Panel / Configuration / System Settings / Foundation / Elasticsearch.
Under "Additional Configurations" enter
cluster.routing.allocation.disk.threshold_enabled: True
cluster.routing.allocation.disk.watermark.low: 30gb
cluster.routing.allocation.disk.watermark.high: 20gb
or whatever are appropriate values for your system (there is value in being warned that the disk is almost full).
Save & Restart (the values seem not to be picked up at runtime).
这篇关于在Liferay 7中禁用ElasticSearch日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!