OpenSearch can be run as a separate service on our Managed Flex Servers. The following guide shows how to set up OpenSearch and manage it using Custom Service Control (CSC).
Introduction
OpenSearch is an open-source search engine and analytics platform licensed under the Apache license. It originated in 2021 from a spin-off of Elasticsearch and is a project of the Linux Foundation.
Hostpoint provides you with OpenSearch as a self-managed service. This means that you have to install and manage the application on your own server, but we offer support in the form of this guide.
Request the installation
To use OpenSearch on your Managed Flex Server, you must first request the installation from us.
To do so, create a support code in the Hostpoint Control Panel as described in this guide.
Then send the support code to our technical support team (support@hostpoint.ch) and ask us to set up OpenSearch on your server.
Our technical support team will then set up the following for you:
- The OpenSearch installation on your server
- The directory structure under ~/app/opensearch/ with the subfolders config, data, logs, and tmp
- The configuration files jvm.options, log4j2.properties, and opensearch.yml in the folder ~/app/opensearch/config/
- The configuration files are preconfigured with the correct paths for your server.
Configure OpenSearch
Create a CSC service
Now, use the following command to create a new custom service for OpenSearch:
hpservices supervisord add opensearch
On successful execution, you should receive the following response:
successfully created dir for opensearch: /home/username/.services/supervisord/opensearch
successfully created dir for opensearch: /home/username/.services/supervisord/opensearch/log
supervisord service config file written: /home/username/.services/supervisord/opensearch/service.conf
Configure service.conf
A configuration framework is created in the file ~/.services/supervisord/opensearch/service.conf for the new service. OpenSearch requires a few minor adjustments.
Open the file in vim or another editor and copy the following content exactly as shown:
[program:opensearch]
command=/usr/local/lib/opensearch/bin/opensearch
autostart=true
stopwaitsecs=10
stdout_logfile=%(ENV_HOME)s/.services/supervisord/opensearch/log/default.log
stdout_logfile_maxbytes=1MB
stdout_logfile_backups=10
stderr_logfile=%(ENV_HOME)s/.services/supervisord/opensearch/log/default.err
stderr_logfile_maxbytes=10MB
stderr_logfile_backups=10
environment=OPENSEARCH_JAVA_HOME="/usr/local",OPENSEARCH_PATH_CONF="%(ENV_HOME)s/app/opensearch/config",JAVA_VERSION=25,OPENSEARCH_TMPDIR="%(ENV_HOME)s/app/opensearch/tmp"
The environment line contains several important environment variables:
- OPENSEARCH_JAVA_HOME specifies the path to the Java installation.
- OPENSEARCH_PATH_CONF points to your configuration directory containing the three configuration files.
- JAVA_VERSION specifies the Java version to use.
- OPENSEARCH_TMPDIR defines a fixed directory for temporary files. Without this setting, OpenSearch would create a new random directory under /tmp on every restart, which would result in numerous orphaned directories.
Integration
Using supervisorctl update, you can apply the new configuration to OpenSearch:
supervisorctl update
opensearch: added process group
Then check the status of the service with the following command:
supervisorctl status opensearch
For more detailed information on working with the CSC and the options it offers, refer to the Custom Service Control guide.
Testing
Test your new OpenSearch instance with the following command:
curl http://127.0.0.1:9200/
If everything is configured correctly, you should receive a JSON response with the name and the OpenSearch version.
If not, we recommend that you review the instructions again. If it still doesn't work, please feel free to contact us.
Please note the following:
- We do not monitor your OpenSearch instance, which means that we are unfortunately unable to respond to errors or crashes.
- During major OpenSearch updates, the service may not restart automatically. In this case, you must restart the service with the command supervisorctl restart opensearch.
- Your self-created OpenSearch instance is not displayed in the server overview in the Hostpoint Control Panel.
For support requests please use this form instead.



