Installation of OMN Search
OMN Search consists of several components:
-
OMN Search Plug-in (RPM)
-
ElasticSearch (Docker Image, cf. www.elastic.co/)
-
Cerebro (optional)
-
Kibana (optional)
-
The OMN Search Plug-In should already be installed (cp. Install RPMs). Now the Docker image with the Elastic components has to be installed.
For the provision of all necessary Docker containers, we will set up a user on our Nexus (ext. Dockerhub) who has access to the required containers. Please contact to us.
-
Registration with user and password at hub.apollon.de
-
Create the file
/etc/docker-compose/elastic/docker-compose.yml
version: '3' services: elasticsearch: image::en@ hub.apollon.de/product/docker/elasticsearch:7.2.1 ports: - 9200:9200 - 9300:9300 volumes: - omn-elastic:/usr/share/elasticsearch/data environment: - node.name=es01 - cluster.name=omn-search - cluster.initial_master_nodes=es01 - bootstrap.memory_lock=true - "ES_JAVA_OPTS=-Xms512m -Xmx512m" ulimits: memlock: soft: -1 hard: -1 healthcheck: test: curl -s http://localhost:9200 >/dev/null; if [[ $$? == 52 ]]; then echo 0; else echo 1; fi interval: 30s timeout: 10s retries: 5 cerebro: image::en@ lmenezes/cerebro:0.8.4 ports: - 9100:9000 healthcheck: test: curl -s http://localhost:9000 >/dev/null; if [[ $$? == 52 ]]; then echo 0; else echo 1; fi interval: 30s timeout: 10s retries: 5 kibana: image::en@ docker.elastic.co/kibana/kibana:7.2.0 ports: - 5601:5601 healthcheck: test: curl -s http://localhost:5601 >/dev/null; if [[ $$? == 52 ]]; then echo 0; else echo 1; fi interval: 30s timeout: 10s retries: 5 volumes: omn-elastic: -
Set parameter vm.max_map_count to at least 262144
-
Command for a live system:
sysctl -w vm.max_map_count = 262144
-
-
Add properties:
| Properties file | Key=Value |
|---|---|
omn_auth.properties |
es.mandator = MandatorIdentifier es.hosts = localhost: 9200 |
# --- optional --- es.shards = 1 es.replicas = 0 es.fields-limit = 4000 es.sniffer.enabled = false es.update.batch-size = 100 es.update.workers = 1 es.mandator = DefaultMandator es.time-zone = Europe / Berlin es.init.force-reindex = false es.search.maxTrackTotalHits = 100000 es.suggest.count.max = 20 es.suggest.count.default = 10 es.suggest.minTextLength = 3 es.doc-builder.workers = 4 es.doc-builder.asset.batch-size = 500 es.doc-builder.channel.batch-size = 250 es.doc-builder.product.batch-size = 250 es.index.allow.rebuild = true es.index.allow.update = true |
|
omn_eai.properties |
omn.eai.common.mandatorName = MandatorIdentifier omn.eai.common.environment = CustomerENV omn.eai.exporter.cm.exportAllowedFunctions = true |
jwt_filter.properties |
api.secrets = {api: 'Heureka10', frontend: 'c04a3977-d082-4178-b5d8-00e8caeb0fff'} jwt.expire.max = 72000000 |
omn_api.properties |
api.secrets = {api: 'Heureka10', frontend: 'c04a3977-d082-4178-b5d8-00e8caeb0fff'} |
-
Start the docker-compose:
docker-compose up -d