...
- Start the setup by double-clicking.
- Follow the setup dialogs.
- Under HTTP-Port, you can configure the port that elasticsearch will listen on. This port should only be changed if the default port (9200) is already being used. For more details see below.
- The index-directory is the directory where elasticsearch will put its index (database) files. This can become very large. We recommend to use SSD Storage for this directory.
- When asked for the maximum memory, configure the amount of heap space that elasticsearch can use. This should be between 4 and 31,5 GB.
- Start the installation.
- Do not start the service yet.
- Change the http and transport ports (optional unless running 2+ instances on the same machine):
- Edit the file <elasticsearch>\config\elasticsearch.yml
- Change the "http.port:" property to your desired port. Make sure to reflect this change in the <service-manager>\config\application-es,yml configuration file of the service-manager.
- Change the "transport.tcp.port" property to your desired port
- Set the repository path (optional, if no cluster is set up):
- Edit the file <elasticsearch>\config\elasticsearch.yml
- Edit the "path.repo:" property and set your desired repository path. Use "/" instead of "\" in the path.
If you want to run elasticsearch in a cluster, this path needs to be used by all cluster nodes and thus it needs to be accessible by all cluster nodes.
- Modify the service user (optional):
- Run the "elasticsearch-6-service-x64w.exe" file in the <elasticsearch>\bin directory.
- Enter the technical (Windows) user on the "Log On" tab.
- Change heap space settings (optional):
- Run the "elasticsearch-6-service-x64w.exe" file in the <elasticsearch>\bin directory.
- In the "Java" tab, modify the "Maximum memory pool" value to the desired amount of heap space for the service. Make sure "Initial memory pool" is set to the same value.
- In the "Java options" section adapt the "-Xmx" and "-Xms" settings to the desired amount of heap space
- Modify the data directory (optional):
- Edit the file <elasticsearch>\config\elasticsearch.yml
- Edit the "path.data:" property and set your desired data path. Use "/" instead of "\" in the path.
- Modify the log directory (optional):
- Run the "elasticsearch-6-service-x64w.exe" file in the <elasticsearch>\bin directory.
- Modify the log directory in the "Logging" tab.
- Edit the file <elasticsearch>\config\elasticsearch.yml
- Add a line with "path.logs: " and the path to your desired logs-folder. Use "/" instead of "\" in the path.
- Start the service. (check es-red.log file in the logs-folder for correct startup)
...