Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Managed Service for Greenplum®
  • Getting started
    • Resource relationships
    • Host classes
    • Calculating the cluster configuration
    • Networking in Managed Service for Greenplum®
    • Quotas and limits
    • Backups
    • Resource groups
    • Sharding
    • Users and roles
    • User authentication
    • Command center
    • External tables
    • Managing connections
    • Expanding a cluster
    • Maintenance
    • Greenplum® settings
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes
  1. Concepts
  2. Managing connections

Managing Greenplum® connections

Written by
Yandex Cloud
Updated at May 5, 2025

Greenplum® allocates a separate process for each established connection. With numerous client connections, it creates multiple processes and manages distributed data structures. This may cause a lack of computing resources affecting the DBMS performance.

To address the lack of resources issue, a connection pooler is added before the Greenplum® cluster. That pooler manages connections to allow a large number of clients to connect to the DBMS without affecting performance. A relatively small number of re-usable connections are maintained between the connection pooler and the DBMS. After the client is disconnected, the connection is returned to the pool and can be reused by the same or a new client.

This deployment method complicates the administration because the servers hosting the connection pooler are added to the DBMS infrastructure.

The Managed Service for Greenplum® architecture has a built-in connection pooler: Odyssey by Yandex.

Odyssey supports two modes of connection management:

  • Session mode (default):

    In this mode, the client connection is established at the first query to the database and maintained until the client terminates the session. This connection can then be used by that or any other client. This approach allows you to efficiently process multiple repeat client connections to the DBMS (for example, when starting applications that access databases).

    This mode is less productive than transaction mode.

  • Transaction mode:

    In this mode, the client connection is established at the first query to the database and maintained until the transaction ends. This connection can then be used by that or any other client. This approach allows maintaining few server connections between the connection pooler and Greenplum® hosts when there are many client connections.

    The transaction mode provides high performance and allows you to load the DBMS as efficiently as possible. However, this mode is not supported by certain Greenplum® clients and does not allow using:

    • Temporary tables, cursors, and advisory locks that exist beyond a single transaction.
    • Prepared statements.

    Note

    To create a prepared statement in Managed Service for Greenplum®, use the DBMS driver features. Creating a prepared statement using the PREPARE SQL query is not supported.

You can change the connection pooler mode after the cluster is created.

Odyssey featuresOdyssey features

Integrating Managed Service for Greenplum® with the Odyssey connection pooler has several advantages, e.g., compared to the PgBouncer connection pooler:

Comparison criterion Odyssey PgBouncer
Resource usage Managed Service for Greenplum® clusters are less prone to running out of computing resources with multiple client connections. This is because of asynchronous multithreading built into the Odyssey architecture. This is especially important if most client connections to the DBMS use SSL/TLS. PgBouncer uses a single-threaded architecture. This may lead to problems with resource consumption and scalability under high load.
Supporting client connections Odyssey strives to keep the client connection alive as long as possible after the transaction ends in order to re-use it if this client returns with a new transaction. PgBouncer seeks to return such kind of connection to the pool as quickly as possible.
Handling errors Managed Service for Greenplum® clusters provide improved error handling capabilities, thus ensuring that errors on the Greenplum® side are sent to the client application without changes. PgBouncer hides Greenplum® error messages. As a result, all errors look like a PgBouncer connection error to the client.

In addition, thanks to its integration with Odyssey, a Managed Service for Greenplum® cluster:

  • Supports numerous client connections without affecting the DBMS performance.

  • Requires no extra connection pooler configuration effort or additional infrastructure for it to operate.

  • Allow you to limit the number of concurrent cluster connections.

  • Support advanced transaction pooling, such as automatic operation cancel and transaction rollback when a client connection is broken.

  • Provides detailed logging of all events that occur. Each client connection also gets a unique ID, which helps track the entire process of establishing a connection.

    Tip

    If you have issues connecting to a Managed Service for Greenplum® cluster, contact support. To have your issue resolved faster, provide the full text of the error message, including the connection ID.

Greenplum® and Greenplum Database® are registered trademarks or trademarks of VMware, Inc. in the United States and/or other countries.

Was the article helpful?

Previous
External tables
Next
Expanding a cluster
© 2025 Direct Cursus Technology L.L.C.