primary/secondary database mode #2

Open
opened 2022-11-10 11:57:31 +03:00 by vtolstov · 1 comment
vtolstov commented 2022-11-10 11:57:31 +03:00 (Migrated from github.com)
https://pkg.go.dev/golang.yandex/hasql#Cluster.StandbyPreferred

NewCluster(discoverer , checker, opts...ClusterOption) (*Cluster, error)

discoverer contains db ...*sql.DB with names
checker have query for latency (some query to measure it timing), query for master/slave, query for ReplicationLag

NewCluster(discoverer , checker, opts...ClusterOption) (*Cluster, error) discoverer contains db ...*sql.DB with names checker have query for latency (some query to measure it timing), query for master/slave, query for ReplicationLag
Sign in to join this conversation.
No description provided.