升级
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 发布
-
+
首页
2023-08-16 上线
# 一.合并 `M-SCHED` 下 `mdc-meta-amazon` `MC` 下 `product` 下 `mdc-sync-product-modules` `M-OAPI` 下 `mdc-oapi-product ` `M-LIS` 下 `mdc-tokopedia-product` `MPS-LIS` 下 `mps-mercadolibre-product` `mabang3-addl` 下 `mabang-data-publish-shoptask` `mabang3-addl` 下 `mabang-data-publish-woocommerce` # 二.配置文件更新 1. `mdc-prd` 下 `mdc-oapi-product-service.yml` 更新 ```yml mdc: erp: # 集成使用 erp session session: auth: # 认证配置 exclude-url-patterns: # 需要排除拦截的URL - /tokopedia/** ``` 2. `mdc-prd` 下 `mdc-tokopedia-product-service.yml` 新增 ```yml spring: jackson: date-format: yyyy-MM-dd HH:mm:ss time-zone: GMT+8 data: mongodb: uri: mongodb://kandeng_java:8ITuj4PATc8A@mongodb-kd-java01.mabangerp.com:27017,mongodb-kd-java02.mabangerp.com:27017/mabang_kandeng_java?replicaSet=cmgo-9zp2fdr5_0 datasource: dynamic: druid: initial-size: 10 max-active: 100 max-wait: 10000 validation-query: 'select 1' test-on-return: true test-on-borrow: true primary: product_1 strict: true datasource: # 商品 product_1: username: c1_kandeng password: c1_igVeU-y7Hx url: jdbc:mysql://tidb-kandeng.mabangerp.com:3306/mabang_tokopediaitem?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:3306/mabang_tokopediaitem?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: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 # 店铺 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: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 mybatis-plus: # configuration: # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl mapper-locations: classpath*:com/mabang/**/mapper/xml/*.xml type-aliases-package: com.mabang.product.entity* global-config: banner: false mdc: api-doc: enable: true home-title: mdc-tokopedia-product redisson: enable: true single-address: redis-publish.mabangerp.com:6379 password: 1lFccHspnNRWdop0 database: 9 timeout: 30000 pool: size: 150 minIdle: 10 log: enable: true cache: enable: true redis: enable: true auto-write: true primary: defaultTemplete servers: defaultTemplete: host: redis-publish.mabangerp.com port: 6379 password: 1lFccHspnNRWdop0 timeout: 10000 database: 11 dynamic-datasource: enable: true cluster-param-name: clusterId routes: product: route-name: product default-ds: product_1 mapper-package: com.mabang.product.mapper.product route-rule: product_{clusterId} enableRouteRule: true item: route-name: item default-ds: item_1 mapper-package: com.mabang.sync.product.mapper.item route-rule: item_{clusterId} enableRouteRule: true shop: route-name: shop default-ds: shop_1 mapper-package: com.mabang.sync.product.mapper.shop route-rule: shop_{clusterId} enableRouteRule: true mps: custom: env: prd mq-type: rocketmq push-size: 10 time-out: 30000 consumerThreadNum: shopProduct: 10 product: 50 shopStatus: 1 sync: custom: cos-secret-id: AKIDmNimZ6MM5YjdGfndCUWGkxuaz7yYsvhC cos-secret-key: FDuKTKuEHp66qJVQ5SYNxGMBizzi9KEr bucket-name: amazon-professionnal-1253885479 searchProperties: - primaryId - productDetail - childProductIdStr cos-properties: - primaryId tokopedia: tencent: secretId: AKIDmNimZ6MM5YjdGfndCUWGkxuaz7yYsvhC secretKey: FDuKTKuEHp66qJVQ5SYNxGMBizzi9KEr bucketName: amazon-professionnal-1253885479 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 logging: config: local-path: /data/logs logstash-server: mdc-dev-logstash.mabangerp.com:5602 level: com: mabang: mybatisplus: interceptor: error rocketmq: name-server: rocketmq-mdc.mabangerp.com:9876 producer: group: mabang-rocketmq-receive ``` 3. `mps-prd` 下 `mps-mercadolibre-product-service.yml` 更新 ```yml mps: #自定义消费者线程数 custom: env: prd mqType: rabbitmq-kandeng consumerThreadNum: # Global publishGlobal: 10 publishMarketplace: 20 shopProductGlobal: 10 productGlobal: 20 shopProductMarketplace: 20 productMarketplace: 20 # Local publishLocal: 10 shopProductLocal: 10 productLocal: 20 # Campaign shopCampaign: 10 shopCampaignProduct: 20 ``` # 三. jenkins新增 `MC` 下 `mdc-sync-product-modules` `M-LIS` 下 `mdc-tokopedia-product` `M-LIS` 下 `mdc-tokopedia-product-build-package` # 四.build-package `MC` 下 `mdc-sync-product-modules` `M-LIS` 下 `mdc-tokopedia-product-build-package` # 五.jenkins发布 `M-OAPI` 下 `mdc-oapi-product ` `M-LIS` 下 `mdc-tokopedia-product` `M-LIS` 下 `mdc-mercadolibre-product` `MPS-LIS` 下 `mps-mercadolibre-product` `M-SCHED` 下 `mdc-meta-amazon` `mabang3-addl` 下 `mabang-data-publish-shoptask` `mabang3-addl` 下 `mabang-data-publish-woocommerce`
chenjunan
2023年8月16日 17:51
转发文档
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
Markdown文件
分享
链接
类型
密码
更新密码