Coder Social home page Coder Social logo

Comments (13)

EinKrebs avatar EinKrebs commented on July 23, 2024 1

There is language setting in top right.

from jaeger-clickhouse.

EinKrebs avatar EinKrebs commented on July 23, 2024

It will resolve to name of cluster on which you perform SQL script(e.g. to which you connected).

from jaeger-clickhouse.

pavolloffay avatar pavolloffay commented on July 23, 2024

Let's have a look at this example deployment with 2 clusters:

cat <<EOF | kubectl apply -f -
apiVersion: clickhouse.altinity.com/v1
kind: ClickHouseInstallation
metadata:
  name: jaeger
spec:
  configuration:
    zookeeper:
      nodes:
        - host: zookeeper.zoo1ns
    clusters:
      - name: cluster1
        layout:
          shardsCount: 2
      - name: cluster2
        layout:
          shardsCount: 2
  templates:
    podTemplates:
      - name: clickhouse-with-empty-dir-volume-template
        spec:
          containers:
            - name: clickhouse-pod
              image: yandex/clickhouse-server:20.7
              volumeMounts:
                - name: clickhouse-storage
                  mountPath: /var/lib/clickhouse
          volumes:
            - name: clickhouse-storage
              emptyDir:
                medium: "" # accepted values:  empty str (means node's default medium) or "Memory"
                sizeLimit: 1Gi
EOF

Let's SSH into cluster1 and create table`

~/projects/clickhouse/clickhouse-operator/docs/chi-examples(master*) Β» k get all                                                                                                                                                               ploffay@fedora
NAME                            READY   STATUS    RESTARTS   AGE
pod/chi-jaeger-cluster1-0-0-0   1/1     Running   0          2m50s
pod/chi-jaeger-cluster1-1-0-0   1/1     Running   0          2m8s
pod/chi-jaeger-cluster2-0-0-0   1/1     Running   0          106s
pod/chi-jaeger-cluster2-1-0-0   1/1     Running   0          84s

NAME                              TYPE           CLUSTER-IP     EXTERNAL-IP   PORT(S)                         AGE
service/chi-jaeger-cluster1-0-0   ClusterIP      None           <none>        8123/TCP,9000/TCP,9009/TCP      2m10s
service/chi-jaeger-cluster1-1-0   ClusterIP      None           <none>        8123/TCP,9000/TCP,9009/TCP      108s
service/chi-jaeger-cluster2-0-0   ClusterIP      None           <none>        8123/TCP,9000/TCP,9009/TCP      91s
service/chi-jaeger-cluster2-1-0   ClusterIP      None           <none>        8123/TCP,9000/TCP,9009/TCP      69s
service/clickhouse-jaeger         LoadBalancer   10.102.73.91   <pending>     8123:32534/TCP,9000:31866/TCP   2m52s

NAME                                       READY   AGE
statefulset.apps/chi-jaeger-cluster1-0-0   1/1     2m50s
statefulset.apps/chi-jaeger-cluster1-1-0   1/1     2m8s
statefulset.apps/chi-jaeger-cluster2-0-0   1/1     106s
statefulset.apps/chi-jaeger-cluster2-1-0   1/1     84s
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

chi-jaeger-cluster1-0-0-0.chi-jaeger-cluster1-0-0.test.svc.cluster.local :) select * from system.clusters

SELECT *
FROM system.clusters

Query id: 59def622-7c1f-4791-851a-2361d8c9d046

β”Œβ”€cluster──────────────────────────────────────┬─shard_num─┬─shard_weight─┬─replica_num─┬─host_name───────────────┬─host_address─┬─port─┬─is_local─┬─user────┬─default_database─┬─errors_count─┬─slowdowns_count─┬─estimated_recovery_time─┐
β”‚ all-replicated                               β”‚         1 β”‚            1 β”‚           1 β”‚ chi-jaeger-cluster1-0-0 β”‚ 127.0.0.1    β”‚ 9000 β”‚        1 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ all-replicated                               β”‚         1 β”‚            1 β”‚           2 β”‚ chi-jaeger-cluster1-1-0 β”‚ 172.17.0.8   β”‚ 9000 β”‚        0 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ all-replicated                               β”‚         1 β”‚            1 β”‚           3 β”‚ chi-jaeger-cluster2-0-0 β”‚ 172.17.0.9   β”‚ 9000 β”‚        0 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ all-replicated                               β”‚         1 β”‚            1 β”‚           4 β”‚ chi-jaeger-cluster2-1-0 β”‚ 172.17.0.10  β”‚ 9000 β”‚        0 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ all-sharded                                  β”‚         1 β”‚            1 β”‚           1 β”‚ chi-jaeger-cluster1-0-0 β”‚ 127.0.0.1    β”‚ 9000 β”‚        1 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ all-sharded                                  β”‚         2 β”‚            1 β”‚           1 β”‚ chi-jaeger-cluster1-1-0 β”‚ 172.17.0.8   β”‚ 9000 β”‚        0 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ all-sharded                                  β”‚         3 β”‚            1 β”‚           1 β”‚ chi-jaeger-cluster2-0-0 β”‚ 172.17.0.9   β”‚ 9000 β”‚        0 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ all-sharded                                  β”‚         4 β”‚            1 β”‚           1 β”‚ chi-jaeger-cluster2-1-0 β”‚ 172.17.0.10  β”‚ 9000 β”‚        0 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ cluster1                                     β”‚         1 β”‚            1 β”‚           1 β”‚ chi-jaeger-cluster1-0-0 β”‚ 127.0.0.1    β”‚ 9000 β”‚        1 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ cluster1                                     β”‚         2 β”‚            1 β”‚           1 β”‚ chi-jaeger-cluster1-1-0 β”‚ 172.17.0.8   β”‚ 9000 β”‚        0 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ cluster2                                     β”‚         1 β”‚            1 β”‚           1 β”‚ chi-jaeger-cluster2-0-0 β”‚ 172.17.0.9   β”‚ 9000 β”‚        0 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ cluster2                                     β”‚         2 β”‚            1 β”‚           1 β”‚ chi-jaeger-cluster2-1-0 β”‚ 172.17.0.10  β”‚ 9000 β”‚        0 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ test_cluster_two_shards                      β”‚         1 β”‚            1 β”‚           1 β”‚ 127.0.0.1               β”‚ 127.0.0.1    β”‚ 9000 β”‚        1 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ test_cluster_two_shards                      β”‚         2 β”‚            1 β”‚           1 β”‚ 127.0.0.2               β”‚ 127.0.0.2    β”‚ 9000 β”‚        0 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ test_cluster_two_shards_internal_replication β”‚         1 β”‚            1 β”‚           1 β”‚ 127.0.0.1               β”‚ 127.0.0.1    β”‚ 9000 β”‚        1 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ test_cluster_two_shards_internal_replication β”‚         2 β”‚            1 β”‚           1 β”‚ 127.0.0.2               β”‚ 127.0.0.2    β”‚ 9000 β”‚        0 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ test_cluster_two_shards_localhost            β”‚         1 β”‚            1 β”‚           1 β”‚ localhost               β”‚ 127.0.0.1    β”‚ 9000 β”‚        1 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ test_cluster_two_shards_localhost            β”‚         2 β”‚            1 β”‚           1 β”‚ localhost               β”‚ 127.0.0.1    β”‚ 9000 β”‚        1 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ test_shard_localhost                         β”‚         1 β”‚            1 β”‚           1 β”‚ localhost               β”‚ 127.0.0.1    β”‚ 9000 β”‚        1 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ test_shard_localhost_secure                  β”‚         1 β”‚            1 β”‚           1 β”‚ localhost               β”‚ 127.0.0.1    β”‚ 9440 β”‚        0 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ test_unavailable_shard                       β”‚         1 β”‚            1 β”‚           1 β”‚ localhost               β”‚ 127.0.0.1    β”‚ 9000 β”‚        1 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ test_unavailable_shard                       β”‚         2 β”‚            1 β”‚           1 β”‚ localhost               β”‚ 127.0.0.1    β”‚    1 β”‚        0 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

22 rows in set. Elapsed: 0.004 sec. 

chi-jaeger-cluster1-0-0-0.chi-jaeger-cluster1-0-0.test.svc.cluster.local :) CREATE TABLE IF NOT EXISTS jaeger_spans_local ON CLUSTER '{cluster}'  (
:-]     timestamp DateTime CODEC(Delta, ZSTD(1)),
:-]     traceID String CODEC(ZSTD(1)),
:-]     model String CODEC(ZSTD(3))
:-] ) ENGINE ReplicatedMergeTree('/clickhouse/tables/{shard}/jaeger_spans', '{replica}')
:-] PARTITION BY toDate(timestamp)
:-] ORDER BY traceID
:-] SETTINGS index_granularity=1024;

CREATE TABLE IF NOT EXISTS jaeger_spans_local ON CLUSTER `{cluster}`
(
    `timestamp` DateTime CODEC(Delta, ZSTD(1)),
    `traceID` String CODEC(ZSTD(1)),
    `model` String CODEC(ZSTD(3))
)
ENGINE = ReplicatedMergeTree('/clickhouse/tables/{shard}/jaeger_spans', '{replica}')
PARTITION BY toDate(timestamp)
ORDER BY traceID
SETTINGS index_granularity = 1024

Query id: d9f918ca-1572-4679-b801-fdeb90dfc3c9

β”Œβ”€host────────────────────┬─port─┬─status─┬─error─┬─num_hosts_remaining─┬─num_hosts_active─┐
β”‚ chi-jaeger-cluster1-1-0 β”‚ 9000 β”‚      0 β”‚       β”‚                   1 β”‚                1 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”Œβ”€host────────────────────┬─port─┬─status─┬─error─┬─num_hosts_remaining─┬─num_hosts_active─┐
β”‚ chi-jaeger-cluster1-0-0 β”‚ 9000 β”‚      0 β”‚       β”‚                   0 β”‚                0 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

2 rows in set. Elapsed: 0.217 sec. 

chi-jaeger-cluster1-0-0-0.chi-jaeger-cluster1-0-0.test.svc.cluster.local :) exit
Bye.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Now lets SSH into the cluster2 and show tables. The table is not there.

~/projects/clickhouse/clickhouse-operator/docs/chi-examples(master*) Β» kubectl exec -it statefulset.apps/chi-jaeger-cluster2-0-0 -- clickhouse-client                                                                                          ploffay@fedora
ClickHouse client version 21.7.4.18 (official build).
Connecting to localhost:9000 as user default.
Connected to ClickHouse server version 21.7.4 revision 54449.

chi-jaeger-cluster2-0-0-0.chi-jaeger-cluster2-0-0.test.svc.cluster.local :) select * from system.clusters

SELECT *
FROM system.clusters

Query id: 6efbf7a7-a38b-4e60-b7c9-07b135cb1502

β”Œβ”€cluster──────────────────────────────────────┬─shard_num─┬─shard_weight─┬─replica_num─┬─host_name───────────────┬─host_address─┬─port─┬─is_local─┬─user────┬─default_database─┬─errors_count─┬─slowdowns_count─┬─estimated_recovery_time─┐
β”‚ all-replicated                               β”‚         1 β”‚            1 β”‚           1 β”‚ chi-jaeger-cluster1-0-0 β”‚ 172.17.0.4   β”‚ 9000 β”‚        0 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ all-replicated                               β”‚         1 β”‚            1 β”‚           2 β”‚ chi-jaeger-cluster1-1-0 β”‚ 172.17.0.8   β”‚ 9000 β”‚        0 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ all-replicated                               β”‚         1 β”‚            1 β”‚           3 β”‚ chi-jaeger-cluster2-0-0 β”‚ 127.0.0.1    β”‚ 9000 β”‚        1 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ all-replicated                               β”‚         1 β”‚            1 β”‚           4 β”‚ chi-jaeger-cluster2-1-0 β”‚ 172.17.0.10  β”‚ 9000 β”‚        0 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ all-sharded                                  β”‚         1 β”‚            1 β”‚           1 β”‚ chi-jaeger-cluster1-0-0 β”‚ 172.17.0.4   β”‚ 9000 β”‚        0 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ all-sharded                                  β”‚         2 β”‚            1 β”‚           1 β”‚ chi-jaeger-cluster1-1-0 β”‚ 172.17.0.8   β”‚ 9000 β”‚        0 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ all-sharded                                  β”‚         3 β”‚            1 β”‚           1 β”‚ chi-jaeger-cluster2-0-0 β”‚ 127.0.0.1    β”‚ 9000 β”‚        1 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ all-sharded                                  β”‚         4 β”‚            1 β”‚           1 β”‚ chi-jaeger-cluster2-1-0 β”‚ 172.17.0.10  β”‚ 9000 β”‚        0 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ cluster1                                     β”‚         1 β”‚            1 β”‚           1 β”‚ chi-jaeger-cluster1-0-0 β”‚ 172.17.0.4   β”‚ 9000 β”‚        0 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ cluster1                                     β”‚         2 β”‚            1 β”‚           1 β”‚ chi-jaeger-cluster1-1-0 β”‚ 172.17.0.8   β”‚ 9000 β”‚        0 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ cluster2                                     β”‚         1 β”‚            1 β”‚           1 β”‚ chi-jaeger-cluster2-0-0 β”‚ 127.0.0.1    β”‚ 9000 β”‚        1 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ cluster2                                     β”‚         2 β”‚            1 β”‚           1 β”‚ chi-jaeger-cluster2-1-0 β”‚ 172.17.0.10  β”‚ 9000 β”‚        0 β”‚ default β”‚                  β”‚            3 β”‚               0 β”‚                      97 β”‚
β”‚ test_cluster_two_shards                      β”‚         1 β”‚            1 β”‚           1 β”‚ 127.0.0.1               β”‚ 127.0.0.1    β”‚ 9000 β”‚        1 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ test_cluster_two_shards                      β”‚         2 β”‚            1 β”‚           1 β”‚ 127.0.0.2               β”‚ 127.0.0.2    β”‚ 9000 β”‚        0 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ test_cluster_two_shards_internal_replication β”‚         1 β”‚            1 β”‚           1 β”‚ 127.0.0.1               β”‚ 127.0.0.1    β”‚ 9000 β”‚        1 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ test_cluster_two_shards_internal_replication β”‚         2 β”‚            1 β”‚           1 β”‚ 127.0.0.2               β”‚ 127.0.0.2    β”‚ 9000 β”‚        0 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ test_cluster_two_shards_localhost            β”‚         1 β”‚            1 β”‚           1 β”‚ localhost               β”‚ 127.0.0.1    β”‚ 9000 β”‚        1 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ test_cluster_two_shards_localhost            β”‚         2 β”‚            1 β”‚           1 β”‚ localhost               β”‚ 127.0.0.1    β”‚ 9000 β”‚        1 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ test_shard_localhost                         β”‚         1 β”‚            1 β”‚           1 β”‚ localhost               β”‚ 127.0.0.1    β”‚ 9000 β”‚        1 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ test_shard_localhost_secure                  β”‚         1 β”‚            1 β”‚           1 β”‚ localhost               β”‚ 127.0.0.1    β”‚ 9440 β”‚        0 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ test_unavailable_shard                       β”‚         1 β”‚            1 β”‚           1 β”‚ localhost               β”‚ 127.0.0.1    β”‚ 9000 β”‚        1 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β”‚ test_unavailable_shard                       β”‚         2 β”‚            1 β”‚           1 β”‚ localhost               β”‚ 127.0.0.1    β”‚    1 β”‚        0 β”‚ default β”‚                  β”‚            0 β”‚               0 β”‚                       0 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

22 rows in set. Elapsed: 0.005 sec. 

chi-jaeger-cluster2-0-0-0.chi-jaeger-cluster2-0-0.test.svc.cluster.local :) show tables

SHOW TABLES

Query id: 2c1bde05-feb8-430b-b9eb-19be360c5f26

Ok.

0 rows in set. Elapsed: 0.004 sec. 

chi-jaeger-cluster2-0-0-0.chi-jaeger-cluster2-0-0.test.svc.cluster.local :)

It will resolve to name of cluster on which you perform SQL script(e.g. to which you connected).

@EinKrebs The example above shows that the table wasn't created on all clusters (cluster1 and cluster2). What am I missing?

from jaeger-clickhouse.

EinKrebs avatar EinKrebs commented on July 23, 2024

@pavolloffay Why do you need multiple clusters? You can just create more shards on the first cluster. As far as I know, ClickHouse cannot work with multiple clusters at the same time.

from jaeger-clickhouse.

pavolloffay avatar pavolloffay commented on July 23, 2024

@pavolloffay Why do you need multiple clusters?

I don't need multiple clusters, this was just an experiment to test the {cluster}

from jaeger-clickhouse.

EinKrebs avatar EinKrebs commented on July 23, 2024

@pavolloffay Does your question still remain? I'm asking because from your test above it's obvious that tables are created on the only cluster.

from jaeger-clickhouse.

pavolloffay avatar pavolloffay commented on July 23, 2024

yes my question remains. I thought that {cluster} would make sure that the tables will be created on all clusters, however it is not the case.

from jaeger-clickhouse.

EinKrebs avatar EinKrebs commented on July 23, 2024

No, it would make sure taht tables will be created not on all clusters, but on any cluster, regardless of its name.

from jaeger-clickhouse.

pavolloffay avatar pavolloffay commented on July 23, 2024

Do you have a pointer to docs? :)

from jaeger-clickhouse.

EinKrebs avatar EinKrebs commented on July 23, 2024

Here you go https://cloud.yandex.ru/docs/managed-clickhouse/concepts/replication.

from jaeger-clickhouse.

pavolloffay avatar pavolloffay commented on July 23, 2024

Thanks, PS I don't speak Russian πŸ™ˆ

from jaeger-clickhouse.

EinKrebs avatar EinKrebs commented on July 23, 2024

Is the isssue resolved, so we can close it?

from jaeger-clickhouse.

pavolloffay avatar pavolloffay commented on July 23, 2024

yes

from jaeger-clickhouse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.