<\/figure>\n\n\n\nIn this tutorial, we are going to show you how to set up Elasticsearch Cluster on our cloud platform RoseHosting Cloud. Also, we will explain in more detail the deployment, launching, and connecting the endpoints of Elasticsearch offered by the platform.<\/p>\n\n\n\n
Elasticsearch is distributed, free, open-source, and real-time search engine written in Java used to search analyze, and explore your data with an HTTP web interface. It is based on Lucene (free and open-source search engine software library) and provides speed and scalability to index many types of content. Elasticsearch is the most popular search engine according to the DB-Engines rankings and is highly demanded among users.<\/p>\n\n\n\n\n\n\n\n
Installing and setting up the Elasticsearch environment on the RoseHosting Cloud platform should take up to 10 minutes and is very easy in just a few clicks. Let’s get started!<\/p>\n\n\n\n
1. Login to RoseHosting Cloud<\/b><\/h3>\n\n\n\n To start with the setup you need first, to log in to our RoseHosting Cloud Platform using the URL https:\/\/app.rosehosting.cloud.<\/p>\n\n\n\n <\/figure>\n\n\n\n2. Installing the environment<\/b><\/h3>\n\n\n\n On the top left pane navigate and click on the green “New Environment<\/b>” button:<\/p>\n\n\n\n <\/figure>\n\n\n\nIn the newly opened window select the “Docker<\/b>” tab located on the right and click on “Select Image<\/b>” as on the picture below:<\/p>\n\n\n\n <\/figure>\n\n\n\nIn the “Docker Hub<\/b>” input field type “elasticsearch<\/b>” and click on the search icon right of the name.<\/p>\n\n\n\n <\/figure>\n\n\n\nChoose the first image named “elasticsearch<\/b>” and then select the version you would like to install. In this tutorial, we are going to use the latest version 7.14.1. Once the version is selected click on the green “Next<\/b>” Button:<\/p>\n\n\n\n <\/figure>\n\n\n\nThe next window is the place where we can configure the general parameters of our environment such as cloudlets, disk limits, IPv4 addresses, and other variables. We are going to leave the default values and only increase the Public IPv4 address from zero to one and choose a name for our environment. Changing the Public IPv4 address will automatically disable the Access via SLB. Once this is done click on the green “Create<\/b>” button at the bottom of the window.<\/p>\n\n\n\n <\/figure>\n\n\n\nThese were the steps required for installing the Docker-based Elasticsearch environment on the RoseHosting Cloud platform. Now the environment is up and running and is listed as in the picture below:<\/p>\n\n\n\n <\/figure>\n\n\n\nAfter successful installation you will receive login credentials for Elasticsearch on your email account associated with the RoseHosting Cloud Platform:<\/p>\n\n\n\n <\/figure>\n\n\n\n3. Elasticsearch Configuration<\/b><\/h3>\n\n\n\n Although the environment is installed we can not access the Elasticsearch in the browser on port 9200<\/b> since the Elasticsearch service is not started in the background.<\/p>\n\n\n\n
Execute the following command to check that there is no running Elasticsearch service in the background:<\/p>\n\n\n\n
ps aux | grep elasticsearch | grep -v grep<\/pre>\n\n\n\nNothing will be displayed on the command prompt:<\/p>\n\n\n\n
[root@node1805-elasticsearch ~]# ps aux | grep elasticsearch | grep -v grep\n[root@node1805-elasticsearch ~]#<\/pre>\n\n\n\nWe need to do some configuration through the command line. To access the command line via SSH you need to click on the “Web SSH<\/b>” button right of the “Application Servers<\/b>” as shown on the picture below:<\/p>\n\n\n\n <\/figure>\n\n\n\nThe following window should appear at the bottom of the page:<\/p>\n\n\n\n <\/figure>\n\n\n\nExecute the following command to specify the discovery type<\/p>\n\n\n\n
echo \"discovery.type: single-node\" >> \/usr\/share\/elasticsearch\/config\/elasticsearch.yml<\/pre>\n\n\n\nCheck if the discovery type was added successfully:<\/p>\n\n\n\n
cat \/usr\/share\/elasticsearch\/config\/elasticsearch.yml<\/pre>\n\n\n\nThe following lines should appear in the output:<\/p>\n\n\n\n
[root@node1805-elasticsearch ~]# cat \/usr\/share\/elasticsearch\/config\/elasticsearch.yml\ncluster.name: \"docker-cluster\"\nnetwork.host: 0.0.0.0\ndiscovery.type: single-node<\/pre>\n\n\n\nNow, the next step is to open the ports 9200 and 9300 in the firewall by executing the following commands:<\/p>\n\n\n\n
firewall-cmd --zone=public --permanent --add-port 9200\/tcp\nfirewall-cmd --zone=public --permanent --add-port 9300\/tcp\nfirewall-cmd --reload<\/pre>\n\n\n\nThe final step of the configuration is to restart the container for the changes to take effectivity:<\/p>\n\n\n\n <\/figure>\n\n\n\nOnce the container is restarted we are ready to access the Elasticsearch with the URL of our application and adding the port “:9200” at the end of it. This example may help you: http:\/\/elasticsearch.rosehosting.us:9200\/<\/b><\/p>\n\n\n\n <\/figure>\n\n\n\nYou can also check via SS with the following command about the status of the Elasticsearch:<\/p>\n\n\n\n
curl 'http:\/\/\"enter_your_domain_here<\/b>\":9200\/_cluster\/health?pretty'<\/pre>\n\n\n\n The output should be similar to this:<\/p>\n\n\n\n
{\n \"cluster_name\" : \"docker-cluster\",\n \"status\" : \"green\",\n \"timed_out\" : false,\n \"number_of_nodes\" : 1,\n \"number_of_data_nodes\" : 1,\n \"active_primary_shards\" : 1,\n \"active_shards\" : 1,\n \"relocating_shards\" : 0,\n \"initializing_shards\" : 0,\n \"unassigned_shards\" : 0,\n \"delayed_unassigned_shards\" : 0,\n \"number_of_pending_tasks\" : 0,\n \"number_of_in_flight_fetch\" : 0,\n \"task_max_waiting_in_queue_millis\" : 0,\n \"active_shards_percent_as_number\" : 100.0\n}<\/pre>\n\n\n\nCongratulations! You successfully installed and set up the Elasticsearch environment via our RoseHosting Cloud platform without any issues and difficulties. You learned how to use the GUI and the Web SSH access to your server within our platform.<\/p>\n\n\n\n
Of course, you can simply subscribe to our managed cloud hosting<\/a> plans and let our experts set up everything within minutes, completely free of charge. Our support is professional and we are available 24\/7.<\/p>\n\n\n\nIf you liked this post on how to set up ElasticSearch Cluster on RoseHosting Cloud, please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"
In this tutorial, we are going to show you how to set up Elasticsearch Cluster on our cloud platform RoseHosting … <\/p>\n
Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":39312,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,13],"tags":[1905,1120,1957,1152],"yoast_head":"\nHow to Set Up Elasticsearch Cluster on RoseHosting Cloud | RoseHosting<\/title>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\t \n\t \n\t \n \n \n \n \n \n \n \n\t \n\t \n\t \n