Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Test/validate catalog-next launch plan in sandbox #401

Closed
2 tasks
adborden opened this issue Aug 20, 2020 · 10 comments
Closed
2 tasks

Test/validate catalog-next launch plan in sandbox #401

adborden opened this issue Aug 20, 2020 · 10 comments
Assignees

Comments

@adborden
Copy link
Contributor

adborden commented Aug 20, 2020

User Story

In order to reduce risk and keep the catalog-next launch as simple and foolproof as possible, a data.gov operator wants a detailed launch plan validated in the sandbox environment.

Acceptance Criteria

Details / tasks

  • Create new CloudFront distribution in sandbox
  • Add the existing catalog instance (catalog.sandbox.datagov.us) to the CloudFront distribution
  • Update catalog.datagov.us DNS record to point to the CloudFront distribution
  • Apply the steps in the launch plan
  • Cleanup: Remove the DNS name and CloudFront distribution
@adborden
Copy link
Contributor Author

Maybe we should do this in sandbox since we don't have a CloudFront distribution configured for staging and it would not be easy to add one.

@ghost ghost assigned avdata99 and thejuliekramer Sep 23, 2020
@adborden adborden changed the title Test/validate catalog-next launch plan in staging Test/validate catalog-next launch plan in sandbox Sep 30, 2020
@avdata99 avdata99 removed their assignment Oct 23, 2020
@ghost
Copy link

ghost commented Oct 26, 2020

@thejuliekramer Is there an estimate for this?

@thejuliekramer
Copy link
Contributor

Linking #449

@thejuliekramer
Copy link
Contributor

@cmugisha #449 was created to do load testing but we may need for the production environment to do real load testing

@thejuliekramer
Copy link
Contributor

@cmugisha I think more information is needed for this - who is going to do this work and what work needs to be done

@thejuliekramer
Copy link
Contributor

We need to understand more what CloudFront does so we know what to do with this ticket

@adborden
Copy link
Contributor Author

Paired with @thejuliekramer on this today. We created a new CloudFront distribution in sandbox: https://d1xr5ix4dos50f.cloudfront.net/dataset Think of this URL as the equivalent of catalog.data.gov.

Right now, visiting https://d1xr5ix4dos50f.cloudfront.net/dataset will show catalog-classic (catalog.sandbox.datagov.us). After running through launch plan, https://d1xr5ix4dos50f.cloudfront.net/dataset will show catalog-next (catalog-next.sandbox.datagov.us). If it doesn't, it means there's a bug in our launch plan and we should update the launch plan to fix it :)

@thejuliekramer and I discussed some of the details of this. We added the catalog-next backend to CloudFront and discussed what the actual switchover looks like through the CloudFront UI in the AWS console.

There's a catch in that the CKAN config (production.ini) can only point to one URL at a time, right now catalog-next is using catalog-next.sandbox.datagov.us. Because of this some redirects don't work correctly on https://d1xr5ix4dos50f.cloudfront.net, but that is just a test issue we can ignore. It does mean that we'll want to update production.ini as pre-step to the launch plan.

@thejuliekramer
Copy link
Contributor

thejuliekramer commented Nov 3, 2020

@adborden the pull request has been deployed I changed the behavior to now point to the catalog-next url as seen here

Screen Shot 2020-11-02 at 6 25 26 PM

When I go the url d1xr5ix4dos50f.cloudfront.net it is still pointing to old catalog... is there I step I missed?

@adborden
Copy link
Contributor Author

adborden commented Nov 3, 2020

@thejuliekramer we probably need to invalidate the cache... Under the "Invalidations" tab, enter * to invalidate everything.

We should add this to the launch plan steps.

@thejuliekramer
Copy link
Contributor

@adborden this worked! d1xr5ix4dos50f.cloudfront.net

I updated the launch plan steps to be more specific

@ghost ghost closed this as completed Nov 9, 2020
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants