gpt4 book ai didi

kubernetes - 无法使用 k8ssandra 部署 Cassandra

转载 作者:行者123 更新时间:2023-12-05 04:30:59 27 4
gpt4 key购买 nike

我正在使用下图将 Cassandra 集群部署到我的 gke 集群。 https://github.com/k8ssandra/k8ssandra/tree/main/charts/k8ssandra

然而,statefulset 停留在状态 1/2(cassandra 容器状态始终不健康)

这是我的 values.yaml

cassandra:
auth:
superuser:
secret: cassandra-admin-secret
clusterName: cassandra-cluster
version: "4.0.0"
cassandraLibDirVolume:
storageClass: standard
size: 5Gi
allowMultipleNodesPerWorker: true
resources:
requests:
cpu: 500m
memory: 2Gi
limits:
cpu: 500m
memory: 2Gi
datacenters:
- name: dc1
size: 1
racks:
- name: default

stargate:
enabled: true
replicas: 1
heapMB: 256
cpuReqMillicores: 200
cpuLimMillicores: 500

kube-prometheus-stack:
enabled: False
NAME                                                READY   STATUS     RESTARTS   AGE
cassandra-cluster-dc1-default-sts-0 1/2 Running 0 77m

然后我描述了pod

Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning Unhealthy 2m11s (x478 over 81m) kubelet Readiness probe failed: HTTP probe failed with statuscode: 500

最后,我打印了cassandra容器的日志。

INFO  [nioEventLoopGroup-2-2] 2022-04-20 11:09:35,711 Cli.java:617 - address=/10.12.11.58:51000 url=/api/v0/metadata/endpoints status=500 Internal Server Error
INFO [nioEventLoopGroup-3-14] 2022-04-20 11:09:37,718 UnixSocketCQLAccess.java:88 - Cannot create Driver CQLSession as the driver socket has not been created. This should resolve once Cassandra has started and created the socket at /tmp/cassandra.sock
INFO [nioEventLoopGroup-2-1] 2022-04-20 11:09:37,720 Cli.java:617 - address=/10.12.11.58:51132 url=/api/v0/metadata/endpoints status=500 Internal Server Error
INFO [nioEventLoopGroup-3-15] 2022-04-20 11:09:37,750 UnixSocketCQLAccess.java:88 - Cannot create Driver CQLSession as the driver socket has not been created. This should resolve once Cassandra has started and created the socket at /tmp/cassandra.sock
INFO [nioEventLoopGroup-2-2] 2022-04-20 11:09:37,750 Cli.java:617 - address=/10.12.11.1:48478 url=/api/v0/probes/readiness status=500 Internal Server Error
INFO [nioEventLoopGroup-3-16] 2022-04-20 11:09:39,741 UnixSocketCQLAccess.java:88 - Cannot create Driver CQLSession as the driver socket has not been created. This should resolve once Cassandra has started and created the socket at /tmp/cassandra.sock

server-system-logger的日志

tail: cannot open '/var/log/cassandra/system.log' for reading: No such file or directory

我该如何解决这个问题?谢谢。

最佳答案

cassandra 容器中的消息说,一旦 Cassandra 启动并运行,它应该自行解决,这是正确的。

同样,在 Cassandra 启动之前,server-system-logger 容器没有可用的日志,更准确地说,在日志框架初始化之前。

关于kubernetes - 无法使用 k8ssandra 部署 Cassandra,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71938749/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com