-
Notifications
You must be signed in to change notification settings - Fork 1
SS-1380 MLFlow improvements #365
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
Conversation
| response = requests.get(metrics_url, timeout=5) | ||
| response.raise_for_status() | ||
| raw_metrics = response.text | ||
| except Exception as e: |
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 be nice to catch explicit requests exeception
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.
Thanks. Added it here.
| try: | ||
| used_bytes = get_metric_value("minio_cluster_usage_total_bytes") | ||
| total_bytes = get_metric_value("minio_cluster_capacity_usable_total_bytes") | ||
| except Exception as e: |
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.
Here as as well, I'd say and have Exception as a fall back expect statement
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.
Thanks. Added it.
apps/models/app_types/mlflow.py
Outdated
| ACCESS_TYPES = (("project", "Project"),) | ||
| access = models.CharField(max_length=20, default="project", choices=ACCESS_TYPES) | ||
| upload_size = 1000 # MB | ||
| mlflow_upload_size = 1000 # MB |
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.
Is there a reason for this name change? I thought that it was convenient to have the same admin interface to change the upload size
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.
Overrided the upload_size field instead of using a new variable. Verified and in admin panel it shows the correct value also. Thanks.
Status
Ready for review.
Description
Source: https://scilifelab.atlassian.net/browse/SS-1380
1. Upgraded the MLFlow version to 3.1.1
2. Increased the upload size to 1 GB
3. MinIO storage info is visible from the MLFlow credential page.
Types of changes
new feature
Checklist
If you're unsure about any of the items below, don't hesitate to ask. We're here to help!
This is simply a reminder of what we are going to look for before merging your code.
Further comments
Anything else you think we should know before merging your code!