dtc.dbaddition.s3.yaml 825 B

12345678910111213141516171819202122232425262728293031323334
  1. #
  2. # DTC configure file. v2
  3. # Cache with Datasource Test cases.
  4. # Scene 3: Sharding DB Sharding Table
  5. #
  6. props:
  7. log.level: debug
  8. listener.port.dtc: 20015
  9. shm.mem.size: 100 #MB
  10. connector.procs: 1
  11. connection: &connection
  12. addr: 127.0.0.1:3307
  13. user: username
  14. pwd: password
  15. primary:
  16. db: &db dtc
  17. table: &table opensource
  18. cache:
  19. field:
  20. - {name: &key uid, type: signed, size: 4}
  21. - {name: name, type: string, size: 50}
  22. - {name: city, type: string, size: 50}
  23. - {name: sex, type: signed, size: 4}
  24. - {name: age, type: signed, size: 4}
  25. hot:
  26. logic:
  27. {db: *db, table: *table, connection: *connection}
  28. real:
  29. - {addr: mysql-01.local:3306, user: username, pwd: password, db: single}
  30. sharding:
  31. key: *key
  32. table: {prefix: [*table, _], start: 0, last: 9}