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

[Discovery] Understand how Hosted Devstack builds its images #774

Closed
jristau1984 opened this issue Aug 14, 2024 · 3 comments
Closed

[Discovery] Understand how Hosted Devstack builds its images #774

jristau1984 opened this issue Aug 14, 2024 · 3 comments
Assignees
Labels
devstack Devstack fixes

Comments

@jristau1984
Copy link

jristau1984 commented Aug 14, 2024

Dig thru the Hosted Devstack code ( and ask Justin Hynes for help as well), to understand how the images are built.
Qs:

  • Does it do edxapp only, or IDAs as well?
  • How long does it take to build?
  • What sample data gets seeded in the image (edxapp, IDAs, etc)?
  • How are MFEs pre-configured in the image?
@jristau1984 jristau1984 converted this from a draft issue Aug 14, 2024
@github-project-automation github-project-automation bot moved this to Backlog in Arbi-BOM Oct 31, 2024
@jristau1984 jristau1984 moved this from Backlog to Todo in Arbi-BOM Oct 31, 2024
@jristau1984 jristau1984 added the devstack Devstack fixes label Nov 14, 2024
@jristau1984
Copy link
Author

The best channel to start this discovery would be #tech-hosted-devstack. The best person to reach out to would be Justin Hynes.

@robrap robrap changed the title [Discovery] Understand how Hosted Devstack builds it's images [Discovery] Understand how Hosted Devstack builds its images Dec 17, 2024
@iamsobanjaved iamsobanjaved moved this from Todo to Blocked in Arbi-BOM Jan 28, 2025
@iamsobanjaved iamsobanjaved moved this from Blocked to In Progress in Arbi-BOM Jan 28, 2025
@mumarkhan999
Copy link
Member

👉 Does it run edxapp only, or IDAs as well?

Hosted Devstack runs the default set of IDAs found in a "regular" Devstack setup—edx-platform, discovery, ecommerce, credentials—and includes some configuration to run enterprise services as part of edx-platform as well.

The MFEs enabled by default are listed here:
https://2u-internal.atlassian.net/wiki/spaces/ENG/pages/1020362766/CHANGELOG#V29(2024-11-26)

👉 How long does it take to build?

When you launch an EC2 instance of Hosted Devstack, the latest snapshot of the AMI is already selected for you. This launch process typically takes 2 to 3 minutes. However, the initial creation of a new Hosted Devstack instance may experience some lag during the first 30-60 minutes after creation.

It is very common for a brand-new Hosted Devstack instance to be slow immediately after launch. Typically, the Django services will be up and running before any of the MFEs, as the MFEs need to start up and download all their dependencies while the EC2 instance is still completing its initialization. The initial slowness usually resolves within the first hour after launching a new Hosted Devstack instance.

👉 What sample data gets seeded in the image (edxapp, IDAs, etc.)?

A dedicated AMI has been gradually customized since its initial creation. Occasionally (once every 1-2 months), the owning team refreshes the base AMI and makes adjustments or adds new configurations as needed. The team has been tracking these changes in Confluence:
https://2u-internal.atlassian.net/wiki/spaces/ENG/pages/1020362766/CHANGELOG.

👉 How are MFEs pre-configured in the image?

To pre-configure an MFE, we update the site configuration, waffle flags, and the DEFAULT_SERVICES variable in the options.local.mk file. Then, we take a snapshot of this running instance. Any new instances launched using this snapshot will have the MFE pre-configured.

More details on how to add these configurations are available here:
https://2u-internal.atlassian.net/wiki/spaces/ENG/pages/1020362766/CHANGELOG#V29(2024-11-26)

Folks with pre-provisioned Hosted Devstack instances need to make updates manually (or create a new Hosted Devstack instance).

@iamsobanjaved
Copy link
Member

Closing this as all the details we wanted are added to the issue.

@github-project-automation github-project-automation bot moved this from Backlog to Done in Arch-BOM Feb 18, 2025
@github-project-automation github-project-automation bot moved this from In Progress to Done in Arbi-BOM Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devstack Devstack fixes
Projects
Status: Done
Status: Done
Development

No branches or pull requests

3 participants