elasticsearchgitlabgitlab-omnibus

Advanced Searching Using Externally-Hosted Elasticsearch Instance


I am trying to enable search with Elasticsearch enabled for my self-hosted Gitlab instance.

My question is this:

I have an Elasticsearch instance that is external to my Gitlab instance i.e. my Gitlab instance is hosted on one server and my Elasticsearch instance is hosted on another server.

Am I able to use the external Elasticsearch instance to provide the Elasticsearch functionality that Gitlab requires in order to enable Advanced Search functionality?

Thanks, Sean


Solution

  • As long as you have network connectivity between your gitlab instance and your Elasticsearch instance, you can use the Elasticsearch functionality.

    Elasticsearch provides all the features and API in form of REST request and designed for distributed systems where several component of an application are hosted separately.

    Note: you can just use the curl command curl :9200 from your gitlab instance to see if you have network connectivity and if not, using security setting you can enable them , like in AWS ports settings can be changed using the security group.