-
Notifications
You must be signed in to change notification settings - Fork 453
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document using Altinity.Cloud with posthog helm charts (#3078)
* Document some more env vars * Add initial instructions on how to deploy Altinity Cloud * Fix typos * Update marketplace docs * Update contents/docs/self-host/configure/using-altinity-cloud.md Co-authored-by: Joe Martin <[email protected]> * Update contents/docs/self-host/configure/using-altinity-cloud.md Co-authored-by: Joe Martin <[email protected]> * Update contents/docs/self-host/configure/using-altinity-cloud.md Co-authored-by: Joe Martin <[email protected]> * Update contents/docs/self-host/configure/using-altinity-cloud.md Co-authored-by: Joe Martin <[email protected]> * Update contents/docs/self-host/configure/using-altinity-cloud.md Co-authored-by: Joe Martin <[email protected]> * Update contents/docs/self-host/configure/using-altinity-cloud.md Co-authored-by: Joe Martin <[email protected]> * Update contents/marketplace/altinity.md * Update contents/marketplace/altinity.md * Update contents/docs/self-host/deploy/configuration.md Co-authored-by: Joe Martin <[email protected]>
- Loading branch information
1 parent
60a14f8
commit 0fab983
Showing
5 changed files
with
153 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
137 changes: 137 additions & 0 deletions
137
contents/docs/self-host/configure/using-altinity-cloud.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
--- | ||
title: Deploying ClickHouse using Altinity.Cloud | ||
sidebar: Docs | ||
showTitle: true | ||
--- | ||
|
||
This document outlines how to deploy PostHog using Altinity Cloud ClickHouse clusters. | ||
|
||
## Prerequisites | ||
|
||
- Altinity.Cloud ClickHouse cluster: | ||
- Minimum ClickHouse version: 21.8.13 | ||
- Single shard and no data replication | ||
- No dashes (`-`) in cluster name | ||
- PostHog helm chart version >= 16.1.1 | ||
- PostHog version >= 1.33.0 | ||
|
||
## Deployment instructions | ||
|
||
PostHog uses Kafka to send data from the app to ClickHouse. For that reason, Kafka needs to be accessible to ClickHouse during deployment. | ||
|
||
### Deploying using external Kafka | ||
|
||
```yaml | ||
env: | ||
- name: CLICKHOUSE_DISABLE_EXTERNAL_SCHEMAS | ||
value: "1" | ||
|
||
kafka: | ||
enabled: false | ||
|
||
externalKafka: | ||
brokers: | ||
- "broker-1.posthog.kafka.us-east-1.amazonaws.com:9094" | ||
- "broker-2.posthog.kafka.us-east-1.amazonaws.com:9094" | ||
- "broker-3.posthog.kafka.us-east-1.amazonaws.com:9094" | ||
|
||
clickhouse: | ||
enabled: false | ||
|
||
externalClickhouse: | ||
host: "somecluster.demo.altinity.cloud" | ||
user: "admin" | ||
password: "password" | ||
cluster: "clustername" | ||
secure: true | ||
``` | ||
Read more about how to configure external Kafka in the chart [in our deployment documentation](https://posthog.com/docs/self-host/deploy/configuration#kafka). | ||
### Using internal Kafka | ||
To deploy using a version of Kafka managed by the PostHog Helm chart, follow these three steps: | ||
1. [Deploy your Helm chart](/docs/self-host) initially with the following values.yaml: | ||
```yaml | ||
kafka: | ||
enabled: true | ||
externalAccess: | ||
enabled: true | ||
service: | ||
type: LoadBalancer | ||
ports: | ||
external: 9094 | ||
autoDiscovery: | ||
enabled: true | ||
serviceAccount: | ||
create: true | ||
rbac: | ||
create: true | ||
|
||
|
||
clickhouse: | ||
enabled: false | ||
|
||
redis: | ||
enabled: false | ||
|
||
postgresql: | ||
enabled: false | ||
|
||
pgbouncer: | ||
enabled: false | ||
|
||
plugins: | ||
enabled: false | ||
|
||
worker: | ||
enabled: false | ||
|
||
web: | ||
enabled: false | ||
|
||
events: | ||
enabled: false | ||
|
||
migrate: | ||
enabled: false | ||
``` | ||
2. Get the external Kafka IP via `kubectl get svc -n posthog | grep kafka-0-external` | ||
|
||
3. [Deploy PostHog using helm](/docs/self-host) with new values.yaml (fill in placeholder values) | ||
|
||
```yaml | ||
env: | ||
- name: KAFKA_URL_FOR_CLICKHOUSE | ||
value: "kafka://KAFKA_IP:9094" | ||
- name: CLICKHOUSE_DISABLE_EXTERNAL_SCHEMAS | ||
value: "1" | ||
clickhouse: | ||
enabled: false | ||
externalClickhouse: | ||
host: "somecluster.demo.altinity.cloud" | ||
user: "admin" | ||
password: "password" | ||
cluster: "clustername" | ||
secure: true | ||
kafka: | ||
enabled: true | ||
externalAccess: | ||
enabled: true | ||
service: | ||
type: LoadBalancer | ||
ports: | ||
external: 9094 | ||
autoDiscovery: | ||
enabled: true | ||
serviceAccount: | ||
create: true | ||
rbac: | ||
create: true | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,21 +8,21 @@ hideLastUpdated: true | |
|
||
<img src="/images/marketplace/alinity.png" alt="Altinity Logo" width="100" style={{float: 'right', margin: '0 0 1rem 1rem'}} /> | ||
|
||
[Altinity](https://altinity.com) helps enterprises deliver real-time analytics based on ClickHouse anywhere and for any business purpose. Our offerings cover everything needed from project inception to prodution operation. | ||
[Altinity](https://altinity.com) helps enterprises deliver real-time analytics based on ClickHouse anywhere and for any business purpose. Altinity covers everything needed from project inception to production operation. | ||
|
||
1. Altinity.Cloud platform offering fully supported and managed ClickHouse clusters in AWS and GCP | ||
2. 24/7 enterprise support for ClickHouse in any environment | ||
3. Training for analytic developers and administrators | ||
4. Altinity Stable builds for ClickHouse | ||
|
||
Altinity customers range from startups to Fortune 10 enterprises. | ||
Altinity customers range from startups to Fortune 10 enterprises. | ||
|
||
## Services offered | ||
|
||
### Support | ||
- Coming soon (likely from PostHog 1.33.0): Altinity.Cloud ClickHouse backends for PostHog users who prefer to use ClickHouse as a hands-off service - get in touch now if you are interested | ||
- Enterprise support for users who prefer to operate ClickHouse in self-managed environments | ||
- Altinity.Cloud ClickHouse backends for PostHog users who prefer to use ClickHouse as a hands-off service. Find out more about using Altinity.Cloud to manage your self-hosted instance in [our deployment configuration docs.](/docs/self-host/configure/using-altinity-cloud). | ||
|
||
## Contact | ||
|
||
[Speak to Altinity](mailto:[email protected]) | ||
[Speak to Altinity](mailto:[email protected]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters