Skip to content

Commit

Permalink
Fix counters
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperYoko committed Dec 28, 2021
1 parent 3748f1e commit 4aa3332
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/daemons/StandAloneDaemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,17 @@
#include "folly/ScopeGuard.h"
#include "graph/service/GraphFlags.h"
#include "graph/service/GraphService.h"
#include "graph/stats/StatsDef.h"
#include "graph/stats/GraphStats.h"
#include "meta/MetaServiceHandler.h"
#include "meta/MetaVersionMan.h"
#include "meta/RootUserMan.h"
#include "meta/http/MetaHttpDownloadHandler.h"
#include "meta/http/MetaHttpIngestHandler.h"
#include "meta/http/MetaHttpReplaceHostHandler.h"
#include "meta/processors/job/JobManager.h"
#include "meta/stats/MetaStats.h"
#include "storage/StorageServer.h"
#include "storage/stats/StorageStats.h"
#include "version/Version.h"
#include "webservice/WebService.h"

Expand Down Expand Up @@ -105,7 +107,9 @@ int main(int argc, char *argv[]) {
if (FLAGS_enable_ssl || FLAGS_enable_graph_ssl || FLAGS_enable_meta_ssl) {
folly::ssl::init();
}
nebula::initCounters();
nebula::initGraphStats();
nebula::initMetaStats();
nebula::initStorageStats();

// Setup logging
auto status = setupLogging();
Expand Down Expand Up @@ -437,7 +441,7 @@ void setupThreadManager() {
int numThreads =
FLAGS_num_worker_threads > 0 ? FLAGS_num_worker_threads : gServer->getNumIOWorkerThreads();
std::shared_ptr<apache::thrift::concurrency::ThreadManager> threadManager(
PriorityThreadManager::newPriorityThreadManager(numThreads, false /*stats*/));
PriorityThreadManager::newPriorityThreadManager(numThreads));
threadManager->setNamePrefix("executor");
threadManager->start();
gServer->setThreadManager(threadManager);
Expand Down

0 comments on commit 4aa3332

Please sign in to comment.