Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
O

odyssey

> 数据库
Open source

Scalable PostgreSQL connection pooler

3.6K stars0 likes1 views
WebsiteGitHub

About

Scalable PostgreSQL connection pooler



Odyssey

AI-ready advanced multi-threaded PostgreSQL connection pooler and request router.

Project status

Odyssey is production-ready, it is being used in large production setups. We appreciate any kind of feedback and contribution to the project.

Design goals and main features

Multi-threaded processing

Odyssey can significantly scale processing performance by specifying a number of additional worker threads. Each worker thread is responsible for authentication and proxying client-to-server and server-to-client requests. All worker threads are sharing global server connection pools. Multi-threaded design plays important role in SSL/TLS performance.

Advanced transactional pooling

Odyssey tracks current transaction state and in case of unexpected client disconnection can emit automatic Cancel connection and do Rollback of abandoned transaction, before putting server connection back to the server pool for reuse. Additionally, last server connection owner client is remembered to reduce a need for setting up client options on each client-to-server assignment.

Better pooling control

Odyssey allows to define connection pools as a pair of Database and User. Each defined pool can have separate authentication, pooling mode and limits settings.

Authentication

Odyssey has full-featured SSL/TLS support and common authentication methods like: md5 and clear text both for client and server authentication. Odyssey supports PAM & LDAP authentication, this methods operates similarly to clear text auth except that it uses PAM/LDAP to validate user name/password pairs. PAM optionally checks the connected remote host name or IP address. Additionally it allows to block each pool user separately.

Logging

Odyssey generates universally unique identifiers uuid for client and server connections. Any log events and client error responses include the id, which then can be used to uniquely identify client and track actions. Odyssey can save log events into log file and using system logger.

Build instructions

Currently Odyssey runs only on Linux. Supported platforms are x86/x86_64.

To build you will need in ubuntu distros:

  • cmake >= 3.12.4
  • gcc >= 4.6
  • openssl
  • flex
  • bison

Optional dependencies:

  • libsystemd-dev (for systemd notify support)

And for fedora-based distros:

  • openssl-devel
  • flex
  • bison
  • systemd-devel (optional, for systemd notify)

Note (since 1.5.3): the config parser is now generated from a Flex/Bison grammar at build time. flex and bison must be installed before running cmake.

For Mac-OS you will need:

bash
git clone git://github.com/yandex/odyssey.git
cd odyssey
make local_build

Adapt odyssey-dev.conf then:

bash
make local_run

Alternatively:

bash
make console_run

Documentation

See docs dir with more documentation info. You can serve docs locally by make serve_docs.

You can also read about Odyssey on our website.

Support

We have a Telegram chat to discuss Odyssey usage and development.

Issues· 106 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Cbalancingcpoolingpostgresql

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库