Complete this procedure to configure CUCM Solution Pack with Elastic Search.

Prerequisites

  • Perform M&R 7.0u8 or later installation successfully..

Procedure

  1. Navigate to /opt/APG/bin/ directory.
  2. Open the /etc/sysctl.conf file.
  3. Add the following line:
    vm.max_map_count=262144
  4. Open the /etc/security/limits.conf file.
  5. Add the following line for the user:
    In this example, the user is apg.
    apg hard nofile 65536
    apg soft nofile 65536
    apg hard nproc 65536
    apg soft nproc 65536
  6. Save the file.
  7. To install the Elastic Search cluster package, invoke the following command:
    ./manage-modules.sh install elasticsearch-cluster

    When you are prompted for the IP address, provide the M&R host IP address. In the more entries option, select no unless Elastic Search needs to be configured in the cluster mode.

  8. To verify the changes, type the following command:
    su apg -c 'ulimit -n -u'
    Following is the output:
    open files                      (-n) 65536
    max user processes              (-u) 65536
  9. In /opt/APG/Databases/Elasticsearch/Default/conf/elasticsearch.yml file, add the following entry:
    bootstrap.seccomp: false
    script.max_compilations_per_minute: 120

    In elasticsearch.yml file, add the above line at the end.

  10. Restart Elastic Search server.

    Ensure that, Elastic Search server is running.

  11. Create a resource for each newly added elastic search database. Perform this operation every time a new Elastic Search node is added to the environment to scale-out backends.
    For example, to create a database resource:
    In Linux:
    ./bin/manage-resources.sh create dba/ES-TF-VOIP '{ "type": "elasticsearch", "datasource": { "hosts": ["http://<Elastic Search Server IP>:9200"],"prefix": "/cdr*"},"settings": {"mapping": "ES-CISCO-CDR.xml"},"disabled": false }'     
    
  12. Restart the Tomcat service.