Elasticsearch search node for Netgrif Platform: case, task and process search over REST and gRPC.
245
The Search Node is the search service of the Netgrif Platform (Netgrif Application Engine, NAE). It answers search, count and aggregation queries over the platform's Elasticsearch indices of Petriflow cases, tasks and processes, and serves them to the other platform components over REST and gRPC.
| Base image | eclipse-temurin:21-jre |
| Java | 21 |
| User | 10001:10001 (non-root netgrif) |
| Work dir | /opt/netgrif/search |
| Entry point | java -Dfile.encoding=UTF-8 -jar app.jar |
| License files | /opt/netgrif/search/LICENSE.txt, /opt/netgrif/search/THIRD-PARTY.txt |
The Search Node keeps no state of its own; everything lives in Elasticsearch and Redis.
docker pull netgrif/search:1.1.0
docker run -d --name netgrif-search \
-p 8080:8080 \
-p 9600:9600 \
-e NETGRIF_SEARCH_NODE_NAME=search-1 \
-e NETGRIF_SEARCH_NODE_HOST=search-1 \
-e NETGRIF_SEARCH_NODE_REST_PORT=8080 \
-e NETGRIF_SEARCH_DATA_ELASTIC_URL=elasticsearch \
-e NETGRIF_SEARCH_DATA_ELASTIC_SEARCH_PORT=9200 \
-e NETGRIF_SEARCH_DATA_REDIS_HOST=redis \
-e NETGRIF_SEARCH_NODE_ADMIN_NODE_HOST=netgrif-admin \
-e NETGRIF_SEARCH_NODE_ADMIN_NODE_GRPC_PORT=9999 \
-v netgrif-search-log:/opt/netgrif/search/log \
netgrif/search:1.1.0
All settings can be passed as environment variables (Spring Boot relaxed binding) or as --key=value application
arguments. The most important ones:
| Variable | Default | Description |
|---|---|---|
SERVER_PORT | 8080 | HTTP port of the REST API and management endpoints |
NETGRIF_SEARCH_NODE_REST_PORT | 8600 | REST port announced to the cluster — must match the real HTTP port |
NETGRIF_SEARCH_NODE_GRPC_PORT | 9600 | gRPC server port |
NETGRIF_SEARCH_NODE_HOST | localhost | Address of this node reachable by the other cluster nodes |
NETGRIF_SEARCH_NODE_NAME | NETGRIF Search | Node name |
NETGRIF_SEARCH_NODE_ZONE | - | Cluster zone of the node |
NETGRIF_SEARCH_NODE_ADMIN_NODE_HOST | localhost | Netgrif Admin node host |
NETGRIF_SEARCH_NODE_ADMIN_NODE_GRPC_PORT | 9999 | Netgrif Admin node gRPC port |
NETGRIF_SEARCH_DATA_ELASTIC_URL | localhost | Elasticsearch host(s), comma separated |
NETGRIF_SEARCH_DATA_ELASTIC_SEARCH_PORT | 9200 | Elasticsearch HTTP port |
NETGRIF_SEARCH_DATA_ELASTICSEARCH_USERNAME / _PASSWORD | - | Elasticsearch credentials (also _TOKEN, or _SSL=true) |
NETGRIF_SEARCH_DATA_REDIS_HOST / NETGRIF_SEARCH_DATA_REDIS_PORT | localhost / 6379 | Redis connection |
OTEL_SDK_DISABLED, OTEL_TRACES_EXPORTER, OTEL_EXPORTER | true, none, http://localhost:4317 | OpenTelemetry tracing/metrics export |
| Port | Protocol | Purpose |
|---|---|---|
8080 | HTTP | REST API, management endpoints, health probes |
9600 | gRPC | Cluster API for engines, plugins and the Admin node |
REST (authenticated, HAL JSON):
POST /api/workflow/case/searchPOST /api/workflow/case/countPOST /api/task/searchPOST /api/task/search_esPOST /api/task/countPOST /api/dashboard/search?type=<index> — raw Elasticsearch aggregationgRPC services exposed by the node:
ElasticCaseService — case search and count (streamed)PluginActionService — plugin actions to search and count cases and tasksSearchUpdateNodeService — index configuration received from the clusterHealth and metrics:
GET /manage/health, /manage/health/liveness, /manage/health/readinessGET /manage/metric — Prometheus metrics/opt/netgrif/search/log — application logs (log/search.log)The software is licensed under the NETGRIF Community License 2.0: free of charge for development, testing,
evaluation, education and other non-production use. Production use, or providing products or services to others,
requires a commercial license from NETGRIF, s.r.o. See LICENSE.txt in the image and https://netgrif.com/license.
docker pull netgrif/search:1.1.1