File tree Expand file tree Collapse file tree 5 files changed +15
-4
lines changed 
kubernetes/linera-validator Expand file tree Collapse file tree 5 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ RUN cargo build --release \
6363    --bin linera \
6464    --bin linera-proxy \
6565    --bin linera-server \
66-     --features scylladb,metrics
66+     --features scylladb,rocksdb, metrics
6767
6868RUN  mv \
6969    target/"$target" /release/linera \
Original file line number Diff line number Diff line change 44ORDINAL=" ${HOSTNAME##* -} " 
55
66exec  ./linera-server run \
7-   --storage scylladb :tcp:scylla-client.scylla.svc.cluster.local:9042 \
7+   --storage dualrocksdbscylladb:linera.db:spawn_blocking :tcp:scylla-client.scylla.svc.cluster.local:9042 \
88  --server /config/server.json \
99  --shard $ORDINAL  \
1010  --genesis /config/genesis.json
Original file line number Diff line number Diff line change 11#! /bin/sh
22
33while  true ;  do 
4-   ./linera storage check_existence --storage " scylladb :tcp:scylla-client.scylla.svc.cluster.local:9042" 
4+   ./linera storage check_existence --storage " dualrocksdbscylladb:linera.db:spawn_blocking :tcp:scylla-client.scylla.svc.cluster.local:9042" 
55  status=$? 
66
77  if  [ $status  -eq  0 ];  then 
@@ -10,7 +10,7 @@ while true; do
1010  elif  [ $status  -eq  1 ];  then 
1111    echo  " Database does not exist, attempting to initialize..." 
1212    if  ./linera-server initialize \
13-       --storage scylladb :tcp:scylla-client.scylla.svc.cluster.local:9042 \
13+       --storage dualrocksdbscylladb:linera.db:spawn_blocking :tcp:scylla-client.scylla.svc.cluster.local:9042 \
1414      --genesis /config/genesis.json;  then 
1515      echo  " Initialization successful." 
1616      exit  0
Original file line number Diff line number Diff line change 5757            - name : config 
5858              mountPath : " /config" 
5959              readOnly : true 
60+             - name : linera-db 
61+               mountPath : " /linera.db" 
6062      volumes :
6163        - name : config 
6264          configMap :
6668                path : server.json 
6769              - key : genesisConfig 
6870                path : genesis.json 
71+   volumeClaimTemplates :
72+     - metadata :
73+         name : linera-db 
74+       spec :
75+         accessModes : ["ReadWriteOnce"] 
76+         resources :
77+           requests :
78+             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