-
Notifications
You must be signed in to change notification settings - Fork 207
Support elastic fleets #2967
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
Support elastic fleets #2967
Conversation
| class Config(CoreModel.Config): | ||
| @staticmethod | ||
| def schema_extra(schema: Dict[str, Any]): | ||
| add_extra_schema_types( | ||
| schema["properties"]["replicas"], | ||
| extra_types=[{"type": "integer"}, {"type": "string"}], | ||
| ) |
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.
@r4victor, looks like this Config overrides ProfileParams.Config, so the service configuration JSON schema now includes some unnecessary properties like pool_name
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.
I fixed this and other Config overrides issues in https://github.com/dstackai/dstack/compare/issue_2994_pydantic_stored_types
It's minor, so shouldn't affect the release.
A part of #1448
Fixes #2221
Fixes #2294
This PR:
Respects nodes.max for fleet configuration.(this change requires everyone to explicitly define elastic fleets so we'll postpone the enforcement until pre-creating fleets is required)TBD (separate PRs):