camunda-engine-wrapper

command module
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

README

Configuration

config.json env desc
server_port SERVER_PORT port of wrapper api
zookeeper_url ZOOKEEPER_URL url to zookeeper
kafka_group KAFKA_GROUP used kafka consumer group
deployment_topic DEPLOYMENT_TOPIC kafka topic of deployments
incident_topic INCIDENT_TOPIC kafka topic of incidents
wrapper_db WRAPPER_DB connection string to postgres database to store virtual ids (e.g. postgres://usr:pw@databasip:5432/shards?sslmode=disable)
sharding_db SHARDING_DB connection string to postgres database to store sharding information (e.g. postgres://usr:pw@databasip:5432/shards?sslmode=disable)
debug DEBUG more logs

Wrapper

to run the api wrapper normally, call the program without any additional flags

./camunda-engine-wrapper

Scripts in BPMN Processes

the wrapper will prefix every script received with var java = {}; var execution = {}; to prevent insecure access.

New Shard

  • ensure that the config-variable sharding_db is set (env or json)
  • call ./addshard http://shard-url:8080

Vid Consistence Cleanup

  • use the cleanup executable to find and remove unlinked vid and processes
  • sub commands are
    • list-unlinked-vid: lists unlinked vid
    • list-unlinked-pid: lists unlinked processes
    • remove-vid: removes given vid
    • remove-pid: removes given processes
  • all config variables (except ServerPort and LogLevel ar used)
./cleanup remove-vid $(./cleanup list-unlinked-vid)

Docker

  • env variables can be passed with the -e flag
  • program-flags can be passed at the end of the docker run command
docker build -t enginewrapper .
docker run -e PG_CONN=postgres://usr:pw@databasip:5432/shards?sslmode=disable enginewrapper -migrate_shard=http://new_shard_url:8080

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
Package etree provides XML services through an Element Tree abstraction.
Package etree provides XML services through an Element Tree abstraction.
lib
api
vid

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL