High Availability

High Availability

Certainly OTDT could be operated in a high availability setting for (Production, …) Site Automation and the so called Industry 4.0.

General

2022-01-01 12:00

Prerequisites

  • An high available MongoDB Cluster
  • An HAProxy
  • At least 2 different machines with OTDT installed and ready to run

Configuration

To run OTDT in a high availability setting you will need to run OTDT in Stateful Operation mode. This means that you do need a storage for the State Store. It is strongly recommended to use MongoDB for this. Additionally the lock of the State Store will get managed using MongoDB as well.

# config/default.properties
#
# Key Value Store
keyvalue.type=mongodb
# If you need a cert for the connection
# keyvalue.cert=
keyvalue.host=_YOUR_MONGO_DB_HOST_
keyvalue.username=_YOUR_MONGO_DB_USER_
keyvalue.password=_YOUR_MONGO_DB_PASS_
keyvalue.database=_YOUR_MONGO_DB_DATABASE_
keyvalue.table=_YOUR_MONGO_DB_COLLECTION_
# State Store
# use "single" if you run into piling
app.settings.state.store.type=all
# 
app.settings.state.lock.type=global