示例#1
0
    void ProcessScaleSets(Scaleset scaleset)
    {
        _log.Verbose($"checking scaleset for updates: {scaleset.ScalesetId}");

        _scaleSetOps.UpdateConfigs(scaleset);

        //if (_scaleSetOps.Cleanup)
    }
示例#2
0
    public async Async.Task ProcessScalesets(Service.Scaleset scaleset)
    {
        _log.Verbose($"checking scaleset for updates: {scaleset.ScalesetId}");

        await _scaleSetOps.UpdateConfigs(scaleset);

        // if the scaleset is touched during cleanup, don't continue to process it
        if (await _scaleSetOps.CleanupNodes(scaleset))
        {
            _log.Verbose($"scaleset needed cleanup: {scaleset.ScalesetId}");
            return;
        }

        await _scaleSetOps.SyncScalesetSize(scaleset);

        await _scaleSetOps.ProcessStateUpdate(scaleset);
    }