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?
Published at
2023-08-14 09:17:19Event JSON
{
"id": "6831d53f2ab21713d28bf63b9a3687cdbe0f5c2de89ea9d38ecfa288ff282dc1",
"pubkey": "310811d70de0b73d09c6293869015c592e36ccc190aaa504d8d11f7777baa2b8",
"created_at": 1692004639,
"kind": 1,
"tags": [
[
"p",
"23f3b5a9df0c322c4f66590614c620cf90e2538720a106335c75239dbed152fc",
"wss://relay.mostr.pub"
],
[
"p",
"5aeb250b3075a12bd05e16c8a3c40da91a553fa92164a39915a3a0615fe51864",
"wss://relay.mostr.pub"
],
[
"t",
"lmdb"
],
[
"proxy",
"https://fosstodon.org/users/kero/statuses/110887216029262734",
"activitypub"
]
],
"content": "Hey nostr:npub1y0emt2wlpsezcnmxtyrpf33qe7gwy5u8yzssvv6uw53em0k32t7q7smm9n, 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?",
"sig": "d8319a57df92c9f83719f3f7a53da8dd1964e4228c7670715ab3f09ab5fd79a4eda0278859ba980d4212c9ee09759dc3bfb5b575bdcb96903804d2ae399c5585"
}