File tree Expand file tree Collapse file tree 7 files changed +20
-7
lines changed
kubernetes/linera-validator Expand file tree Collapse file tree 7 files changed +20
-7
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ RUN cargo build ${build_flag:+"$build_flag"} \
6969 --bin linera \
7070 --bin linera-proxy \
7171 --bin linera-server \
72- --features scylladb,metrics
72+ --features scylladb,rocksdb, metrics
7373
7474RUN mv \
7575 target/"$target" /"$build_folder" /linera \
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ storage_replication_factor=$1
66ORDINAL=" ${HOSTNAME##* -} "
77
88exec ./linera-server run \
9- --storage scylladb :tcp:scylla-client.scylla.svc.cluster.local:9042 \
9+ --storage dualrocksdbscylladb:/rocksdb/linera.db:spawn_blocking :tcp:scylla-client.scylla.svc.cluster.local:9042 \
1010 --server /config/server.json \
1111 --shard $ORDINAL \
1212 --genesis /config/genesis.json \
Original file line number Diff line number Diff line change 22
33storage_replication_factor=$1
44while true ; do
5- ./linera storage check-existence --storage " scylladb :tcp:scylla-client.scylla.svc.cluster.local:9042"
5+ ./linera storage check-existence --storage " dualrocksdbscylladb:/rocksdb/linera.db:spawn_blocking :tcp:scylla-client.scylla.svc.cluster.local:9042"
66 status=$?
77
88 if [ $status -eq 0 ]; then
@@ -11,7 +11,7 @@ while true; do
1111 elif [ $status -eq 1 ]; then
1212 echo " Database does not exist, attempting to initialize..."
1313 if ./linera-server initialize \
14- --storage scylladb :tcp:scylla-client.scylla.svc.cluster.local:9042 \
14+ --storage dualrocksdbscylladb:/rocksdb/linera.db:spawn_blocking :tcp:scylla-client.scylla.svc.cluster.local:9042 \
1515 --genesis /config/genesis.json \
1616 --storage-replication-factor $storage_replication_factor ; then
1717 echo " Initialization successful."
Original file line number Diff line number Diff line change @@ -69,4 +69,3 @@ releases:
6969 set :
7070 - name : crds.enabled
7171 value : " true"
72-
Original file line number Diff line number Diff line change @@ -9,16 +9,16 @@ controllerResources:
99 memory : 200Mi
1010
1111scylla :
12- developerMode : true
1312 scyllaImage :
1413 tag : 5.4.3
1514 agentImage :
1615 tag : 3.2.8
17- datacenter : manager-dc
16+ datacenter : validator
1817 racks :
1918 - name : manager-rack
2019 members : 1
2120 storage :
21+ storageClassName : nvme-ssd-block
2222 capacity : 5Gi
2323 resources :
2424 limits :
Original file line number Diff line number Diff line change 4545 - name : config
4646 mountPath : " /config"
4747 readOnly : true
48+ - name : linera-db
49+ mountPath : " /rocksdb/linera.db"
4850 containers :
4951 - name : linera-server
5052 image : {{ .Values.lineraImage }}
5759 - name : config
5860 mountPath : " /config"
5961 readOnly : true
62+ - name : linera-db
63+ mountPath : " /rocksdb/linera.db"
6064 volumes :
6165 - name : config
6266 configMap :
6670 path : server.json
6771 - key : genesisConfig
6872 path : genesis.json
73+ volumeClaimTemplates :
74+ - metadata :
75+ name : linera-db
76+ spec :
77+ accessModes : ["ReadWriteOnce"]
78+ storageClassName : nvme-ssd-block
79+ resources :
80+ requests :
81+ storage : {{ .Values.rocksdbStorageSize }}
Original file line number Diff line number Diff line change 44lineraImage: {{ env "LINERA_HELMFILE_LINERA_IMAGE" | default "linera:latest" }}
55lineraImagePullPolicy: Never
66logLevel: "debug"
7+ rocksdbStorageSize: 2Gi
78proxyPort: 19100
89metricsPort: 21100
910numShards: {{ env "LINERA_HELMFILE_SET_NUM_SHARDS" | default 10 }}
You can’t perform that action at this time.
0 commit comments