Skip to content
Advertisement

FOS Elastica bundle populate command killed by oom_reaper with out of memory

There are 1,8 million records in the database table that I want to index through the fos:elastica:populate command. As soon as ~500.000 documents are already in the elasticsearch the indexing stops abruptly.

In the dmesg on backend server I saw this:

JavaScript

Elasticsearch, MySQL and PHP Symfony backend (where populate runs) are on different servers.

How can I fix that and fill elastica with documents?

FOSElasticaBundle is v5.1.0

Advertisement

Answer

Okay. The only solution I found (excluding the possibility of renting a powerful server) is to run the populate command with a bash script in parts.

Here is a sample script to index the remaining data.

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement