Configuring Background Services for Multiple Instance Setup
## Overview
This feature enables Pleasanter's background services to support multi-instance configurations.
For example, consider a configuration where two servers running Pleasanter (multiple instances) are placed between a load balancer and a database. When the reminder function is enabled on each instance, the following issues occur:
### With Standard Configuration

Reminders are executed on each instance, resulting in unnecessary duplicate email transmissions.
### When Background Services are Configured for Multi-Instance Support on Each Instance

Reminders are executed on only one instance, preventing unnecessary duplicate email transmissions.
### Background Services Supporting Multi-Instance Configuration
The background services that support multi-instance configuration are as follows:
1. Services that will be executed on only one server in a multi-instance environment with this configuration:
|Service Name|Parameter File|Parameter Name|
|:--|:--|:--|
|Background Server Script|"[Script.json](/en/manual/script-json)"|BackgroundServerScript|
|Reminder|"[BackgroundService.json](/en/manual/background-service-json)"|Reminder|
|LDAP Synchronization|"[BackgroundService.json](/en/manual/background-service-json)"|SyncByLdap|
|System Log Deletion|"[BackgroundService.json](/en/manual/background-service-json)"|DeleteSysLogs|
|Trash Record Deletion|"[BackgroundService.json](/en/manual/background-service-json)"|DeleteTrushBox|
1. Services that will continue to be executed on all servers in a multi-instance environment after this configuration:
|Service Name|Parameter File|Parameter Name|
|:--|:--|:--|
|Temporary File Deletion|"[BackgroundService.json](/en/manual/background-service-json)"|DeleteTemporaryFiles|
## Notes
1. <span style="color:red">For operations in multi-instance configurations, we recommend a configuration with session persistence enabled (session affinity / sticky sessions) to ensure stable operation.</span>
1. This explanation assumes an environment with multiple servers running Pleasanter as backends of a load balancer (LB).
## Prerequisites
1. When using SQL Server without an SSL certificate as the database, such as in development environments, add TrustServerCertificate=True; to the connection information such as SaConnectionString.
Example:
For Implem.Pleasanter_Rds_SQLServer_SaConnectionString:
```
Server=(local);Database=master;UID=sa;PWD=<configured password>;Connection Timeout=30;TrustServerCertificate=True;
```
1. For operations in multi-instance configurations, please also implement "Settings for Attachment File Upload and Registration."
## Configuration Steps
By executing the following procedures, Pleasanter's background services will support multi-instance configurations. After executing this procedure, 11 tables beginning with "QRTZ_" will be created.
Parameter configuration must be performed on all AP servers in the multi-instance configuration.
1. Set the value of the parameter "Enabled" in the "[Quartz.json](/en/manual/quartz-json)" to true.
```
"Clustering": {
"Enabled": true,
: (omitted)
}
```
2. Execute "[CodeDefiner](/en/manual/codedefiner-command)."
## Supported Versions
|Supported Version|Description|
|:--|:--|
|Version 1.4.22.0|Feature added|
## Related Information
<div id="ManualList"><ul><li><a href="/en/manual/background-service-json">Set Parameter: BackgroundService.json</a><span>08.13.2024 up</span></li>
<li><a href="/en/manual/quartz-json">Set Parameter: Quartz.json</a><span>11.11.2025 up</span></li>
<li><a href="/en/manual/script-json">Set Parameter: Script.json</a><span>10.02.2024 up</span></li></ul></article>
<ul><li><a href="/en/manual/codedefiner-command">List of CodeDefiner Commands</a><span>11.07.2025 up</span></li></ul></article></div><input id="SearchTextHidden" type="hidden" value="" />