F
F
Fridary2016-04-05 18:29:33
PHP
Fridary, 2016-04-05 18:29:33

How many nodes in ElasticSearch can and should be installed on a VPS?

I need to store more than a million small text records in ElasticSearch and then access them through the web interface.
I spend my nights studying ES and I don't understand how everyone knows so much about it, I have simple questions:
1) Is it right to buy a VPS/VDS server for this task? 1 core and 1 GB of memory will be enough?
2) Is it best to upload my site to this VPS and connect to it via localhost via nginx, or can I leave the previous hosting and connect to it using the IP of my VPS?
3) On localhost, I can go and get a response in the browser at localhost:9200. How can I get an answer to VPS? If I go to xxx.xxx.xxx.xxx:9200 it says ERR_CONNECTION_REFUSED where xxx.xxx.xxx.xxx is the IP of my VPS
4) Is it enough to buy 1 VPS for this kind of task with 1 million+ documents or do I need to take several and somehow distribute the load? 1 node = 1 VPS or can I install many nodes on 1 VPS?
6) How many nodes (master, data, client) do you need for normal ES operation? Need 1 cluster for everything?
Thanks for helping to figure it out.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
U
un1t, 2016-04-05
@un1t

1) From experience I will say that 1GB is not enough, you need at least 2GB.
2..6) Deploy the whole project on VDS, do not forget to close the firewall. I don’t know how in the second one, but the first one is open to the outside by default. 1 million is not much at all, VDS is enough. You need a cluster only if you need redundancy in case of a server crash or to distribute the load. For small projects, one VDS is usually sufficient.

P
Puma Thailand, 2016-04-06
@opium

elastic in general in java, what gigabyte of RAM can we talk about here? it seems to me that it won’t even take off on a gig, what can we say about millions of documents in it
if there is no money for a server, use the sphinx to search, it is many times less voracious than elastic, since it is written in C.

A
Andrzej Wielski, 2016-04-05
@wielski

Is it right to buy a VPS/VDS server for this task? 1 core and 1 GB of memory will be enough?

Forget it. Elastic recommends at least 16GB of RAM, and at best 64 .
This question is worded incorrectly. I still couldn't figure out what exactly you meant. In any case, you will need full ssh access
This depends on your needs. For an average project, one machine is enough. But again, pay attention to the first answer.
Well, again, read the hardware recommendations for more details: https://www.elastic.co/guide/en/elasticsearch/guid...

J
justhostRU, 2021-11-03
@justhostRU

Any purchased VPS configuration can be upgraded through technical support - add memory, cores.
>I need to store more than a million small text records in ElasticSearch,
no one except you knows how much RAM it will take, or you just have to check it in practice.
>If I go to xxx.xxx.xxx.xxx:9200, it says ERR_CONNECTION_REFUSED, where xxx.xxx.xxx.xxx is the IP of my VPS
, make sure the port is open in the firewall, the service itself is running, try changing the port.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question