Install Elasticsearch on a Dedicated Server
Install Elasticsearch on a Dedicated Server
Procedure
- On the server on which you want to install Elasticsearch, access the GE Digital APM distribution package, and then navigate to 3rd_Party_Software\ElasticSearch.
- Extract the contents of the elasticsearch-5.6.12.zip file to C:\ElasticSearch.
- In the extracted files, navigate to C:\ElasticSearch\elasticsearch-5.6.12\elasticsearch-5.6.12\config, and then access the elasticsearch.yml file.
- In the elasticsearch.yml file, uncomment the following properties and modify the values to match those shown here:
cluster.name: apm-cluster node.name: ${COMPUTERNAME} path.data: /ProgramData/Meridium/ElasticSearch path.logs: /ProgramData/Meridium/Logs bootstrap.memory_lock: true network.host: 0.0.0.0 http.port: 9200 action.destructive_requires_name: true
- Save and close the elasticsearch.yml file.
- Select the Windows Start button, then right-click Command Prompt, and then select Run as administrator.A Command Prompt window appears.
- At the command prompt, enter cd C:\ElasticSearch\elasticsearch-5.6.12\bin, and then press Enter.
- At the command prompt, enter elasticsearch-service install, and then press Enter.Elasticsearch is installed.
- Access the Microsoft Management Console (services.msc), and then test and modify the following Elasticsearch properties:
- Verify that the service runs as Local System.
- Modify the startup to be Automatic.
- Start the service to verify installation and configuration.
- On the server on which Elasticsearch is installed, ensure that Elasticsearch runs successfully by navigating to http://localhost:9200/ in your preferred web browser. You should receive a similar response as given in the following sample:
{ "name" : "apm-node", "cluster_name" : "apm-cluster", "cluster_uuid" : "58cS6NyzQJOLZ8Xr1e3vkg", "version" : { "number" : "5.6.12", "build_hash" : "3adb13b", "build_date" : "2017-03-23T03:31:50.652Z", "build_snapshot" : false, "lucene_version" : "6.4.1" },
- On the GE Digital APM server, ensure that Elasticsearch runs successfully by navigating to http://[elastic-search-server]:9200/ in your preferred web browser.You should receive a similar response as seen in the previous step.
- On the GE Digital APM server, navigate to C:\ProgramData\Meridium, and then modify the MeridiumAppSettings.xml file.
- In the MeridiumAppSettings.xml file, modify the following values as needed:
<!-- Search and Elastic Services --> <add key="searchServiceUrl" value="http://localhost:9199" /> <add key="elasticServiceUrl" value="http://<name of Elastic Search server>:9200" />
- On the GE Digital APM server, restart the following services:
- Meridium Search Service
- Redis service
- Reset IIS (optional)