Changing the ports used to connect to Elasticsearch

If you change the ports used by Elasticsearch, you will need to update the ports used by IBM Spectrum LSF Explorer to connect to Elasticsearch.

About this task

For IBM Spectrum LSF Explorer Server, update the port to connect to Elasticsearch in the configuration file SERVER_TOP/lsfsuite/ext/explorer/server/config/config.json.

For IBM Spectrum LSF Explorer Data Collector, update the port number used to communicate with Elasticsearch in the configuration file COLLECTOR_TOP/lsfsuite/ext/perf/conf/datasource.xml.

Procedure

  1. Update the port used by IBM Spectrum LSF Explorer Server to communicate with Elasticsearch.
    1. Log on to IBM Spectrum LSF Explorer Server and edit the SERVER_TOP/lsfsuite/ext/explorer/server/config/config.json file, where SERVER_TOP is the top-level installation directory on the IBM Spectrum LSF Explorer Server.
      Change the port parameter:
      "ds1": {"name": "ES Instance1", "type": "elasticsearch", "hosts": [{"host": "9.111.251.88", "port": 9200}]},
    2. Restart IBM Spectrum LSF Explorer Server services.
      
      pmcadmin stop
      pmcadmin start
      
  2. Update the port used by IBM Spectrum LSF Explorer Data Collector to communicate with Elasticsearch.
    1. Log on to IBM Spectrum LSF Explorer Data Collector host and edit the COLLECTOR_TOP/lsfsuite/ext/perf/conf/datasource.xml file, where COLLECTOR_TOP is the top-level installation directory on the IBM Spectrum LSF Explorer Data Collector.
      Change the port in the Connection parameter:
      
      Connection="ES_SERVER:PORT"
      <ds:DataSource Name="ReportES"
      Driver="org.elasticsearch"
      ClassPath="/opt/ibm/lsfsuite/ext/perf/1.2/lib/elasticsearch_rest_5.4.0.jar"
      Connection="host1:9200"
      Default="true"

      Edit the COLLECTOR_TOP/lsfsuite/ext/perf/conf/nodelist.elastic file. Navigate to the line for host1, change the port of host1 to align with the port in datasource.xml. For example, edit datasource.xml, if changing the Connection parameter from host1:9200 to host1:8200, then the nodelist.elastic file must be edited to change the line host1:9200 to host1:8200 accordingly.

    2. Set the environment to restart the data collectors.
      • For csh or tcsh: source COLLECTOR_TOP/lsfsuite/ext/perf/conf/cshrc.perf
      • For sh, ksh, or bash: . COLLECTOR_TOP/lsfsuite/ext/perf/conf/profile.perf
    3. Stop the data collector services.
      perfadmin stop all

      Wait until all STATUS appears as STOPPED before you restart the service.

    4. Start the data collector services.
      perfadmin start all
    5. Check that the data loaders are running.
      plcclient.sh -s