This module is the jdbc registry plugin module, this plugin will use jdbc as the registry center. Will use the database configuration same as DolphinScheduler in api'yaml default.
After do this two steps, you can start your DolphinScheduler cluster, your cluster will use mysql as registry center to
store server metadata.
NOTE: You need to add `mysql-connector-java.jar` into DS classpath if you use mysql database, since this plugin will not bundle this driver in distribution.
You can get the detail about <ahref="https://dolphinscheduler.apache.org/en-us/docs/3.1.2/guide/installation/pseudo-cluster">Initialize the Database</a>.
## Optional configuration
```yaml
registry:
type: jdbc
# Used to schedule refresh the ephemeral data/ lock.
term-refresh-interval: 2s
# Used to calculate the expire time,
# e.g. if you set 2, and latest two refresh error, then the ephemeral data/lock will be expire.
term-expire-times: 3
```
## Use different database configuration for jdbc registry center
You need to set the registry properties in master/worker/api's appplication.yml