-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
35af765
commit d462642
Showing
26 changed files
with
1,621 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FAABRIC_VERSION=0.18.0 | ||
FAABRIC_CLI_IMAGE=faasm.azurecr.io/faabric:0.18.0 | ||
FAABRIC_VERSION=0.19.0 | ||
FAABRIC_CLI_IMAGE=faasm.azurecr.io/faabric:0.19.0 | ||
COMPOSE_PROJECT_NAME=faabric-dev | ||
CONAN_CACHE_MOUNT_SOURCE=./conan-cache/ |
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 |
---|---|---|
@@ -1 +1 @@ | ||
0.18.0 | ||
0.19.0 |
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,33 @@ | ||
#pragma once | ||
|
||
#include <faabric/batch-scheduler/BatchScheduler.h> | ||
#include <faabric/batch-scheduler/SchedulingDecision.h> | ||
#include <faabric/util/batch.h> | ||
|
||
namespace faabric::batch_scheduler { | ||
|
||
// This batch scheduler behaves in the same way than BinPack for NEW and | ||
// SCALE_CHANGE requests, but for DIST_CHANGE it considers if any of the | ||
// hosts in the Host Map have been tainted with the eviction mark. In which | ||
// case it first tries to migrate them to other running hosts and, if not | ||
// enough hosts are available, freezes the messages. | ||
class SpotScheduler final : public BatchScheduler | ||
{ | ||
public: | ||
std::shared_ptr<SchedulingDecision> makeSchedulingDecision( | ||
HostMap& hostMap, | ||
const InFlightReqs& inFlightReqs, | ||
std::shared_ptr<faabric::BatchExecuteRequest> req) override; | ||
|
||
private: | ||
bool isFirstDecisionBetter( | ||
std::shared_ptr<SchedulingDecision> decisionA, | ||
std::shared_ptr<SchedulingDecision> decisionB) override; | ||
|
||
std::vector<Host> getSortedHosts( | ||
HostMap& hostMap, | ||
const InFlightReqs& inFlightReqs, | ||
std::shared_ptr<faabric::BatchExecuteRequest> req, | ||
const DecisionType& decisionType) override; | ||
}; | ||
} |
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
Oops, something went wrong.