且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Liferay 7中禁用ElasticSearch日志

更新时间:2023-01-08 21:51:55

转到控制面板/配置/系统设置/ 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).