#support

Running SigNoz with External ClickHouse Without Zookeeper

TLDR Dave asked how to run SigNoz without ClickHouse in cluster mode with Zookeeper. Srikanth explained the need for Zookeeper or ClickHouse Keeper. Dave found a solution by enabling the ClickHouse Keeper configuration within ClickHouse.

Powered by Struct AI
22
9mo
Solved
Join the chat
Mar 03, 2023 (9 months ago)
Dave
Photo of md5-9da54779b3d266fa72edda9b8a8ae481
Dave
06:38 PM
Is there any way to run Signoz without ClickHouse in cluster mode with Zookeeper?
Pranay
Photo of md5-8df7ce0274b2473ec07403336e48b574
Pranay
06:46 PM
do you want to add. your own clickhouse Dave?
Dave
Photo of md5-9da54779b3d266fa72edda9b8a8ae481
Dave
06:47 PM
We have set up a standalone ClickHouse.
Pranay
Photo of md5-8df7ce0274b2473ec07403336e48b574
Pranay
06:47 PM
Dave
Photo of md5-9da54779b3d266fa72edda9b8a8ae481
Dave
06:47 PM
We aren't used K8s. We are setting this up in ECS/Fargate, so we are bringing up all of the individual elements.
06:49
Dave
06:49 PM
It seems the SigNoz otel-collector must have a cluster called "cluster" in ClickHouse. Is this right? But then does this make Zookeeper absolutely required?
06:49
Dave
06:49 PM
It doesn't seem like ClickHouse explicitly requires ZK.. so I don't want to add any unnecessary dependencies.
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
06:51 PM
> It seems the SigNoz otel-collector must have a cluster called “cluster” in ClickHouse
Yes
06:52
Srikanth
06:52 PM
> It doesn’t seem like ClickHouse explicitly requires ZK.. so I don’t want to add any unnecessary dependencies.
If you want to use external clickhouse you should be able to do it. Let me share the docs for it.
Pranay
Photo of md5-8df7ce0274b2473ec07403336e48b574
Pranay
06:52 PM
Dave
Photo of md5-9da54779b3d266fa72edda9b8a8ae481
Dave
06:53 PM
Pranay This isn't the correct doc. This is just how to connect to ClickHouse.
Pranay
Photo of md5-8df7ce0274b2473ec07403336e48b574
Pranay
06:54 PM
Ok, will let Srikanth get back
Dave
Photo of md5-9da54779b3d266fa72edda9b8a8ae481
Dave
06:55 PM
In your docker-compose example, you have something like this:

<?xml version="1.0"?>
<clickhouse>
    <remote_servers>
        <cluster>
            <shard>
                <replica>
                    <host>localhost</host>
                    <port>9000</port>
                </replica>
            </shard>
        </cluster>
    </remote_servers>
</clickhouse>
06:56
Dave
06:56 PM
This makes "cluster" in ClickHouse... but then, I believe ZK is required?
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
07:07 PM
ZK that comes with SigNoz installation is not required if you want to use external ClickHouse. It’s main purpose is to provide coordination system for distributed ClickHouse. But if you want to use SigNoz there should be cluster called cluster so you may already have zk or clickhouse keeper on your ClickHouse server.
Dave
Photo of md5-9da54779b3d266fa72edda9b8a8ae481
Dave
07:08 PM
So I must have ZK or Keeper to back my ClickHouse.
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
07:09 PM
Yes, the distributed ClickHouse setup requires zookeeper or clickhouse-keeper.
Dave
Photo of md5-9da54779b3d266fa72edda9b8a8ae481
Dave
07:10 PM
Ok. And since you require "cluster", I have to have a distributed ClickHouse, even though I only have 1 ClickHouse.
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
07:17 PM
&gt; Let me share the docs for it.
Unfortunately, there is no written documentation around this. You can disable the ClickHouse and setup the appropriate values for externalClickHouse. And use the override-values to apply the custom config.
Dave
Photo of md5-9da54779b3d266fa72edda9b8a8ae481
Dave
08:46 PM
The easy solution for this was to enable the ClickHouse Keeper configuration within ClickHouse.
08:46
Dave
08:46 PM
It starts it as a part of the service, and then I don't need an external ZK
Mar 04, 2023 (9 months ago)
Pranay
Photo of md5-8df7ce0274b2473ec07403336e48b574
Pranay
03:25 AM
Nice, were you able to make this work for your setup? Dave

SigNoz Community

Built with ClickHouse as datastore, SigNoz is an open-source APM to help you find issues in your deployed applications & solve them quickly | Knowledge Base powered by Struct.AI

Indexed 1023 threads (61% resolved)

Join Our Community