Introduction
This module provides a full blown catalog that helps you visualize all the available daemon, their groups and the available jobs in every daemon.
In addition, it assists you in creating daemon groups which basically control the behavior of these daemons when you deploy them.
Objective
- List all activated daemons
- List daemon jobs
- Manage daemon groups
- Configure Daemon Groups
- How to Build a Daemon
Daemons
Daemon Groups
Groups are created for active daemons and provide control on how daemons should behave in the environments they are deployed in.
Using groups, you can configure a daemon to run based on a time interval, cron job with timezone support or run only once.
In addition you can configure which jobs to run and how to run them: in parallel - sequentially.
In the case where you have more than one instance of the same daemon deployed in the same environment, you can also define if these instances can run at the same time or only one instance at a time.
Daemon Groups also supply configuration to daemons jobs per environment, this configuration can either be global or multitenant.
Configuration Type | Description | ||
---|---|---|---|
Global | Provides a JSON object that contains the configuration you enter using via the user interface. This configuration is the same regardless of the environment you deploy the daemon in. | ||
Multitenant | Links the daemon to tenant keys. Tenant keys can be associated with configuration per tenant ( servicesConfig ) and at runtime, for each key linked to the daemon, the daemon jobs of that daemon are repeated. Ex: if you have a daemon with 2 jobs and you link it to 2 tenant keys, at runtime a total of 4 jobs will be executed:
|
Daemon Groups |
---|
Time Based Interval Daemon |
---|
Cron Job Based Daemon |
---|
Global Daemon Configuration |
---|
Multitenant Configuration |
---|
How to Build a Daemon
The dashboard daemon module shows you the list of activated daemons only, therefore, before you activate a daemon you need to build it.
To build a daemon you need the SOAJ framework. Click here to learn how to build a daemon, then activate it using Repositories.
Once activated, return to this module in the dashboard and you will be able to create a group for it and configure it.
After creating a group for your daemon, you can deploy it manually or using the dashboard. Click here to learn how to deploy a daemon.