我正在使用Kubernetes设置OrientDB集群。我在StatefulSet中定义了PVC。当我没有定义持久卷时,它们会被动态调配,并且正确定义了配置和数据。但是,当我定义自己的持久卷时,会发生一些奇怪的错误,例如:
np.unique(a.values.ravel(),return_counts=True)
Out[292]: (array([1, 2, 3, 5], dtype=int64), array([3, 1, 1, 1], dtype=int64))
可能是什么原因? 这是我的永久卷的样子。它们有6个,因此这种类型的卷有3对,区别在于名称和路径名:
INFO System is started under an effective user : `root` [OEngineLocalPaginated]Error during server execution
com.orientechnologies.orient.core.exception.ODatabaseException: Invalid configuration settings. Can not set maximum size of WAL segment
StatefulSet看起来像这样:
apiVersion: v1
kind: PersistentVolume
metadata:
name: "pv-db-1"
labels:
service: orientdb
type: local
spec:
storageClassName: standard
capacity:
storage: "40Gi"
accessModes: [ "ReadWriteOnce" ]
hostPath:
path: /orientdb/databases/databases-1
persistentVolumeReclaimPolicy: Retain
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: "pv-backup-1"
labels:
service: orientdb
type: local
spec:
storageClassName: standard
capacity:
storage: "20Gi"
accessModes: [ "ReadWriteOnce" ]
hostPath:
path: /orientdb/backup/backup-1
persistentVolumeReclaimPolicy: Retain