Installing elastic search server

I’m trying to install Elasticsearch server on fly.io.

fly deploy -i docker.elastic.co/elasticsearch/elasticsearch:7.5.2

with 2gb of memory. It seems like it’s asking for more.

I haven’t deployed it but I would suspect it’s not that the memory is not available, it’s that you need to configure elasticsearch to tell it to use it. By using its config options.

The memory error config option/solution:

The file descriptor error config option/solution:

Both of those example are for docker run. You’re running fly deploy (naturally) here. How to translate the command? Hmm. Well … fly deploy does support a --build-arg … so personally I’d give that flag a try. See what happens.

Else maybe try them in the fly.toml [env] block. If not, hopefully someone else can answer!

Here’s the deploy command docs: