Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document Migration 3.0 to 4.0 #6851

Closed
mmattel opened this issue Jul 19, 2023 · 9 comments
Closed

Document Migration 3.0 to 4.0 #6851

mmattel opened this issue Jul 19, 2023 · 9 comments

Comments

@mmattel
Copy link
Contributor

mmattel commented Jul 19, 2023

@micbar
@kobergj
@wkloucek

@mmattel
Copy link
Contributor Author

mmattel commented Jul 25, 2023

There is at least a comment in the docs release notes PR already, but I need details to document in the admin docs.

@kobergj
Copy link
Collaborator

kobergj commented Jul 25, 2023

Space index migration is done same way as xattrs -> messagepack migration. We can offer a save migration path same as last time:

  • start storage-users and nats
  • wait for "done" log ( NOTE: there will be 3 of those messages when upgrading from 2.0 )
  • restart ocis

Remark: space index migration will be much quicker than xattrs migration unless you have thousands of spaces.

@aduffeck please correct me if I am wrong in any way

@wkloucek
Copy link
Contributor

  • start storage-users and nats

What speaks against running ocis server? In the oCIS Helm Chart we currently do not support running only some services.

@kobergj
Copy link
Collaborator

kobergj commented Jul 25, 2023

What speaks against running ocis server?

Clients will connect to the server while the migration is running. This brings a couple of problems:

  • logs will be cluttered with error messages, it will be hard to find the one (info level) "done" log.
  • during migration most files/spaces will be inaccessible for the users
  • in cases where the migration takes very long the system looks broken to the user and the admin

You can also just block outside access to the cluster during migration. This will have the same effect.

@wkloucek
Copy link
Contributor

You can also just block outside access to the cluster during migration. This will have the same effect.

Ok, this would be easier to achieve.

How can I check via automation that the migration is finished? Because I would need some way to check when I'm again allowed to put traffic onto that instance.

  • in cases where the migration takes very long the system looks broken to the user and the admin

How long is it expected to run for a midsized (???) installation (1000 spaces with 1000 files/folders each) on a reasonable fast NFS?

@wkloucek
Copy link
Contributor

How can I check via automation that the migration is finished? Because I would need some way to check when I'm again allowed to put traffic onto that instance.

Another way would be the storageusers and other services not returning "I'm ready" on their readiness endpoints (

mux.HandleFunc("/healthz", dopts.Health)
mux.HandleFunc("/readyz", dopts.Ready)
), as proposed in owncloud/ocis-charts#339 (comment)

@kobergj
Copy link
Collaborator

kobergj commented Jul 25, 2023

How can I check via automation that the migration is finished? Because I would need some way to check when I'm again allowed to put traffic onto that instance.

Unfortunately the only way of finding this out is to look for a log saying "done" as described. We urgently need a better solution for migrating. As we saw already on small scale deployments: auto-migration is bad.

How long is it expected to run for a midsized (???) installation (1000 spaces with 1000 files/folders each) on a reasonable fast NFS?

I really can't tell. The only information I have is from this ticket: #6518: A "couple hundred GB" of "small files" took "over 5 hours"

@kobergj
Copy link
Collaborator

kobergj commented Jul 25, 2023

Another way would be the storageusers and other services not returning "I'm ready" on their readiness endpoints

Yes this a solution but wouldn't work for the single binary. I would prefer a solution that can be used independent from the deployment.

@mmattel mmattel changed the title Document Migration 3.0 to 3.1 Document Migration 3.0 to 4.0 Aug 23, 2023
@mmattel
Copy link
Contributor Author

mmattel commented Aug 23, 2023

As all has been completed in docs and after sync with @kobergj - closing.

@mmattel mmattel closed this as completed Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants