The NoSQL DB Runner is a backend microservice that powers FlowX Database functionality. It provides MongoDB and Azure Cosmos DB operations support for FlowX Database collections and handles data persistence operations across FlowX processes. This guide provides detailed instructions for setting up the service and configuring its components through environment variables.
Environment Variable | Description | Example Value |
---|---|---|
DB_USERNAME | MongoDB username for the service | nosql-db-runner |
DB_PASSWORD | MongoDB password (should be stored as secret) | secret(mongodb-generic-devenv) |
SPRING_DATA_MONGODB_URI | Complete MongoDB connection string | mongodb://${DB_USERNAME}:${DB_PASSWORD}@nosql-db-runner-mongodb-0.nosql-db-runner-mongodb-headless,nosql-db-runner-mongodb-1.nosql-db-runner-mongodb-headless,nosql-db-runner-mongodb-arbiter-0.nosql-db-runner-mongodb-arbiter-headless:27017/nosql-db-runner?retryWrites=false |
Environment Variable | Description | Example Value |
---|---|---|
SECURITY_OAUTH2_BASE_SERVER_URL | Base URL for the OAuth 2.0 Authorization Server | https://auth.devmain.flowxai.dev/auth |
SECURITY_OAUTH2_CLIENT_CLIENT_ID | Unique identifier for the client application | paperflow-service |
SECURITY_OAUTH2_CLIENT_CLIENT_SECRET | Secret key for client authentication (stored as secret) | secret(keycloak-generic) |
SECURITY_OAUTH2_REALM | OAuth 2.0 realm name | paperflow |
Environment Variable | Description | Default Value |
---|---|---|
FLOWX_RUNOPERATIONS_DOCUMENTLIMIT | Maximum number of documents to be processed in a single operation | 50 |
Environment Variable | Description | Default Value |
---|---|---|
LOGGING_CONFIG_FILE | Path to the logging configuration file | logback-spring.xml |
LOGGING_LEVEL_ROOT | Root logger level for the Spring Boot service | DEBUG |
LOGGING_LEVEL_APP | Application-specific log level | DEBUG |
LOGGING_LEVEL_SOCKET | Socket communication log level | DEBUG |
Environment Variable | Description | Default Value |
---|---|---|
MANAGEMENT_SERVER_PORT | Port for management endpoints | 8081 |
MANAGEMENT_ENDPOINT_HEALTH_GROUP_LIVENESS_INCLUDE | Health checks for liveness probes | ping,accessInfo,buildInfo |
MANAGEMENT_ENDPOINT_HEALTH_GROUP_READINESS_INCLUDE | Health checks for readiness probes | ping,accessInfo,buildInfo |
MANAGEMENT_HEALTH_KUBERNETES_ENABLED | Enable Kubernetes health checks | false |
Environment Variable | Description | Default Value |
---|---|---|
MANAGEMENT_METRICS_EXPORT_PROMETHEUS_ENABLED | Enable Prometheus metrics export | true |
MongoDB connection failures
OAuth authentication errors