配置文件说明

user-config.xml 配置文件

主数据平台的数据源使用 user-config.xml 配置文件进行配置。配置文件路径:${PACKAGE_HOME}/server/mdm/config/MDM/config/user-config.xml,内容如下:

...
<module name="DataSource">
    <group name="default">
            <configValue key="Database-Type">MySql</configValue># db类型
            <configValue key="Jdbc-Type"/>
            <configValue key="C3p0-DriverClass">com.mysql.cj.jdbc.Driver</configValue>#db驱动
            <configValue key="C3p0-Url">jdbc:mysql://IP:端口Port/mdm?useSSL=false</configValue>
            <configValue key="C3p0-UserName">用户名</configValue>
            <configValue key="C3p0-Password">密码</configValue>
            <configValue key="C3p0-PoolSize">5</configValue>
            <configValue key="C3p0-MaxPoolSize">30</configValue>
            <configValue key="C3p0-MinPoolSize">5</configValue>

            <!-- //seconds, 0 means connections never expire -->
            <configValue key="C3p0-MaxIdleTime">0</configValue>
            <!-- //idle connections never tested -->
            <configValue key="C3p0-IdleConnectionTestPeriod">0</configValue>
            <configValue key="C3p0-MaxStatements">0</configValue>
            <configValue key="C3p0-NumHelperThreads">3</configValue>

            <configValue key="Transaction-Isolation">ISOLATION_DEFAULT</configValue>
            <configValue key="Test-Connect-Sql">SELECT count(*) from EOS_UNIQUE_TABLE</configValue>
            <configValue key="Retry-Connect-Count">-1</configValue>
        </group>
        <group name="MDM_PUB">
            <configValue key="Database-Type">MySql</configValue># db类型
            <configValue key="Jdbc-Type"/>
            <configValue key="C3p0-DriverClass">com.mysql.cj.jdbc.Driver</configValue>#db驱动
            <configValue key="C3p0-Url">jdbc:mysql://jdbc:mysql://IP:端口Port/库db/mdm_pub?useSSL=false</configValue>
            <configValue key="C3p0-UserName">用户名</configValue>
            <configValue key="C3p0-Password">密码</configValue>
            <configValue key="C3p0-PoolSize">5</configValue>
            <configValue key="C3p0-MaxPoolSize">30</configValue>
            <configValue key="C3p0-MinPoolSize">5</configValue>

            <!-- //seconds, 0 means connections never expire -->
            <configValue key="C3p0-MaxIdleTime">0</configValue>
            <!-- //idle connections never tested -->
            <configValue key="C3p0-IdleConnectionTestPeriod">0</configValue>
            <configValue key="C3p0-MaxStatements">0</configValue>
            <configValue key="C3p0-NumHelperThreads">3</configValue>

            <configValue key="Transaction-Isolation">ISOLATION_DEFAULT</configValue>
            <configValue key="Test-Connect-Sql">SELECT count(*) from EOS_UNIQUE_TABLE</configValue>
            <configValue key="Retry-Connect-Count">-1</configValue>
        </group>
</module>
...

其中,default数据源作为主数据的主库使用(如果是集成式部署,也作为AFCenter的数据源);MDM_PUB数据源作为主数据的业务库使用。 达梦数据库配置特殊点:一定要配columnNameUpperCase,例如jdbc:dm://IP:Port?schema=模式名&columnNameUpperCase=false

application-afc.properties 配置文件

application-afc.properties 为AFCenter的配置文件。默认配置文件路径:${PACKAGE_HOME}/server/afcenter/config/application.properties,配置文件说明:

afc.application.name=10.15.15.130:28083 # 不使用nacos或eureka时,填写格式为: ip:port
afc.application.tenant=sys_tenant
afc.application.app-code=AFC
afc.application.app-secret=secret

application-mdm.properties 配置文件

application-mdm.properties为主数据管理平台的配置文件,默认配置文件路径:${PACKAGE_HOME}/server/mdm/config/application.properties,关键配置说明:

# unit: millis
mdm.schedule.fixed-delay.mdm-inst-heart-beat=30000
# default : statistic every hour
mdm.report.statistic.interval=0 0 * * * ?
# [file, db]
mdm.data-file.storage-type=file
mdm.data-file.storage-location=./data/data-files
# data model cache
#mdm.data-model-cache.enabled=true
# if set true, and request with a header 'X-MDM-UNIFIED-RESPONSE' = true, mdm will return unified response
mdm.support-unified-response=false
#data record log
mdm.data.record.log.enabled=true
# data-push
mdm.push.enabled=true
# if MDM singleton instance lock disabled, else enabled
mdm.push.lock-enabled=true
mdm.push.thread-pool.corePoolSize=50
mdm.push.thread-pool.maxPoolSize=100
mdm.push.thread-pool.queueCapacity=200
mdm.push.scan.interval-seconds=60
mdm.push.data-page-size=10
mdm.push.data-step-minutes=30

mdm.push.http.validate-response-body.enabled=true
mdm.push.http.validate-response-body.code-attr=code
mdm.push.http.validate-response-body.msg-attr=message
mdm.push.http.validate-response-body.ok-code=200

# t1, t1 + step, t1 + 2*step, ..., t1 + n*step
# t1 + n*step + mistake < now && lastModifiedAt BETWEEN (t1 + (n-1)*step) AND (t1 + n*step - 1s.)
mdm.push.time-mistake-seconds=30
mdm.push.in-time.event-queue-size=100000

# regular cleanup sequenceDate code maxValue
# default true
mdm.block-sequence-code.clear=true
mdm.block-sequence-code.clear.interval=0 0 2 * * ?

#mdm.op-log.data-query.enabled=true
#mdm.op-log.data-maintain.enabled=false
#mdm.op-log.clean.enabled=false
#mdm.op-log.clean.keep-days=30
mdm.op-log.clean.scheduled=0 0 3 * * ?

results matching ""

    No results matching ""