You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.9 KiB
65 lines
1.9 KiB
2 years ago
|
# Introduction
|
||
|
|
||
|
This module is the mysql registry plugin module, this plugin will use mysql as the registry center.
|
||
|
|
||
|
# How to use
|
||
|
|
||
2 years ago
|
## Use Mysql as registry center
|
||
|
If you want to set mysql as the registry center, you need to do the below two steps:
|
||
2 years ago
|
|
||
|
1. Initialize the mysql table
|
||
|
|
||
|
You can directly execute the sql script `src/main/resources/mysql_registry_init.sql`.
|
||
|
|
||
|
2. Open the config
|
||
|
|
||
|
You need to set the registry properties in master/worker/api's appplication.yml
|
||
|
|
||
|
```yaml
|
||
|
registry:
|
||
2 years ago
|
type: jdbc
|
||
2 years ago
|
term-refresh-interval: 2s
|
||
|
term-expire-times: 3
|
||
|
hikari-config:
|
||
|
jdbc-url: jdbc:mysql://127.0.0.1:3306/dolphinscheduler
|
||
|
username: root
|
||
|
password: root
|
||
|
maximum-pool-size: 5
|
||
|
connection-timeout: 9000
|
||
|
idle-timeout: 600000
|
||
|
```
|
||
|
|
||
|
After do this two steps, you can start your DolphinScheduler cluster, your cluster will use mysql as registry center to
|
||
|
store server metadata.
|
||
|
|
||
2 years ago
|
NOTE: You need to add `mysql-connector-java.jar` into DS classpath, since this plugin will not bundle this driver in distribution.
|
||
2 years ago
|
You can get the detail about <a href="https://dolphinscheduler.apache.org/en-us/docs/3.1.2/guide/installation/pseudo-cluster">Initialize the Database</a>
|
||
2 years ago
|
|
||
|
## Use Postgresql as registry center
|
||
|
If you want to set Postgresql as the registry center, you need to do the below two steps:
|
||
|
|
||
|
1. Initialize the PostgreSQL table
|
||
|
|
||
|
You can directly execute the sql script `src/main/resources/postgresql_registry_init.sql`.
|
||
|
|
||
|
2. Open the config
|
||
|
|
||
|
You need to set the registry properties in master/worker/api's appplication.yml
|
||
|
|
||
|
```yaml
|
||
|
registry:
|
||
|
type: jdbc
|
||
|
term-refresh-interval: 2s
|
||
|
term-expire-times: 3
|
||
|
hikari-config:
|
||
|
jdbc-url: jdbc:postgresql://localhost:5432/dolphinscheduler
|
||
|
username: root
|
||
|
password: root
|
||
|
maximum-pool-size: 5
|
||
|
connection-timeout: 9000
|
||
|
idle-timeout: 600000
|
||
|
```
|
||
|
|
||
|
After do this two steps, you can start your DolphinScheduler cluster, your cluster will use postgresql as registry center to
|
||
|
store server metadata.
|