Setting up a database
Set up a database for your runtime servers to persist entity data and system state data.
Before you begin
A relational database can be configured to store the runtime state while Insight Server is running. After a system outage, the stored runtime state can be recovered from the database. The runtime state includes entity business information, in-progress transactions, and the history of events and event data.
Decide on whether to persist the runtime data in a database by balancing the following factors:
- The value of the business information in the runtime state of the system is sufficiently valuable.
- The risk of a full system outage is sufficiently high.
- The performance impact to the business case is sufficiently small.
About this task
If persistence is required, you must set up a database by using the provided SQL scripts.
Decision Server Insights includes a DB2® database script DB2Distrib.sql, which is in <InstallDir>/runtime/ia/persistence/sql/DB2, and an Oracle database script OracleDistrib.sql, which is in <InstallDir>/runtime/ia/persistence/sql/Oracle.
Procedure
Results
After the SQL script is run, an administrator can check the database to validate the following tables are created:
| Database tables | Description |
|---|---|
| DELAYEDEVENTS | Data about the events that are due to be processed at a specific time. |
| ENTITIES | Data about the entities in the run time. |
| EVENTSTORE | Data about the event history that is related to entities. |
| INBOUNDEVENTS | Data about the events that are waiting to go into an agent. |
| JOBHISTORY | Data about the stored global aggregates. |
| JOBRESULTS | Data about the stored global aggregates. |
| OUTBOUNDEVENTS | Data about the events that are waiting to be sent, or in progress of being sent, to an outbound endpoint. |
| RULESETS | Data about the rule engine state. |
What to do next
When a server that is configured for database persistence and ready to start, run the server start command. After the server is started, run the dataLoadManager finalize command to activate the persistence.