Skip to content

Commit 401e54f

Browse files
authored
Disable Estimator (#667)
* Disable Estimator Signed-off-by: ortyomka <[email protected]> * Remove flag Signed-off-by: ortyomka <[email protected]> * Rename scheduler Signed-off-by: ortyomka <[email protected]>
1 parent f1c2c44 commit 401e54f

File tree

7 files changed

+570
-87
lines changed

7 files changed

+570
-87
lines changed

core/miner/main/main.cpp

+2-8
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
#include "sector_storage/fetch_handler.hpp"
4646
#include "sector_storage/impl/manager_impl.hpp"
4747
#include "sector_storage/impl/scheduler_impl.hpp"
48-
#include "sector_storage/impl/worker_estimator_impl.hpp"
4948
#include "sector_storage/stores/impl/index_impl.hpp"
5049
#include "sector_storage/stores/impl/local_store.hpp"
5150
#include "sector_storage/stores/impl/remote_store.hpp"
@@ -96,7 +95,6 @@ namespace fc {
9695
boost::optional<RegisteredSealProof> seal_type;
9796
std::vector<Address> precommit_control;
9897
int api_port{};
99-
uint64_t estimator_window{};
10098

10199
/** Path to presealed sectors */
102100
boost::optional<boost::filesystem::path> preseal_path;
@@ -158,8 +156,6 @@ namespace fc {
158156
option("owner", po::value(&config.owner));
159157
option("worker", po::value(&config.worker));
160158
option("sector-size", po::value(&raw.sector_size));
161-
option("estimator-window",
162-
po::value(&config.estimator_window)->default_value(10));
163159
option("precommit-control", po::value(&config.precommit_control));
164160
option("pre-sealed-sectors",
165161
po::value(&config.preseal_path),
@@ -428,12 +424,10 @@ namespace fc {
428424
local_store, std::move(auth_headers))};
429425

430426
IoThread io_thread2;
427+
// TODO(ortoymka): Use scheduler with estimator, when it will done
431428
OUTCOME_TRY(wscheduler,
432429
sector_storage::SchedulerImpl::newScheduler(
433-
io_thread2.io,
434-
prefixed("scheduler_works/"),
435-
std::make_shared<sector_storage::EstimatorImpl>(
436-
config.estimator_window)));
430+
io_thread2.io, prefixed("scheduler_works/")));
437431

438432
IoThread io_thread3;
439433

core/sector_storage/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ target_link_libraries(estimator
5252

5353
add_library(scheduler
5454
impl/scheduler_impl.cpp
55+
impl/new_scheduler_impl.cpp
5556
)
5657

5758
target_link_libraries(scheduler

0 commit comments

Comments
 (0)