Cost.h 1.0 KB
Newer Older
W
wxyu 已提交
1 2 3 4 5 6 7 8
/*******************************************************************************
 * Copyright 上海赜睿信息科技有限公司(Zilliz) - All Rights Reserved
 * Unauthorized copying of this file, via any medium is strictly prohibited.
 * Proprietary and confidential.
 ******************************************************************************/
#pragma once

#include <vector>
9
#include "task/Task.h"
W
wxyu 已提交
10
#include "TaskTable.h"
W
wxyu 已提交
11 12
#include "CacheMgr.h"

W
wxyu 已提交
13

W
wxyu 已提交
14 15 16 17 18 19 20 21 22 23 24
namespace zilliz {
namespace milvus {
namespace engine {

// TODO: Policy interface
// TODO: collect statistics

/*
 * select tasks to move;
 * call from scheduler;
 */
W
wxyu 已提交
25
std::vector<uint64_t>
W
wxyu 已提交
26
PickToMove(TaskTable &task_table, const CacheMgr &cache_mgr, uint64_t limit);
W
wxyu 已提交
27 28 29 30 31 32 33


/*
 * select task to load
 * call from resource;
 * I DONT SURE NEED THIS;
 */
W
wxyu 已提交
34
std::vector<uint64_t>
W
wxyu 已提交
35
PickToLoad(TaskTable &task_table, uint64_t limit);
W
wxyu 已提交
36 37 38 39 40 41

/*
 * select task to execute;
 * call from resource;
 * I DONT SURE NEED THIS;
 */
W
wxyu 已提交
42
std::vector<uint64_t>
W
wxyu 已提交
43
PickToExecute(TaskTable &task_table, uint64_t limit);
W
wxyu 已提交
44 45 46 47 48


}
}
}