-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support AWS placement groups for cluster fleets (#1725)
* Support aws placement groups for cluster fleets * Test placement group processing * Adapt placement groups to work with dstack sky * Update docs * Fix tests
- Loading branch information
Showing
20 changed files
with
611 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from enum import Enum | ||
from typing import Optional | ||
|
||
from dstack._internal.core.models.backends.base import BackendType | ||
from dstack._internal.core.models.common import CoreModel | ||
|
||
|
||
class PlacementStrategy(str, Enum): | ||
CLUSTER = "cluster" | ||
|
||
|
||
class PlacementGroupConfiguration(CoreModel): | ||
backend: BackendType | ||
region: str | ||
placement_strategy: PlacementStrategy | ||
|
||
|
||
class PlacementGroupProvisioningData(CoreModel): | ||
backend: BackendType # can be different from configuration backend | ||
backend_data: Optional[str] = None | ||
|
||
|
||
class PlacementGroup(CoreModel): | ||
name: str | ||
project_name: str | ||
configuration: PlacementGroupConfiguration | ||
provisioning_data: Optional[PlacementGroupProvisioningData] = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.