This repository has been archived by the owner on Nov 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 199
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
stas
committed
Apr 30, 2022
1 parent
fed6069
commit 8d37d23
Showing
16 changed files
with
593 additions
and
63 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
namespace Microsoft.OneFuzz.Service; | ||
|
||
public class TimerWorkers { | ||
ILogTracer _log; | ||
IScalesetOperations _scaleSetOps; | ||
|
||
public TimerWorkers(ILogTracer log, IScalesetOperations scaleSetOps) { | ||
_log = log; | ||
_scaleSetOps = scaleSetOps; | ||
} | ||
|
||
void ProcessScaleSets(Scaleset scaleset) { | ||
_log.Verbose($"checking scaleset for updates: {scaleset.ScalesetId}"); | ||
|
||
_scaleSetOps.UpdateConfigs(scaleset); | ||
|
||
|
||
|
||
} | ||
|
||
|
||
//public async Async.Task Run([TimerTrigger("00:01:30")] TimerInfo t) { | ||
// NOTE: Update pools first, such that scalesets impacted by pool updates | ||
// (such as shutdown or resize) happen during this iteration `timer_worker` | ||
// rather than the following iteration. | ||
|
||
|
||
|
||
|
||
// NOTE: Nodes, and Scalesets should be processed in a consistent order such | ||
// during 'pool scale down' operations. This means that pools that are | ||
// scaling down will more likely remove from the same scalesets over time. | ||
// By more likely removing from the same scalesets, we are more likely to | ||
// get to empty scalesets, which can safely be deleted. | ||
|
||
|
||
//} | ||
|
||
|
||
} |
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.