On our cluster I have modified the oom_solr script to touch a file noting that the server has crashed, and a cron job that runs once a minute to restart that solr instances if it sees that file is present. This has been working quite well for us.
Bob ________________________________ From: mtn search <search...@gmail.com> Sent: Friday, August 16, 2024 4:05 PM To: users@solr.apache.org <users@solr.apache.org> Subject: oom_solr.sh Hello, oom_solr. sh is provided by Solr to kill the solr process on OOM and log this event. Is it a common practice to then also create supporting functionality to automatically restart solr after the kill? - On *nix systems, we recommend that ZjQcmQRYFpfptBannerStart This Message Is From an External Sender This message came from outside your organization. ZjQcmQRYFpfptBannerEnd Hello, oom_solr.sh is provided by Solr to kill the solr process on OOM and log this event. Is it a common practice to then also create supporting functionality to automatically restart solr after the kill? - On *nix systems, we recommend that Solr be run with the "OOM killer script" (see solr/bin/oom_solr.sh). This will forcefully stop Solr when the heap is exhausted rather than continue in an indeterminate state. https://urldefense.us/v3/__https://solr.apache.org/guide/solr/latest/deployment-guide/jvm-settings.html__;!!G_uCfscf7eWS!dl7ukSYN7bq_JmeDFoyjW0Fun9aD0M5ETQjVRcYEkrDy55Amy6eXKeIeQ98PnrhTk4aSfsw2rsF52QWr-Ws$ Thanks, Matt