Skip to content

Commit 6ed940c

Browse files
committed
add debug log
1 parent 0082238 commit 6ed940c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scalardb/src/scalardb/db/cluster.clj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
(def ^:private ^:const DEFAULT_CLUSTER_NODE_COUNT 3)
2020
(def ^:private ^:const DEFAULT_CASSANDRA_REPLICA_COUNT 3)
2121

22-
(def ^:private ^:const TIMEOUT_SEC 900)
22+
(def ^:private ^:const TIMEOUT_SEC 600)
2323
(def ^:private ^:const INTERVAL_SEC 10)
2424

2525
(def ^:private ^:const CLUSTER_NODE_NAME "scalardb-cluster-node")
@@ -146,6 +146,8 @@
146146
:--set "dbUser.user=cassandra"
147147
:--set "dbUser.password=cassandra"
148148
:--set (str "replicaCount=" DEFAULT_CASSANDRA_REPLICA_COUNT)
149+
;; TODO: config cassandra.yaml for commitlog_sync
150+
:--set "persistence.enabled=true"
149151
;; Need an external IP for storage APIs
150152
:--set "service.type=LoadBalancer"
151153
:--set "primary.service.type=LoadBalancer")
@@ -252,6 +254,7 @@
252254
(defn- running-pods?
253255
"Check if nodes are running."
254256
[test prefix num]
257+
(info "DEBUG:" (-> test :nodes first (c/on (c/exec :kubectl :describe :pod "cassandra-scalardb-cluster-0"))))
255258
(-> test
256259
:nodes
257260
first

0 commit comments

Comments
 (0)