-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Add ENV variables to control GCS upload/download chunk size and timeouts #5438
Conversation
@mokrueger Thanks for the contribution! The DCO check failed. Please sign off your commits by following the instructions here: https://github.com/mlflow/mlflow/runs/5374804456. See https://github.com/mlflow/mlflow/blob/master/CONTRIBUTING.rst#sign-your-work for more details. |
…eouts (fixes GCS timeouts for uploads/downloads with slow transfer speeds) Signed-off-by: Moritz Krüger <moritz.krueger@fn.de>
72489b9
to
ec499e3
Compare
docs/source/tracking.rst
Outdated
- ``MLFLOW_GCS_UPLOAD_CHUNK_SIZE`` - Set the standard upload chunk size for bigger files in KB (GCP Default: 104857600 ≙ 100MB), must be multiple of 256 KB | ||
- ``MLFLOW_GCS_DOWNLOAD_CHUNK_SIZE`` - Set the standard download chunk size for bigger files in KB (GCP Default: 104857600 ≙ 100MB), must be multiple of 256 KB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be beneficial to most users if we reduced this chunk size (or increased the timeout) to reduce occurrences of #3478?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Errors would mostly occur if the upload speed is slower than 13.3 Mbit/s (~1.67 MB/s), so probably if experiments are run locally (eg. local testing) and not in cloud environments. A default increase of the timeout would definitely help that. On the other side it’s probably impossible to avoid errors like that for all users since some people (including myself) have really slow uploads locally which would require really high timeout settings, so maybe it’s enough for people to set it up themselves. But I’m by no means a timeout expert
autoformat |
Signed-off-by: mlflow-automation <mlflow-automation@users.noreply.github.com>
…ew parameters. Signed-off-by: Moritz Krüger <moritz.krueger@fn.de>
Adjusted the tests. Should go through now. |
…ew parameters. Signed-off-by: Moritz Krüger <moritz.krueger@fn.de>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks @mokrueger !
Signed-off-by: Moritz Krüger <moritz.krueger@fn.de>
Signed-off-by: Moritz Krüger <moritz.krueger@fn.de>
Fixed the linting issues. Thanks for the help on this PR (and my first ever contribution), @dbczumar ! |
Awesome! No problem! |
Signed-off-by: Moritz Krüger <moritz.krueger@fn.de>
@dbczumar, I fixed the linting again. Guess it didn't like it before for some reason. |
…eouts Signed-off-by: Moritz Krüger <moritz.krueger@witt-gruppe.eu>
Hi, Is there a similar ENV variable for Minio ? |
Add ENV variables to control GCS upload/download chunk size and timeouts
(fixes GCS timeouts for uploads/downloads with slow transfer speeds -> more info #3478 )
Partial fix to #3478
What changes are proposed in this pull request?
Add ENV variables to control GCS upload/download chunk size and timeouts. Implementation details are open for discussion.
How is this patch tested?
Not yet.
Does this PR change the documentation?
ci/circleci: build_doc
check. If it's successful, proceed to thenext step, otherwise fix it.
Details
on the right to open the job page of CircleCI.Artifacts
tab.docs/build/html/index.html
.Release Notes
Is this a user-facing change?
Environment variables MLFLOW_GCS_DEFAULT_TIMEOUT, MLFLOW_GCS_UPLOAD_CHUNK_SIZE, MLFLOW_GCS_DOWNLOAD_CHUNK_SIZE added to control GCS artifact storage
What component(s), interfaces, languages, and integrations does this PR affect?
Components
area/artifacts
: Artifact stores and artifact loggingarea/build
: Build and test infrastructure for MLflowarea/docs
: MLflow documentation pagesarea/examples
: Example codearea/model-registry
: Model Registry service, APIs, and the fluent client calls for Model Registryarea/models
: MLmodel format, model serialization/deserialization, flavorsarea/projects
: MLproject format, project running backendsarea/scoring
: MLflow Model server, model deployment tools, Spark UDFsarea/server-infra
: MLflow Tracking server backendarea/tracking
: Tracking Service, tracking client APIs, autologgingInterface
area/uiux
: Front-end, user experience, plotting, JavaScript, JavaScript dev serverarea/docker
: Docker use across MLflow's components, such as MLflow Projects and MLflow Modelsarea/sqlalchemy
: Use of SQLAlchemy in the Tracking Service or Model Registryarea/windows
: Windows supportLanguage
language/r
: R APIs and clientslanguage/java
: Java APIs and clientslanguage/new
: Proposals for new client languagesIntegrations
integrations/azure
: Azure and Azure ML integrationsintegrations/sagemaker
: SageMaker integrationsintegrations/databricks
: Databricks integrationsHow should the PR be classified in the release notes? Choose one:
rn/breaking-change
- The PR will be mentioned in the "Breaking Changes" sectionrn/none
- No description will be included. The PR will be mentioned only by the PR number in the "Small Bugfixes and Documentation Updates" sectionrn/feature
- A new user-facing feature worth mentioning in the release notesrn/bug-fix
- A user-facing bug fix worth mentioning in the release notesrn/documentation
- A user-facing documentation change worth mentioning in the release notes