HA

    1. databaseName: database_discovery_db
    2. dataSources:
    3. ds_0:
    4. url: jdbc:mysql://127.0.0.1:33306/primary_demo_ds?serverTimezone=UTC&useSSL=false
    5. username: root
    6. password:
    7. connectionTimeoutMilliseconds: 3000
    8. idleTimeoutMilliseconds: 60000
    9. maxLifetimeMilliseconds: 1800000
    10. maxPoolSize: 50
    11. minPoolSize: 1
    12. ds_1:
    13. url: jdbc:mysql://127.0.0.1:33307/primary_demo_ds?serverTimezone=UTC&useSSL=false
    14. username: root
    15. connectionTimeoutMilliseconds: 3000
    16. maxLifetimeMilliseconds: 1800000
    17. maxPoolSize: 50
    18. minPoolSize: 1
    19. ds_2:
    20. url: jdbc:mysql://127.0.0.1:33308/primary_demo_ds?serverTimezone=UTC&useSSL=false
    21. username: root
    22. password:
    23. connectionTimeoutMilliseconds: 3000
    24. idleTimeoutMilliseconds: 60000
    25. maxLifetimeMilliseconds: 1800000
    26. maxPoolSize: 50
    27. minPoolSize: 1
    28. rules:
    29. - !READWRITE_SPLITTING
    30. dataSources:
    31. replica_ds:
    32. - !DB_DISCOVERY
    33. dataSources:
    34. readwrite_ds:
    35. dataSourceNames:
    36. - ds_0
    37. - ds_1
    38. - ds_2
    39. discoveryHeartbeatName: mgr_heartbeat
    40. discoveryTypeName: mgr
    41. discoveryHeartbeats:
    42. mgr_heartbeat:
    43. props:
    44. keep-alive-cron: '0/5 * * * * ?'
    45. discoveryTypes:
    46. mgr:
    47. type: MySQL.MGR
    48. props:
    49. group-name: 558edd3c-02ec-11ea-9bb3-080027e39bd2