Replies: 2 comments 1 reply
-
My ClickHouse knowledge is lacking but it seems I made it work like this: Created ReplicatedMergeTree table:
Then a Distributed one:
And configured Openmeter to use the distributed table:
Is this the right aproach? |
Beta Was this translation helpful? Give feedback.
-
Hi @andreeib, we're glad you like using OpenMeter We do not (yet) have an officially recommended HA setup, the public helm chart can be configured to use external dependencies (for ClickHouse, PG, etc...), the default setup without tweaks is meant more for testing and dev envs rather than production workloads. Internally (on openmeter.cloud) we use managed services for databases, for ClickHouse we use ClickHouse cloud which works a bit differently from an OSS HA setup (for instance it has custom SharedMergeTree engines instead of ReplicatedMergeTree). If you wanted to self-host ClickHouse, the Zookeeper (or CHKeeper, as you mentioned) approach is the recommended cluster deployment, and the affinity operator is quite alright in my experience. One thing specific to OpenMeter is that the Alternatively if you'd like to contribute with a PR to make it parametrizable, i'd be happy go through it 😉 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm using OpenMeter to collect GPU compute allocation in a hosting platform, currently it's a MVP so I self host. So far the experience with OpenMeter has been great, it just lacks slightly on docs, for example It's not clear how I can run self hosted in a high availability setup.
I installed ClickHouse and ClickHouseKeeper using altinity-clickhouse-operator and configured it with 3 replicas each:
I created a database:
CREATE DATABASE IF NOT EXISTS ${var.db_name} ON CLUSTER ${var.cluster_name};
Then installed OpenMeter Helm chart:
Now as expected
GET /api/v1/meters/{meterIdOrSlug}/query
requests return inconsistent results based on what ClickHouse node it hits.How can run OpenMeter with replicated ClickHouse?
Should I manually create a
ReplicatedMergeTree
table?Thank you
Beta Was this translation helpful? Give feedback.
All reactions