升级
pib 升级
2022-12-7升级文档
2023-03-23 上线
2022-12-14发布
2023-02-15 上线
2023-02-22 上线
2023-03-01 上线
2023-03-08 上线
2023-03-15 上线
2023-03-22 上线
2023-03-29 上线
2023-04-06 上线
2023-04-12 上线
2023-04-13 上线
2023-04-19 上线
2023-04-25 上线
2023-04-24 上线
2023-04-27 上线
2023-05-09 上线
2023-05-17 上线
2023-05-18 上线
2023-05-24 上线
2023-05-30 上线
2023-05-31 上线
2023-06-07 上线
2023-6-12 上线
2023-6-14 上线
2023-6-15 上线
2023-6-27 上线
2023-06-28 上线
2023-06-29 上线
2023-07-05 上线
2023-07-11 上线
2023-07-12 升级
2023-07-19 升级
2023-07-20 上线
2023-07-26 上线
2023-08-02 上线
2023-08-09 上线
2023-08-16 上线
2023-08-30 上线
2023-09-06 上线
2024-02-21 预升级
2024-03-13 上线
2024-06-26 上线
2024-11-13上线
2024-11-19 待升级
本文档使用 MrDoc 发布
-
+
首页
pib 升级
# # 域名 ```IAPI``` : http://mdc-iapi.mabangerp.com # # 合并代码 1、合并代码: ```mc-base-modules``` ```mc-biz-base-modules``` ```mc-product-base-modules``` ```mps-pib-meta``` ```mps-pib-product``` ```mps-arise-meta``` ```mps-arise-product``` ```mps-product-tiktok``` ```mdc-open-api-information``` ```mdc-open-api-product``` ```mdc-open-api-publish``` ```mps-product-allproducer``` # # 建配置文件 1、mdc-prd 下新建 mdc-iapi-product-service.yml group:prd_mdc_group ```yaml spring: jackson: date-format: yyyy-MM-dd HH:mm:ss time-zone: GMT+8 datasource: dynamic: druid: initial-size: 5 max-active: 20 max-wait: 3000 validation-query: 'select 1' primary: shop_1 strict: true datasource: # 店铺 shop_1: username: c1_mabang password: c1_j7p@KUqbnKp url: jdbc:mysql://mysql.mabangerp.com:3306/mabang?characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false&useAffectedRows=true driver-class-name: com.mysql.cj.jdbc.Driver db-type: com.alibaba.druid.pool.DruidDataSource shop_2: username: c2_mabang password: c2_j7p@KUqbnKp url: jdbc:mysql://private-mysql.mabangerp.com:3307/mabang?characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false&useAffectedRows=true driver-class-name: com.mysql.cj.jdbc.Driver db-type: com.alibaba.druid.pool.DruidDataSource # 在线商品 item_1: username: c1_kandeng password: c1_igVeU-y7Hx url: jdbc:mysql://tidb-kandeng.mabangerp.com:3306/mabang_item?characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false&useAffectedRows=true driver-class-name: com.mysql.cj.jdbc.Driver db-type: com.alibaba.druid.pool.DruidDataSource item_2: username: c2_kandeng password: c2_igVeU-y7Hx url: jdbc:mysql://private-tidb-kandeng.mabangerp.com:3307/mabang_item?characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false&useAffectedRows=true driver-class-name: com.mysql.cj.jdbc.Driver db-type: com.alibaba.druid.pool.DruidDataSource mybatis-plus: mapper-locations: classpath*:com/mabang/**/mapper/xml/*.xml type-aliases-package: com.mabang.**.entity global-config: banner: false configuration: log-impl: org.apache.ibatis.logging.stdout.StdOutImpl feign: client: config: default: readTimeout: 30000 connectTimeout: 30000 management: endpoint: health: probes: enabled: true livenessState: enabled: true readinessState: enabled: true endpoints: web: base-path: / path-mapping: health: healthz mdc: api-doc: enable: true home-title: mdc-iapi-product log: enable: true cache: enable: false redis: enable: true auto-write: true primary: defaultTemplete servers: defaultTemplete: host: redis-publish.mabangerp.com port: 6379 password: 1lFccHspnNRWdop0 timeout: 10000 database: 0 dynamic-datasource: enable: true cluster-param-name: clusterId routes: shop: route-name: shop default-ds: shop_1 mapper-package: com.mabang.iapi.mapper.shop route-rule: shop_{clusterId} enableRouteRule: true item: route-name: item default-ds: item_1 mapper-package: com.mabang.iapi.mapper.item route-rule: item_{clusterId} enableRouteRule: true logging: config: local-path: /data/logs logstash-server: mdc-dev-logstash.mabangerp.com:5602 rocketmq: name-server: rocketmq-mdc.mabangerp.com:9876 producer: group: mabang-rocketmq-receive ``` 2、mdc-prd 下新建 mdc-pib-product-service.yml group:prd_mdc_group ```yaml spring: jackson: date-format: yyyy-MM-dd HH:mm:ss time-zone: GMT+8 datasource: dynamic: druid: initial-size: 5 max-active: 20 max-wait: 3000 validation-query: 'select 1' primary: publish_1 strict: true datasource: # 刊登 publish_1: username: c1_kandeng password: c1_igVeU-y7Hx url: jdbc:mysql://tidb-kandeng.mabangerp.com:3306/mabang_publishemart?characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false&useAffectedRows=true driver-class-name: com.mysql.cj.jdbc.Driver db-type: com.alibaba.druid.pool.DruidDataSource publish_2: username: c2_kandeng password: c2_igVeU-y7Hx url: jdbc:mysql://private-tidb-kandeng.mabangerp.com:3307/mabang_publishemart?characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false&useAffectedRows=true driver-class-name: com.mysql.cj.jdbc.Driver db-type: com.alibaba.druid.pool.DruidDataSource # 在线商品 product_1: username: c1_kandeng password: c1_igVeU-y7Hx url: jdbc:mysql://tidb-kandeng.mabangerp.com:3306/mabang_emartitem?characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false&useAffectedRows=true driver-class-name: com.mysql.cj.jdbc.Driver db-type: com.alibaba.druid.pool.DruidDataSource product_2: username: c2_kandeng password: c2_igVeU-y7Hx url: jdbc:mysql://private-tidb-kandeng.mabangerp.com:3307/mabang_emartitem?characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false&useAffectedRows=true driver-class-name: com.mysql.cj.jdbc.Driver db-type: com.alibaba.druid.pool.DruidDataSource # 在线商品 - 店铺 item_1: username: c1_kandeng password: c1_igVeU-y7Hx url: jdbc:mysql://tidb-kandeng.mabangerp.com:3306/mabang_item?characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false&useAffectedRows=true driver-class-name: com.mysql.cj.jdbc.Driver db-type: com.alibaba.druid.pool.DruidDataSource item_2: username: c2_kandeng password: c2_igVeU-y7Hx url: jdbc:mysql://private-tidb-kandeng.mabangerp.com:3307/mabang_item?characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false&useAffectedRows=true driver-class-name: com.mysql.cj.jdbc.Driver db-type: com.alibaba.druid.pool.DruidDataSource # 店铺 shop_1: username: c1_mabang password: c1_j7p@KUqbnKp url: jdbc:mysql://mysql.mabangerp.com:3306/mabang?characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false&useAffectedRows=true driver-class-name: com.mysql.cj.jdbc.Driver db-type: com.alibaba.druid.pool.DruidDataSource shop_2: username: c2_mabang password: c2_j7p@KUqbnKp url: jdbc:mysql://private-mysql.mabangerp.com:3307/mabang?characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false&useAffectedRows=true driver-class-name: com.mysql.cj.jdbc.Driver db-type: com.alibaba.druid.pool.DruidDataSource mybatis-plus: mapper-locations: classpath*:com/mabang/**/mapper/xml/*.xml type-aliases-package: com.mabang.**.entity global-config: banner: false configuration: log-impl: org.apache.ibatis.logging.stdout.StdOutImpl mdc: api-doc: enable: true home-title: mdc-pib-product log: enable: true cache: enable: false redis: enable: true auto-write: true primary: defaultTemplete servers: defaultTemplete: host: redis-publish.mabangerp.com port: 6379 password: 1lFccHspnNRWdop0 timeout: 10000 database: 0 dynamic-datasource: enable: true cluster-param-name: clusterId routes: publish: route-name: publish default-ds: publish_1 mapper-package: com.mabang.pib.mapper.publish route-rule: publish_{clusterId} enableRouteRule: true product: route-name: product default-ds: product_1 mapper-package: com.mabang.pib.mapper.product route-rule: product_{clusterId} enableRouteRule: true item: route-name: item default-ds: item_1 mapper-package: com.mabang.pib.mapper.item route-rule: item_{clusterId} enableRouteRule: true shop: route-name: shop default-ds: shop_1 mapper-package: com.mabang.pib.mapper.shop route-rule: shop_{clusterId} enableRouteRule: true feign: client: config: default: readTimeout: 5000 connectTimeout: 5000 management: endpoint: health: probes: enabled: true livenessState: enabled: true readinessState: enabled: true endpoints: web: base-path: / path-mapping: health: healthz logging: config: local-path: /data/logs logstash-server: mdc-dev-logstash.mabangerp.com:5602 rocketmq: name-server: rocketmq-mdc.mabangerp.com:9876 producer: group: mabang-rocketmq-receive ``` 3、mps-prd 下新建 mps-pib-meta-service.yml group:prd_mdc_group ```yaml spring: autoconfigure: exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure jackson: date-format: yyyy-MM-dd HH:mm:ss time-zone: GMT+8 datasource: dynamic: druid: initial-size: 5 max-active: 20 max-wait: 3000 validation-query: 'select 1' primary: baseinfo strict: true datasource: baseinfo: username: mdc password: cYFOolrMF0+MX94Z2RdHp url: jdbc:mysql://tidb-platform-metabase.mabangerp.com:3306/mdc_platform_meta_base?characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false&useAffectedRows=true driver-class-name: com.mysql.cj.jdbc.Driver db-type: com.alibaba.druid.pool.DruidDataSource data: mongodb: uri: mongodb://mdc:cYFOolrMF0+MX94Z2RdHp@mongo-product-online01.mabangerp.com:27017,mongo-product-online02.mabangerp.com:27017/mdc_product_base?authSource=admin&replicaSet=cmgo-4il97ta9_0 mybatis-plus: mapper-locations: classpath*:com/mabang/**/mapper/xml/*.xml type-aliases-package: com.mabang.**.entity global-config: banner: false mdc: api-doc: enable: true home-title: MDC-PIB-基础信息服务 log: enable: true cache: enable: true session: redis-template-bean: sessionTemplete shop-token: redis-template-bean: shopTokenTemplete translate: # 阿里翻译 ali: accessKeyId: LTAIXe8Noy1AJ5rf accessKeySecret: 3euOjXGGJpNfRZt6PCVyVdCPWOOK2C endpoint: mt.cn-hangzhou.aliyuncs.com redis: enable: true auto-write: true primary: defaultTemplete servers: sessionTemplete: host: redis-mdc.mabangerp.com port: 6379 password: TW7dko1Rrq7xyPX3 timeout: 10000 database: 15 shopTokenTemplete: host: redis-mdc.mabangerp.com port: 6379 password: TW7dko1Rrq7xyPX3 timeout: 10000 database: 14 defaultTemplete: host: redis-mdc.mabangerp.com port: 6379 password: TW7dko1Rrq7xyPX3 timeout: 10000 database: 4 dynamic-datasource: enable: true cluster-param-name: clusterId routes: baseinfo: route-name: baseinfo default-ds: baseinfo mapper-package: com.mabang.product.mapper.baseinfo route-rule: baseinfo_{clusterId} publishtask: route-name: publishtask default-ds: publishtask mapper-package: com.mabang.product.mapper.publishtask route-rule: publishtask_{clusterId} messagelog: route-name: messagelog default-ds: messagelog mapper-package: com.mabang.product.mapper.messagelog route-rule: messagelog_{clusterId} logging: config: local-path: /data/logs logstash-server: mdc-dev-logstash.mabangerp.com:5602 rocketmq: name-server: rocketmq-mdc-product01.mabangerp.com:9876;rocketmq-mdc-product02.mabangerp.com:9876 producer: group: mabang-rocketmq-product ``` 4、mps-prd 下新建 mps-pib-product-service.yml group:prd_mdc_group ```yaml spring: autoconfigure: exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure jackson: date-format: yyyy-MM-dd HH:mm:ss time-zone: GMT+8 datasource: dynamic: druid: initial-size: 5 max-active: 20 max-wait: 3000 validation-query: 'select 1' primary: publishtask strict: true datasource: publishtask: username: mdc password: cYFOolrMF0+MX94Z2RdHp url: jdbc:mysql://tidb-product-task.mabangerp.com:3306/mdc_product_task?characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false&useAffectedRows=true driver-class-name: com.mysql.cj.jdbc.Driver db-type: com.alibaba.druid.pool.DruidDataSource baseinfo: username: mdc password: cYFOolrMF0+MX94Z2RdHp url: jdbc:mysql://tidb-platform-metabase.mabangerp.com:3306/mdc_platform_meta_base?characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false&useAffectedRows=true driver-class-name: com.mysql.cj.jdbc.Driver db-type: com.alibaba.druid.pool.DruidDataSource data: mongodb: uri: mongodb://mdc:cYFOolrMF0+MX94Z2RdHp@mongo-product-online01.mabangerp.com:27017,mongo-product-online02.mabangerp.com:27017/mdc_product_online?authSource=admin&replicaSet=cmgo-4il97ta9_0 mybatis-plus: mapper-locations: classpath*:com/mabang/**/mapper/xml/*.xml type-aliases-package: com.mabang.**.entity global-config: banner: false mps: drools: enable: true ruleUrl: https://mdc-open-api.mabangerp.com/mps-product-monitor-service/rule/get refreshInterval: 300 platFormId: 129 ruleCodes: - error - info mdc: api-doc: enable: true home-title: MDC-PIB-刊登在线商品 log: enable: true cache: enable: true session: redis-template-bean: sessionTemplete shop-token: redis-template-bean: shopTokenTemplete redis: enable: true auto-write: true primary: defaultTemplete servers: sessionTemplete: host: redis-mdc.mabangerp.com port: 6379 password: TW7dko1Rrq7xyPX3 timeout: 10000 database: 15 shopTokenTemplete: host: redis-mdc.mabangerp.com port: 6379 password: TW7dko1Rrq7xyPX3 timeout: 10000 database: 14 defaultTemplete: host: redis-mdc.mabangerp.com port: 6379 password: TW7dko1Rrq7xyPX3 timeout: 10000 database: 4 dynamic-datasource: enable: true cluster-param-name: clusterId routes: baseinfo: route-name: baseinfo default-ds: baseinfo mapper-package: com.mabang.product.mapper.baseinfo route-rule: baseinfo_{clusterId} publishtask: route-name: publishtask default-ds: publishtask mapper-package: com.mabang.product.mapper.publishtask route-rule: publishtask_{clusterId} messagelog: route-name: messagelog default-ds: messagelog mapper-package: com.mabang.product.mapper.messagelog route-rule: messagelog_{clusterId} feign: client: config: default: readTimeout: 30000 connectTimeout: 30000 rocketmq: name-server: rocketmq-mdc-product01.mabangerp.com:9876;rocketmq-mdc-product02.mabangerp.com:9876 producer: group: mabang-rocketmq-product logging: config: local-path: /data/logs logstash-server: mdc-dev-logstash.mabangerp.com:5602 ``` 5、mps-prd 下新建 mps-product-tiktok-service.yml group:prd_mdc_group ```yaml spring: autoconfigure: exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure jackson: date-format: yyyy-MM-dd HH:mm:ss time-zone: GMT+8 datasource: dynamic: druid: initial-size: 5 max-active: 20 max-wait: 3000 validation-query: 'select 1' primary: publishTask strict: true datasource: publishTask: username: mdc password: cYFOolrMF0+MX94Z2RdHp url: jdbc:mysql://tidb-product-task.mabangerp.com:3306/mdc_product_task?characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false&useAffectedRows=true driver-class-name: com.mysql.cj.jdbc.Driver db-type: com.alibaba.druid.pool.DruidDataSource baseInfo: username: mdc password: cYFOolrMF0+MX94Z2RdHp url: jdbc:mysql://tidb-platform-metabase.mabangerp.com:3306/mdc_platform_meta_base?characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false&useAffectedRows=true driver-class-name: com.mysql.cj.jdbc.Driver db-type: com.alibaba.druid.pool.DruidDataSource data: mongodb: uri: mongodb://mdc:cYFOolrMF0+MX94Z2RdHp@mongo-product-online01.mabangerp.com:27017,mongo-product-online02.mabangerp.com:27017/mdc_product_online?authSource=admin&replicaSet=cmgo-4il97ta9_0 mps: #QPS组件配置 qps: enable: true redisTemplateBean: defaultTemplete thread: coreSize: 2 maxSize: 10 keepAlieTime: 60 queueSize: 100 drools: enable: true ruleUrl: https://mdc-open-api.mabangerp.com/mps-product-monitor-service/rule/get refreshInterval: 300 platFormId: 104 ruleCodes: - error - info mdc: api-doc: enable: true home-title: MDC-Tiktok-商品服务 log: enable: true cache: enable: true session: redis-template-bean: sessionTemplete shop-token: redis-template-bean: shopTokenTemplete redis: enable: true auto-write: true primary: defaultTemplete servers: defaultTemplete: host: redis-mdc.mabangerp.com port: 6379 password: TW7dko1Rrq7xyPX3 timeout: 10000 database: 4 sessionTemplete: host: redis-mdc.mabangerp.com port: 6379 password: TW7dko1Rrq7xyPX3 timeout: 10000 database: 15 shopTokenTemplete: host: redis-mdc.mabangerp.com port: 6379 password: TW7dko1Rrq7xyPX3 timeout: 10000 database: 14 dynamic-datasource: enable: true cluster-param-name: clusterId routes: baseInfo: route-name: baseInfo default-ds: baseInfo mapper-package: com.mabang.product.mapper.baseInfo route-rule: baseInfo_{clusterId} publishTask: route-name: publishTask default-ds: publishTask mapper-package: com.mabang.product.mapper.publishTask route-rule: publishTask_{clusterId} redisson: enable: true single-address: redis-mdc.mabangerp.com:6379 password: TW7dko1Rrq7xyPX3 database: 9 timeout: 30000 logging: config: local-path: /data/logs logstash-server: mdc-dev-logstash.mabangerp.com:5602 rocketmq: name-server: rocketmq-mdc-product01.mabangerp.com:9876;rocketmq-mdc-product02.mabangerp.com:9876 producer: group: mabang-rocketmq-product ``` # # Jenkins 构建打包 1、项目基础包构建 ```mc-base-modules``` 2、项目基础包构建 ```mc-biz-base-modules``` 3、项目基础包构建 ```mc-product-base-modules``` 4、广州项目 provider 包构建 ```mdc-pib-product``` > M-LIS 组下 Prd 新建 Jenkins Item : ```mdc-pib-product-build-package``` 并构建成功 5、香港项目 provider 包构建 ```mps-pib-product``` > MPS-LIS 组下 Prd 新建 Jenkins Item : ```mps-pib-product-build-package``` 并构建成功 6、香港项目 provider 包构建 ```mps-arise-meta``` > MPS-SCHED 组下 Prd 新建 Jenkins Item : ```mps-arise-meta-build-package``` 并构建成功 7、香港项目 provider 包构建 ```mps-arise-product``` > MPS-LIS 组下 Prd 新建 Jenkins Item : ```mps-arise-product-build-package``` 并构建成功 8、香港项目 provider 包构建 ```mps-product-tiktok``` > MPS-LIS 组下 Prd 新建 Jenkins Item : ```mps-product-tiktok-build-package``` 并构建成功 # # Jenkins 构建发布 1、项目构建发布 ```mabang-push-message``` 2、项目构建发布 ```mabang-receive-message``` 3、项目构建发布 ```mdc-pib-product``` > M-LIS 组下 Prd 新建 Jenkins Item : ```mdc-pib-product``` 并构建成功 4、项目构建发布 ```mdc-iapi-product``` > M-OAPI 组下 Prd 新建 Jenkins Item : ```mdc-iapi-product``` 并构建成功 5、项目构建发布 ```mps-pib-meta``` > MPS-SCHED 组下 Prd 新建 Jenkins Item : ```mps-pib-meta``` 并构建成功 6、项目构建发布 ```mps-pib-product``` > MPS-LIS 组下 Prd 新建 Jenkins Item : ```mps-pib-product``` 并构建成功 7、项目构建发布 ```mps-product-tiktok``` > MPS-LIS 组下 Prd 新建 Jenkins Item : ```mps-product-tiktok``` 并构建成功 8、项目构建发布 ```mdc-open-api-publish``` 9、项目构建发布 ```mdc-open-api-product``` 10、项目构建发布 ```mdc-open-api-information``` 11、项目构建发布 ```mps-product-allproducer```
chenjunan
2022年11月30日 20:25
转发文档
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
Markdown文件
分享
链接
类型
密码
更新密码