LemmyNet / lemmy-ansible

A docker deploy for ansible
GNU Affero General Public License v3.0
248 stars 92 forks source link

Upcoming 1.3.0 Release (Lemmy v0.19) #200

Closed ticoombs closed 9 months ago

ticoombs commented 10 months ago

Tasks

codyro commented 10 months ago

I'll snag a few of these over the next few days--feel free to separate any into tasks and assign them to me as well.

Add new section with Options (Moving forward if we have multiple options we need better documentation regarding what each option does)

What Options are you referring to here?

If we do need to move to 0.5 there will be a migration plan created

We should consider this sooner rather than later, regardless of whether we need it for this release.

ticoombs commented 10 months ago

What Options are you referring to here?

pictrs_safety specifically now. But in the future when we choices such as multiple frontends where to do pictrs DB etc

dessalines commented 10 months ago

@asonix is working on a 0.4 -> 0.5 migration script iirc, but I don't know how we'll be able to integrate it into this upgrade.

kroese commented 10 months ago

This migration is only necessary when you want to switch from the sled backend to the postgresql database backend. So maybe its an option to switch to 0.5 first without any changes and do the switch to postgresql at a later point (with the release of Lemmy 0.20 for example).

codyro commented 10 months ago

@asonix is working on a 0.4 -> 0.5 migration script iirc, but I don't know how we'll be able to integrate it into this upgrade.

Does the newest version of Lemmy require 0.5, or can we keep having it use 0.4 until we iron out an upgrade path?

kroese commented 10 months ago

AFAIK Lemmy 0.19 will also work with 0.4 (but I upgraded to 0.5 long ago, so I cannot tell that from experience).

Also with migration, I assumed it was about moving the ansible from sled db to postgresql db. But there is also another kind of migration in 0.5, that fetches the metadata for all objects.

This is automaticly executed and was finished within seconds in my case. But for users who ever had 0.3 or older installed, this process can take a long time because their objects do not have this metadata.

I see that version 0.4.6 is just released which contains a few improvements to prepare for this migration, so the first step would be updating the ansible to that version.

The upgrade from pict-rs 0.4 to 0.5 might take some time. Any uploads that have not had their metadata extracted will be processed during this migration. In order to reduce the time required the migration, pict-rs version 0.4.6 can be run first, and the /internal/prepare_upgrade endpoint can be hit. This will tell pict-rs to extract the required metadata for the 0.5 upgrade in the background while 0.4 is still running, enabling the upgrade to 0.5 to proceed much faster after it completes.

ticoombs commented 9 months ago

@dessalines @Nutomic Do you have any documented upgrade instructions from 0.18.x to 0.19.0 ? As we end up linking here for the upgrade instructions, we probably should write them.

Any gotchas or specific things of note? Or is it the standard change to new tag, run?


I see that version 0.4.6 is just released which contains a few improvements to prepare for this migration, so the first step would be updating the ansible to that version.

Yep, we'll bump to 0.4.6 for the next 2 weeks, instead of 0.5, and then go to 0.5 to ensure people have a smooth upgrade.

dessalines commented 9 months ago

No gotchas, this one only requires upping the versions in the docker-compose.yml .