HUB
Sign inSign up
search logo

netgrif/search

By netgrif

•Updated 6 days ago

Elasticsearch search node for Netgrif Platform: case, task and process search over REST and gRPC.

Image
Integration & delivery
Web servers
0

245

netgrif/search repository overview

⁠Netgrif Search Node

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.

⁠Features

  • Search, count and aggregation over Elasticsearch indices of cases, tasks and Petri nets (processes)
  • Permission-aware queries — view permissions of the logged-in user are applied to the search
  • Full-text search, filters, sorting and pagination
  • REST API (HAL JSON) and gRPC API (streamed with ProtoChunker)
  • Cluster-aware — registers with the Netgrif Admin node over gRPC and receives the cluster's index configuration
  • Management endpoints, Prometheus metrics and optional OpenTelemetry tracing
  • Runs as an unprivileged, non-root user

⁠Image details

Base imageeclipse-temurin:21-jre
Java21
User10001:10001 (non-root netgrif)
Work dir/opt/netgrif/search
Entry pointjava -Dfile.encoding=UTF-8 -jar app.jar
License files/opt/netgrif/search/LICENSE.txt, /opt/netgrif/search/THIRD-PARTY.txt

⁠Requirements

  • Elasticsearch cluster containing the platform indices
  • Redis shared with the platform (sessions and cluster events)
  • Netgrif Admin node (gRPC) for node registration — without it the node starts, but is not part of the cluster
  • Other Netgrif Platform nodes (engines) that provide the indexed data and consume the search results

The Search Node keeps no state of its own; everything lives in Elasticsearch and Redis.

⁠Quick start

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

⁠Configuration

All settings can be passed as environment variables (Spring Boot relaxed binding) or as --key=value application arguments. The most important ones:

VariableDefaultDescription
SERVER_PORT8080HTTP port of the REST API and management endpoints
NETGRIF_SEARCH_NODE_REST_PORT8600REST port announced to the cluster — must match the real HTTP port
NETGRIF_SEARCH_NODE_GRPC_PORT9600gRPC server port
NETGRIF_SEARCH_NODE_HOSTlocalhostAddress of this node reachable by the other cluster nodes
NETGRIF_SEARCH_NODE_NAMENETGRIF SearchNode name
NETGRIF_SEARCH_NODE_ZONE-Cluster zone of the node
NETGRIF_SEARCH_NODE_ADMIN_NODE_HOSTlocalhostNetgrif Admin node host
NETGRIF_SEARCH_NODE_ADMIN_NODE_GRPC_PORT9999Netgrif Admin node gRPC port
NETGRIF_SEARCH_DATA_ELASTIC_URLlocalhostElasticsearch host(s), comma separated
NETGRIF_SEARCH_DATA_ELASTIC_SEARCH_PORT9200Elasticsearch HTTP port
NETGRIF_SEARCH_DATA_ELASTICSEARCH_USERNAME / _PASSWORD-Elasticsearch credentials (also _TOKEN, or _SSL=true)
NETGRIF_SEARCH_DATA_REDIS_HOST / NETGRIF_SEARCH_DATA_REDIS_PORTlocalhost / 6379Redis connection
OTEL_SDK_DISABLED, OTEL_TRACES_EXPORTER, OTEL_EXPORTERtrue, none, http://localhost:4317OpenTelemetry tracing/metrics export

⁠Ports

PortProtocolPurpose
8080HTTPREST API, management endpoints, health probes
9600gRPCCluster API for engines, plugins and the Admin node

⁠API overview

REST (authenticated, HAL JSON):

  • POST /api/workflow/case/search
  • POST /api/workflow/case/count
  • POST /api/task/search
  • POST /api/task/search_es
  • POST /api/task/count
  • POST /api/dashboard/search?type=<index> — raw Elasticsearch aggregation

gRPC services exposed by the node:

  • ElasticCaseService — case search and count (streamed)
  • PluginActionService — plugin actions to search and count cases and tasks
  • SearchUpdateNodeService — index configuration received from the cluster

Health and metrics:

  • GET /manage/health, /manage/health/liveness, /manage/health/readiness
  • GET /manage/metric — Prometheus metrics

⁠Volumes

  • /opt/netgrif/search/log — application logs (log/search.log)

⁠Documentation

⁠License

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⁠.

Tag summary
Recent tags
Content type
Image
Digest
sha256:9c1dbf458…
Size
234.4 MB
Last updated
6 days ago
docker pull netgrif/search:1.1.1