Elasticsearch indexes and searches documents at scale. On a test VPS you can run a single node from the official package.
Steps
Add Elastic’s key and repo (8.x example):
sudo apt updatesudo apt install -y apt-transport-https wget gnupgwget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg --dearmor -o /usr/share/keyrings/elasticsearch-keyring.gpgecho "deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] https://artifacts.elastic.co/packages/8.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-8.x.listInstall and start the service:
sudo apt updatesudo apt install -y elasticsearchsudo systemctl enable --now elasticsearchHit the local API (8.x may require install-time credentials — check logs if it fails):
curl -s http://127.0.0.1:9200 || curl -sk https://127.0.0.1:9200
Tips
- Elasticsearch is RAM-hungry — leave at least 2 GB free on a test VPS.
- Do not expose 9200 to the internet without TLS, auth and a firewall.
ext step
Search node with enough memory: Deploy your Cloud VPS.