mitodl / ol-infrastructure

Infrastructure automation code for use by MIT Open Learning
BSD 3-Clause "New" or "Revised" License
44 stars 4 forks source link

Upgrade Redash deployment to latest release #945

Closed blarghmatey closed 2 years ago

blarghmatey commented 2 years ago

We have been running Redash via Salt for several years at this point and the current installation is using an out of date version. The upstream Redash project recently published a v10 release that we would like to migrate to.

As part of this upgrade we also want to remove the dependency on SaltStack and use our new Pulumi/Packer/PyInfra toolchain to support it. The upstream project publishes a docker-compose file that we can use as the basis for our installation.

Some things to consider for this deployment are:

Ardiea commented 2 years ago

Current State

Two new sites created with NGINX infront of a docker container running redash.

https://redash-qa.odl.mit.edu/ https://redash-production.mit.odl.edu

Everything seems to be working well? No complaints from users who have tried things so far. I believe Peter found some things that were hard-coded to 'bi.odl.mit.edu' in the dashboard but taht is okay because we will change the DNS (see below).

TODO

  1. Pick a date and time to formally cut over the environment. 
  2. Message users about 'Forgot Password' link to use going forward rather than touchstone.
  3. Take a look at @pdpinch's ticket here https://github.com/mitodl/ol-data-platform/issues/289 to remove the 'Remote Login' button. Should be possible.
  4. Do a final dump and load from https://bi.odl.mit.edu -> both new envs. Follow instructions in ol-infrastructure/src/ol-infrastructure/applications/redash/README.md on order of operations (involves invoking a manage command to upgrade v8 database to v10).
  5. Delete DNS entrie for bi.odl.mit.edu in Route53
  6. Redeploy https://redash-production.odl.mit.edu -> https://bi.odl.mit.edu (Should be just a pulumi stack deployment).
  7. Verify site functionality @ https://bi.odl.mit.edu
  8. Rejoice.
Ferdi commented 2 years ago

What is the reason for removing touchstone integration ?

Ardiea commented 2 years ago

I defer to Tobias but I believe it came down to:

"The value of the time required to get it working and functional again > value of having it working, particularly when weighed against the fact that there is very little confidence that Redash will remain the BI solution of choice going forward."

blarghmatey commented 2 years ago

That's a good summary of the situation. There are a few factors that play into this choice, though I'm happy to discuss further if there is a strong reason for leaving it in place.