Question

Best way to add Elasticsearch to App

I have Django app running on DO, and I want to add Elasticsearch to it. I have the two containers running on my desktop with Docker compose, and I’m trying to figure out what the simplest (and cheapest!) way to deploy it is.

I’m using the stock docker image for ES. This is a prototype, and the data is all sourced from a Postgres managed database, so I’m ok with reloading the data on deployment or droplet failure.

I was thinking of adding it as a component to my existing app, but am not sure how to do that. Or I could set it up on a droplet fairly easily. Or is it time to start with Kubernetes? (https://stackoverflow.blog/2021/07/27/podcast-361-why-startups-should-use-kubernetes-from-day-one/)

what’s a good way to do this?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi @digitaloceancomSquid,

I’ll recommend adding ES on a different Droplet, then you can configure logstash or filebeat or whatever ES addon you need on the Droplet and connect it to your Application’s Droplet to collect the information you need.

I’l suggesting a separate Droplet for ES as it would be easier in the future when you possibly have more than one App on different Droplets. That’s my view.

Having said that, deploying it on the same droplet as the current app, will save you some money and it can be more convenient for a short term project.