arbiter:PostgreSQL连接代理

时间:2021-04-30 05:55:54
【文件属性】:
文件名称:arbiter:PostgreSQL连接代理
文件大小:10KB
文件格式:ZIP
更新时间:2021-04-30 05:55:54
Go 仲裁者 Arbiter是PostgreSQL连接代理,旨在简化流复制设置的操作。 当您启动仲裁器,它监听的primary和follower在arbiter.cfg定义的地址。 与primary连接将始终路由到具有主要角色的后端。 与follower连接将被路由到最近的后端(按延迟衡量),无论该后端是主要后端还是关注者。 如果应用程序执行破坏性操作,则应将其配置为连接到primary 。 与follower连接仅应用于查询。 配置实例 [main] ; ; Connections to the primary address will get routed to ; ; the primary backend. Suitable for INSERT/UPDATE/DELETEs. primary = 127.0.0.1:5433 ; ; Connections to the foll
【文件预览】:
arbiter-master
----pool()
--------pool.go(3KB)
--------conn.go(1015B)
--------postgres.go(2KB)
--------backend.go(800B)
--------pool_test.go(2KB)
--------state_string.go(356B)
----config.ini(565B)
----config_test.go(561B)
----.travis.yml(932B)
----README.md(1KB)
----.gitignore(18B)
----arbiter.go(4KB)
----config.go(1KB)

网友评论