https://linen.dev logo
Hi, I am building a small stateful
# mirrord-help
j
Hi, I am building a small stateful application using the ETCD raft protocol. I am wanting to use mirrord to speed up the development but am unable to do so due to file locks being created by my application. The application indicates that the wal log is already locked when trying to take over a pod. Is there maybe a way on how I could work around this or maybe restart the pod when trying to start the application?
a
hey @Jeroen Rinzema I think you have two options: 1. Consider your local app as another replica, then use local files for the lock (mention the path under "local" in "fs" so it'll be treated locally) 2. Use copy_target + scale down feature (requires operator) -> your local app will be exclusive so you won't have any interference.
j
Hi @Aviram Hassan thanks for the suggestions! I do not think that option 2 is a viable solution for me since this is a small hobby project. Do you mean with option 1 that I simply let the node run locally using my local file system?
a
yup
does that make sense?