What is Nostr?
kero /
npub1xyy…6vyg
2023-08-14 09:17:19

kero on Nostr: Hey npub1y0emt…smm9n, we want to, zero-downtime swap an #LMDB environment that ...

Hey npub1y0emt2wlpsezcnmxtyrpf33qe7gwy5u8yzssvv6uw53em0k32t7q7smm9n (npub1y0e…mm9n), we want to, zero-downtime swap an #LMDB environment that comes from an S3 with one that is already on disk (and opened). My first idea was to open the incoming env, open a write txn on the dst one and clear and copy the entries into the existing one but I fear about the MDB_TXN_FULL error. The second idea is to close the env (awaiting running txns) and swap the env files. This can produce a downtime. Do you recommend anything else?
Author Public Key
npub1xyypr4cduzmn6zwx9yuxjq2utyhrdnxpjz422pxc6y0hwaa652uqmy6vyg