Skip to content

Make self-hosted clickhouse instances shardable #8134

@macobo

Description

@macobo

Note: This issue doesn't yet prescribe how to make this solution happen - creating it as a placeholder to link to from other issues/RFCs and for tracking backlog. Please ignore this issue for now.

Is your feature request related to a problem?

Currently, you can only scale self-hosted clickhouse instances vertically. On cloud we've mitigated this by setting up sharding.

Constraints

  • Handle CLICKHOUSE_REPLICATION environment variable correctly when creating the schema
  • Support sharding in helm chart configuration
  • Figure out a resharding solution - not trivial due to clickhouse not providing great tooling for it.

Note that even production clickhouse setup has flaws:

Additional context

Solving this might depend on:

Related from clickhouse side: ClickHouse/ClickHouse#20219

Related: PostHog/product-internal#240

Thank you for your feature request – we love each and every one!

Metadata

Metadata

Assignees

No one assigned

    Labels

    deploymentsAnything tied to self-hosted deployments of PostHogenhancementNew feature or requestperformanceHas to do with performance. For PRs, runs the clickhouse query performance suiteteam/infraEverything related to deploying PostHog

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions