dtc.dbaddition.s3.yaml 797 B

1234567891011121314151617181920212223242526272829303132
  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. connection: &connection
  11. addr: 127.0.0.1:3307
  12. user: username
  13. pwd: password
  14. primary:
  15. table: &table opensource
  16. cache:
  17. field:
  18. - {name: &key uid, type: signed, size: 4}
  19. - {name: name, type: string, size: 50}
  20. - {name: city, type: string, size: 50}
  21. - {name: sex, type: signed, size: 4}
  22. - {name: age, type: signed, size: 4}
  23. hot:
  24. logic:
  25. {db: &db layer2, table: *table, connection: *connection}
  26. real:
  27. - {addr: mysql-01.local:3306, user: username, pwd: password, db: single}
  28. sharding:
  29. key: *key
  30. table: {prefix: [*table, _], start: 0, last: 9}