Run chewy:deploy to create & populate index

Advanced Elasticsearch Configuration (Optional)

If you can't start Elasticsearch, It's probable that the allocated memory is insufficient.

RAM 1GB

RAM 4GB

This guide may be useful if you can't start Elasticsearch, or if Elasticsearch uses too much memory.

First, Elasticsearch needs a lot of memory.

You should check this page.
But, as far as I can recollect, Mastodon does not require much memory for Elasticsearch.
When building Elasticsearch server on low memory VPS, It's necessary to change the configuration.