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

Elastic Premium Function App builds are slow #72

Open
ankitkumarr opened this issue Jul 18, 2019 · 3 comments
Open

Elastic Premium Function App builds are slow #72

ankitkumarr opened this issue Jul 18, 2019 · 3 comments
Assignees

Comments

@ankitkumarr
Copy link
Contributor

kudulite build paths for Elastic Premium function apps take excessively long causing builds to crash. This is caused because the shared home directory in Elastic Premium containers are powered by Azure Files and during build, kudulite build process uses the /home directory for storing logs, caching packages etc.

We can make several improvements in this build process, by work-arounds like changing the default caching location for Python builds, storing logs temporarily in local disk and then moving over to home. More details TBD.

@ankitkumarr
Copy link
Contributor Author

This can be assigned to me

@ankitkumarr
Copy link
Contributor Author

ankitkumarr commented Jul 19, 2019

The work-around for the time-being can be (assuming storage is in the same region as EP plan) --

  1. App an App Setting XDG_CACHE_HOME to point to /tmp/.cache (or other local dir). This will make pip cache everything there instead of the shared home dir.
  2. Do not poll logs for EP sku builds, and use /api/isdeploying as the truth.

Maybe instead of 1, we could set that Environment var in kudulite if sku is EP. But changing the client is simpler at the moment.
With this, we should be unblocked to successfully do builds. But, we should still think of an actual fix and try to get it done soon. That fix would help improve build times even more.

\cc @jeffhollan

@bohonan
Copy link

bohonan commented Apr 7, 2022

any progress on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants