Odyssey
约 1 分钟阅读
- yandex/odysseyGitHubyandex/odysseyyandex/odyssey - BSD 3 · 多线程 · Transaction pooling · 断开链接时支持 cancel 或 rollback · 客户端复用上次链接 · Database+User 纬度 pooling 控制笔记:Odyssey - BSD 3
- 多线程
- Transaction pooling
- 断开链接时支持 cancel 或 rollback
- 客户端复用上次链接
- Database+User 纬度 pooling 控制
- SSL/TLS、md5、clear text
- 日志汇总 - 每个 client 一个 uuid
- yandex/odyssey#16GitHub Issueyandex/odyssey#16yandex/odyssey - BSD 3 · 多线程 · Transaction pooling · 断开链接时支持 cancel 或 rollback · 客户端复用上次链接 · Database+User 纬度 pooling 控制笔记:Odyssey - prepared statements in transaction pooling
配置
storage "postgres_server" {
type "remote"
host "host.docker.internal"
port 5432
}
database default {
user default {
authentication "none"
storage "postgres_server"
# storage_db "db"
# storage_user "user"
# storage_password "password"
pool "session"
client_fwd_error yes
}
}
unix_socket_dir "/tmp"
unix_socket_mode "0644"
log_format "%p %t %l [%i %s] (%c) %m\n"
log_debug yes
log_config yes
log_session yes
log_query yes
log_stats yes
stats_interval 60
listen {
host "*"
port 6432
}FAQ
odyssey vs pgbouncer
- odyssey
- 单进程多线程
- 不支持 configuration file reload by signal, support for unix sockets, authentication by PAM and HBA.
- pgbouncer
- 可以多进程同端口
- Scale 能力弱于 odyssey
- Gitlab Evaluate Odyssey as a replacement for pgbouncer
- yandex/odyssey#3GitHub Issueyandex/odyssey#3
关联信息
反向链接和本文引用的外部资料。
References
GitHub
4 条- yandex/odysseygithub.com/yandex/odyssey
- yandex/odyssey/documentation/configuration.mdgithub.com/yandex/odyssey/blob/master/documentation/configuration.md
- yandex/odyssey#16github.com/yandex/odyssey/issues/16
- yandex/odyssey#3github.com/yandex/odyssey/issues/3
其他外链
1 条- gitlab.com/gitlab-com/gl-infra/reliability/-/issues/7776gitlab.com/gitlab-com/gl-infra/reliability/-/issues/7776