Cassandra Removal

64 views
Skip to first unread message

Cody Cutrer

unread,
Jun 5, 2024, 11:27:53 AMJun 5
to canvas-l...@googlegroups.com
For anyone still using Cassandra for page views, you'll know that Canvas support for Cassandra has been on life support for some time, and does not support modern releases of Cassandra. With the 2024-06-19 stable release of Canvas, Cassandra support will be completely removed. But there is a smooth migration path! As part of that release, a pre-deploy migration will check if you're using Cassandra, and if so move all of the page view data back into the Postgres database. Depending on how much data you have, this migration may take quite some time, so plan accordingly. To give yourself more time, it is possible to run that migration (https://github.com/instructure/canvas-lms/commit/669c4cabac9a65049199f581ee518027cbe1623a#diff-3089f3bf30000e4222508a97d4225974750a35ca236b34dc70310589b07c8f7e) with an older release of Canvas, and continue running that older release afterwards. You'll just need to restart any running Canvas instances after the migration completes to pick up the change in where to look for page views. If you're also running the Analytics plugin, be sure that you're properly deploying the corresponding release of that plugin when you deploy the 2024-06-19 release of Canvas.

As storing page view data in the database is not the primary method that Instructure uses for our own cloud hosted instances (but is how many developers run Canvas locally), it's possible that a large self hosted school may run into performance issues with page views in the database. If you run into this, please post on the mailing list, or contact us in IRC, and we'll be happy to support you and attempt to improve the performance of this feature.

Cody Cutrer
Software Engineer
Instructure

Andrey Gangan

unread,
Jun 10, 2024, 7:34:40 AMJun 10
to Canvas LMS Users
Hi Cody!

Thanks for information.
It's high time to do it.

do you use colmn based portgresql table for migrated data?

PS. What about adding PDF.js for pdf docs? Google docs viewer sometimes is not loading docs and has pdf size limit.

Thanks
Andrey

среда, 5 июня 2024 г. в 18:27:53 UTC+3, Cody Cutrer:

Andrey Gangan

unread,
Jun 21, 2024, 2:13:55 AM (13 days ago) Jun 21
to Canvas LMS Users
Hi Cody!

No update on github Prod  tree.
is something wrong there ?

среда, 5 июня 2024 г. в 18:27:53 UTC+3, Cody Cutrer:
For anyone still using Cassandra for page views, you'll know that Canvas support for Cassandra has been on life support for some time, and does not support modern releases of Cassandra. With the 2024-06-19 stable release of Canvas, Cassandra support will be completely removed. But there is a smooth migration path! As part of that release, a pre-deploy migration will check if you're using Cassandra, and if so move all of the page view data back into the Postgres database. Depending on how much data you have, this migration may take quite some time, so plan accordingly. To give yourself more time, it is possible to run that migration (https://github.com/instructure/canvas-lms/commit/669c4cabac9a65049199f581ee518027cbe1623a#diff-3089f3bf30000e4222508a97d4225974750a35ca236b34dc70310589b07c8f7e) with an older release of Canvas, and continue running that older release afterwards. You'll just need to restart any running Canvas instances after the migration completes to pick up the change in where to look for page views. If you're also running the Analytics plugin, be sure that you're properly deploying the corresponding release of that plugin when you deploy the 2024-06-19 release of Canvas.

Cody Cutrer

unread,
Jun 24, 2024, 2:23:08 PM (9 days ago) Jun 24
to canvas-l...@googlegroups.com
Andrey,

GitHub has been updated with the latest stable branch, which includes the Cassandra changes.

Cody Cutrer
Software Engineer
Instructure
--

---
You received this message because you are subscribed to the Google Groups "Canvas LMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/canvas-lms-users/6fa41329-a176-4d7e-8445-1665e6c1acedn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages