[#265] innerring: Select containers to audit
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
87e1252065
commit
3d3d058b05
8 changed files with 263 additions and 11 deletions
|
@ -1,5 +1,23 @@
|
|||
package audit
|
||||
|
||||
import (
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
func (ap *Processor) processStartAudit(epoch uint64) {
|
||||
ap.log.Info("flushing left audit results and refilling queue")
|
||||
// todo: flush left audit results from audit result cache
|
||||
|
||||
containers, err := ap.selectContainersToAudit(epoch)
|
||||
if err != nil {
|
||||
ap.log.Error("container selection failure",
|
||||
zap.String("error", err.Error()))
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
ap.log.Info("select containers for audit", zap.Int("amount", len(containers)))
|
||||
|
||||
// todo: for each container get list of storage groups
|
||||
// todo: for each container create audit result template in audit result cache
|
||||
// todo: for each container push audit tasks into queue
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue