GoRules Agent deployment and environment variables
The GoRules Agent is a standalone microservice that acts as a high-performance Rules Engine over REST, without requiring a UI. It is designed to pull Releases from Object Storage, automatically re-load them at runtime when changes occur, and evaluate decision models efficiently. This ensures that your rules are always up-to-date and accessible with minimal configuration.
The Agent is available as a single Docker image, which can be easily downloaded and deployed. You can find it at the following link:
Environment Variables
AWS
In case your deployment supports IAM, most of the environment variables below are optional.
PROVIDER__TYPE=S3
PROVIDER__BUCKET=bucket
PROVIDER__PREFIX=staging # Optional bucket prefix
PROVIDER__REGION=us-east-1 # Optional in case of IAM
AWS_ACCESS_KEY_ID=<aws-access-key-id> # Optional in case of IAM
AWS_SECRET_ACCESS_KEY=<aws-secret-access-key> # Optional in case of IAM
Azure
PROVIDER__TYPE=AzureStorage
PROVIDER__CONNECTION_STRING=<connection-string>
PROVIDER__CONTAINER=<container-name>
PROVIDER__PREFIX=staging # Optional storage prefix
Google Cloud
PROVIDER__TYPE=GCS
PROVIDER__BUCKET=<bucket-name>
PROVIDER__BASE64_CONTENTS=<base64-credential-contents>
PROVIDER__PREFIX=staging # Optional bucket prefix
MinIO (and S3-like)
PROVIDER__TYPE=S3
PROVIDER__REGION=us-east-1
PROVIDER__BUCKET=bucket
PROVIDER__FORCE_PATH_STYLE=true
PROVIDER__ENDPOINT=http://localhost:9000
PROVIDER__PREFIX=folder/
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
Additional options
POLL_INTERVAL=5000 # Dictates how often (in ms) agent polls for new data
# In some special cases you might want to load from FS or from FS Zip file
PROVIDER__TYPE=Zip # or
PROVIDER__TYPE=Filesystem
# In case of Filesystem or Zip, the following is also available
PROVIDER__ROOT_DIR=./data # Load from ./data folder
Health Probes
Transport: HTTP
Path: /api/health
Port: 8080
Optional:
Initial delay seconds: 3
Period seconds: 10