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

Update DevHub Site #134

Closed
kj4ezj opened this issue Dec 9, 2022 · 4 comments
Closed

Update DevHub Site #134

kj4ezj opened this issue Dec 9, 2022 · 4 comments
Assignees
Labels
Infrastructure Cloud or physical datacenter infrastructure

Comments

@kj4ezj
Copy link

kj4ezj commented Dec 9, 2022

@nsjames asked me to update the https://learn.eosnetwork.com portal for the DevHub release with the build artifacts of the frontend v0.0.1 tag. In doing so, we ran into issues with the content delivery network (CDN) in some Eastern European and Middle East nations, including but not limited to Israel.

This ticket tracks time originally spent updating the DevHub portal website, plus the time spent investigating and resolving the CDN propagation troubles.

See Also

  • devrel issue 80 - Standup DevHub Infrastructure
  • devrel issue 96 - DNS Mapping for learn.eosnetwork.com
  • devrel issue 134 - Update DevHub Site
  • devrel issue 135 - DevHub Frontend CICD
  • devrel issue 137 - Encrypt DevHub Backend
  • devhub issue 12 - Put AWS Resources into Terraform with a CICD Deployment
  • devhub issue 13 - Document CICD System
  • devhub issue 14 - Staging Environment
  • devhub issue 15 - Backend CICD
  • devhub issue 16 - Structures CICD
  • devhub issue 17 - Add a JavaScript/TypeScript Linter to the DevHub Projects
  • devhub issue 18 - Add BASH Linters for CICD Code
  • devhub issue 19 - Include Test Suite in CICD
@kj4ezj kj4ezj added the Infrastructure Cloud or physical datacenter infrastructure label Dec 9, 2022
@kj4ezj kj4ezj self-assigned this Dec 9, 2022
@kj4ezj kj4ezj moved this to Todo in ENF Engineering Dec 9, 2022
@kj4ezj kj4ezj moved this from Todo to In Progress in ENF Engineering Dec 9, 2022
@kj4ezj
Copy link
Author

kj4ezj commented Dec 9, 2022

This is currently my highest priority per @wanderingbort.

@kj4ezj
Copy link
Author

kj4ezj commented Dec 9, 2022

Between 16:07 and 16:18 EST today, I used a VPN to test https://learn.eosnetwork.com in 14 countries. Of 14 countries, 10 rendered correctly.

  1. Israel - ❌
  2. United Kingdom - ✔️
  3. Germany - ❌
  4. Greece - ❌
  5. Argentina - ✔️
  6. Mexico - ✔️
  7. Georgia - ❌
  8. Hong Kong - ✔️
  9. Indonesia - ✔️
  10. Japan - ✔️
  11. New Zealand - ✔️
  12. Australia - ✔️
  13. South Africa - ✔️
  14. United States - ✔️

From these results, you can see only the EU and the Middle East appear to be rendering incorrectly.

Incorrect Render

2022-12-08 23-28-13 - Israel public Firefox

Correct Render

2022-12-08 23-34-08 - correct render

It has been substantially longer than the expected global propagation time of 20-35 minutes. I tried adding a new origin and changing the behavior to point to this new origin before 17:00 EST to force a replication, but this did not resolve the issue.

@kj4ezj
Copy link
Author

kj4ezj commented Dec 9, 2022

I figured out how to use invalidations to "delete" files from edge locations nearly instantaneously and force the CDN to pull content from the origin. I was able to successfully use this technique to force CloudFront to revert to the preregistration portal, then to load the newest version of the DevHub portal. Using my VPN and clearing browser cache between attempts, I tested the expected (latest) content loads in the following regions:

  1. Israel - ✔️
  2. Germany - ✔️
  3. Greece - ✔️
  4. Georgia - ✔️
  5. Argentina - ✔️
  6. South Africa - ✔️
  7. Hong Kong - ✔️
  8. New Zealand - ✔️
  9. Japan - ✔️
  10. Turkey - ✔️
  11. The United Kingdom - ✔️
  12. Finland - ✔️
  13. South Korea - ✔️
  14. Mexico - ✔️
  15. Chile - ✔️
  16. Taiwan - ✔️
  17. Canada - ✔️
  18. Indonesia - ✔️
  19. Brazil - ✔️
  20. Costa Rica - ✔️
  21. Ireland - ✔️
  22. Portugal - ✔️
  23. Ukraine - ✔️
  24. United States
    1. Chicago - ✔️
    2. Dallas - ✔️
    3. Denver - ✔️
    4. Los Angeles - ✔️
    5. Manassas - ✔️
    6. Miami - ✔️
    7. New York - ✔️
    8. Saint Louis - ✔️

This means the content on the CDN can be reliably updated. According to the AWS documentation, we can do this 1,000 times per month for free.

@kj4ezj kj4ezj moved this from In Progress to Done in ENF Engineering Dec 9, 2022
@kj4ezj
Copy link
Author

kj4ezj commented Dec 9, 2022

Marking this issue as "Done" and closing as completed because learn.eosnetwork.com is serving the head of eosnetworkfoundation/devhub (currently 62d6152) in all regions worldwide, and we have a strategy to update the site nearly instantaneously moving forward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Infrastructure Cloud or physical datacenter infrastructure
Projects
Status: Done
Development

No branches or pull requests

1 participant