PostHog latest self-hosted-viable (cluster remaps + fresh-CH schema-compat) #7

Merged
founder merged 1 commit from codex/posthog-latest-selfhosted into main 2026-07-20 04:09:13 +00:00
Owner

Latest PostHog assumes Cloud infra (ai_events/ops ClickHouse clusters, warpstream Kafka named collections). Remap the new cluster settings onto posthog_single_shard and create the CH database before schema-compat. Full migrate now completes (308 CH tables). 🤖 Generated with Claude Code

Latest PostHog assumes Cloud infra (ai_events/ops ClickHouse clusters, warpstream Kafka named collections). Remap the new cluster settings onto posthog_single_shard and create the CH database before schema-compat. Full migrate now completes (308 CH tables). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
posthog: make latest self-hosted-viable (cluster remaps + fresh-CH schema-compat)
All checks were successful
Release: If Needed / Check (Release Needed) (push) Successful in 5s
Deploy: API / Deploy (API) (push) Successful in 3m23s
Deploy: Web / Deploy (Web) (push) Successful in 6m30s
59ad3b4e75
The latest PostHog image assumes PostHog-Cloud infra its migrations require:
- Dedicated ClickHouse clusters (CLICKHOUSE_AI_EVENTS_CLUSTER default 'ai_events',
  CLICKHOUSE_OPS_CLUSTER default 'ops') that a single-node self-hosted deployment
  does not define, so ON CLUSTER migrations failed with 'cluster not found'.
  Remap both onto the existing posthog_single_shard cluster (same pattern the
  module already uses for CLICKHOUSE_AUX_CLUSTER).
- posthog-clickhouse-schema-compat queried the posthog ClickHouse database before
  migrations create it on a fresh install ('Database posthog does not exist').
  Create it over the HTTP interface first (idempotent for existing installs).

With these plus the Kafka named collections (msk_cluster + warpstream_*), a full
migrate of the latest image completes on the single node (308 CH tables).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
key-store/key.store!7
No description provided.