Open BGTCapital opened 2 years ago
I haven't used Persistent Volumes with Hummingbot, I setup monitoring Infrastructure recognize and cancel "dead" orders instead. I don't see why a persistent volume wouldn't work though
Hi Thank you for your message. I am struggling to find a solution to properly manage all hanging orders once the K8 pod is reseted automatically by the cluster, or manually deleted when the pods are achieved. Since there is no way to way to close the open orders when shutting down, how are you able to recognise dead orders and kill them? Are you using an external solution? Thanks
On 22 Nov 2022, at 14:05, Thomas Salzgeber @.***> wrote:
I haven't used Persistent Volumes with Hummingbot, I setup monitoring Infrastructure recognize and cancel "dead" orders instead. I don't see why a persistent volume wouldn't work though
— Reply to this email directly, view it on GitHub https://github.com/stalkopat/hummingbot-kubernetes/issues/1#issuecomment-1323649901, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWURKUGGJCZ5HWTHDR4PBPDWJTAK7ANCNFSM6AAAAAASBK56OQ. You are receiving this because you authored the thread.
Hi stalkopat I have been working with this for a while, but in order to persist the storage (so that when the pods are restarted for any reason, HB can recover the existing orders), I cannot find the way to build the yaml file. Example:
apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: ku-pmm-avax-usdt-11-sc provisioner: kubernetes.io/gce-pd volumeBindingMode: Immediate allowVolumeExpansion: true reclaimPolicy: Retain parameters: type: pd-standard fstype: ext4 replication-type: none
apiVersion: v1 kind: PersistentVolumeClaim metadata: name: ku-pmm-avax-usdt-11-pv-c namespace: hummingbot spec: accessModes:
... ...
apiVersion: apps/v1 kind: StatefulSet metadata: name: ku-pmm-avax-usdt-11 namespace: hummingbot spec: replicas: 1 serviceName: ku-pmm-avax-usdt-11 selector: matchLabels: app: ku-pmm-avax-usdt-11-hummingbot template: metadata: labels: app: ku-pmm-avax-usdt-11-hummingbot spec: serviceAccountName: ku-pmm-avax-usdt-11-sa containers:
To me it looks as if the mountPath is wrong volumeMounts:
Do you have experience adding persistent Volume to the pod, so that orders can be automatically recover ? Thanks