Skip to content

[Enhancement]: Add Support for ClickHouse Cluster in Testcontainers ClickHouseContainer #11242

Closed as not planned

Description

@BentsiLeviav

Module

Clickhouse

Proposal

Description

As of today, ClickHouseContainer supports only a single ClickHouse server instance.
Most real-world use cases require running tests against a cluster setup (distributed tables, replication, sharding, and more).

Requested Enhancements

  • A new ClickHouseClusterContainer (or similar abstraction) able to:

    • Start N nodes sharing the same cluster configuration.

    • Provide connection URLs for each node and/or a load-balanced endpoint.

    • Handle internal network setup for inter-node communication.

    • Optionally support Zookeeper-less clusters (newer versions support this).

  • Maintain backward compatibility with the existing ClickHouseContainer.

Activity

  1. eddumelendez commented on Nov 24, 2025

    @eddumelendez
    Member

    Hi, our modules are best-effort modules. Would be nice if experts could host new implementations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions