I have a question and still considering it now. I have Magento 2.4.2 running on cloud hosting but in the way I found an issue with installing ES. cause ES not support install on shared/cloud hosting.

So, I have a plan to install ES in VPS server. after that, I will connect this ES with Magento 2.4.2 which already running on shared/cloud hosting.

Is it possible to run Elasticsearch and Magento 2.4.2 on different servers? Please help. very frustrating on this issue.


1 Answer 1


Yes, you can use a different host as an elastic server. You have to hostname at Admin setting area.

  • That's great. thanks mate. But i will go with vps 2 core + 2/4GB ram, is it enough for elasticsearch? Commented Nov 30, 2021 at 14:09
  • 4Gb... But it depends on no of product you have also no of attribute you have
    – Amit Bera
    Commented Nov 30, 2021 at 14:13
  • Great! thanks again mate. really appreaciate it. i will go proceed configure with vps. Commented Nov 30, 2021 at 14:15
  • Hi @Amit, i found issue with connected or remote host, last night i have done installation ES on my vps, and reconfigure elasticsearch.yml like this : transport.host: localhost transport.tcp.port: 9300 http.port: 9200 network.host:, and i try open ssh in cloud hosting and command indexing still not working, did you have any idea about this issue? thx Amit Commented Dec 1, 2021 at 4:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.