spring: config: activate: on-profile: local autoconfigure: exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure # Kafka 配置 kafka: bootstrap-servers: alikafka-pre-cn-aic4j4ywq028-1-vpc.alikafka.aliyuncs.com:9092,alikafka-pre-cn-aic4j4ywq028-2-vpc.alikafka.aliyuncs.com:9092,alikafka-pre-cn-aic4j4ywq028-3-vpc.alikafka.aliyuncs.com:9092 consumer: group-id: group-robotaxi-xpu auto-offset-reset: earliest key-deserializer: org.apache.kafka.common.serialization.StringDeserializer value-deserializer: org.apache.kafka.common.serialization.StringDeserializer enable-auto-commit: true auto-commit-interval: 1000 producer: key-serializer: org.apache.kafka.common.serialization.StringSerializer value-serializer: org.apache.kafka.common.serialization.StringSerializer retries: 3 acks: all listener: concurrency: 3 shardingsphere: datasource: names: xp0 xp0: type: com.alibaba.druid.pool.DruidDataSource driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://pc-bp1o444934f546768po.rwlb.rds.aliyuncs.com:3306/xp_rt_maintenance?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 username: xp_rt_maintenance password: gWgoAv_bi02um8sN druid: initial-size: 10 min-idle: 10 max-active: 100 max-wait: 60000 time-between-eviction-runs-millis: 60000 min-evictable-idle-time-millis: 300000 validation-query: SELECT 1 test-while-idle: true test-on-borrow: false test-on-return: false pool-prepared-statements: true max-pool-prepared-statement-per-connection-size: 20 filters: stat,wall,log4j connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000 remove-abandoned: true remove-abandoned-timeout: 1800 log-abandoned: true stat-view-servlet: enabled: true url-pattern: /druid/* login-username: admin login-password: admin reset-enable: false wall: config: multi-statement-allow: false rules: sharding: tables: xp_charging_record: actual-data-nodes: xp0.xp_charging_record_$->{0..9} table-strategy: standard: sharding-column: vehicle_id sharding-algorithm-name: xp-charging-record-inline key-generate-strategy: column: id key-generator-name: snowflakeKeyGen xp_clock_in: actual-data-nodes: xp0.xp_clock_in_$->{0..9} table-strategy: standard: sharding-column: app_user_id sharding-algorithm-name: xp-clock-in-inline key-generate-strategy: column: id key-generator-name: snowflakeKeyGen xp_task: actual-data-nodes: xp0.xp_task_$->{0..19} table-strategy: standard: sharding-column: vehicle_id sharding-algorithm-name: xp-task-inline key-generate-strategy: column: id key-generator-name: snowflakeKeyGen xp_task_handle_detail: actual-data-nodes: xp0.xp_task_handle_detail_$->{0..19} table-strategy: standard: sharding-column: task_id sharding-algorithm-name: xp-task-handle-detail-inline key-generate-strategy: column: id key-generator-name: snowflakeKeyGen xp_task_handle_detail_routine: actual-data-nodes: xp0.xp_task_handle_detail_routine_$->{0..19} table-strategy: standard: sharding-column: task_id sharding-algorithm-name: xp-task-handle-detail-routine-inline key-generate-strategy: column: id key-generator-name: snowflakeKeyGen xp_vehicle_detection: actual-data-nodes: xp0.xp_vehicle_detection_$->{0..9} table-strategy: standard: sharding-column: task_id sharding-algorithm-name: xp-vehicle-detection-inline key-generate-strategy: column: id key-generator-name: snowflakeKeyGen xp_vehicle_preparation: actual-data-nodes: xp0.xp_vehicle_preparation_$->{0..9} table-strategy: standard: sharding-column: task_id sharding-algorithm-name: xp-vehicle-preparation-inline key-generate-strategy: column: id key-generator-name: snowflakeKeyGen xp_vehicle_repair: actual-data-nodes: xp0.xp_vehicle_repair_$->{0..9} table-strategy: standard: sharding-column: task_id sharding-algorithm-name: xp-vehicle-repair-inline key-generate-strategy: column: id key-generator-name: snowflakeKeyGen xp_work_order: actual-data-nodes: xp0.xp_work_order_$->{0..9} table-strategy: standard: sharding-column: feedback_user_phone sharding-algorithm-name: xp-work-order-inline key-generate-strategy: column: id key-generator-name: snowflakeKeyGen xp_work_order_log: actual-data-nodes: xp0.xp_work_order_log_$->{0..19} table-strategy: standard: sharding-column: work_order_id sharding-algorithm-name: xp-work-order-log-inline key-generate-strategy: column: id key-generator-name: snowflakeKeyGen sharding-algorithms: xp-charging-record-inline: type: INLINE props: algorithm-expression: xp_charging_record_${vehicle_id % 20} xp-clock-in-inline: type: INLINE props: algorithm-expression: xp_clock_in_${app_user_id % 10} xp-task-inline: type: INLINE props: algorithm-expression: xp_task_${vehicle_id % 20} xp-task-handle-detail-inline: type: INLINE props: algorithm-expression: xp_task_handle_detail_${task_id % 20} xp-task-handle-detail-routine-inline: type: INLINE props: algorithm-expression: xp_task_handle_detail_routine_${task_id % 20} xp-vehicle-detection-inline: type: INLINE props: algorithm-expression: xp_vehicle_detection_${task_id % 10} xp-vehicle-preparation-inline: type: INLINE props: algorithm-expression: xp_vehicle_preparation_${task_id % 10} xp-vehicle-repair-inline: type: INLINE props: algorithm-expression: xp_vehicle_repair_${task_id % 10} xp-work-order-inline: type: INLINE props: algorithm-expression: xp_work_order_${feedback_user_phone % 10} xp-work-order-log-inline: type: INLINE props: algorithm-expression: xp_work_order_log_${work_order_id % 20} key-generators: snowflakeKeyGen: type: SNOWFLAKE single-table: default-data-source-name: xp0 props: sql-show: true sql-simple: true # XPU xpu: topic: topic-prod-xpu-robotaxi-high # swagger配置 swagger: title: 自动驾驶模块接口文档 enabled: true license: Powered By xiaopeng licenseUrl: http://127.0.0.1:5800/doc.html # snowflake 配置 snowflake: worker-id: -1 data-center-id: 0 seata: enabled: false application-id: ${spring.application.name} tx-service-group: seata_tx_group enable-auto-data-source-proxy: false service: vgroup-mapping: seata_tx_group: default data-source-proxy-mode: AT config: type: nacos nacos: server-addr: 192.168.110.80:8848 namespace: 5185ac4b-6369-48eb-a21b-a7cbc441c5f1 group: DEFAULT_GROUP data-id: seata-server.properties username: nacos password: nacos