TSG-1806 tfe.conf/future.conf 均增加 statsd_cycle 配置项,用于调整 fieldstat 输出周期

This commit is contained in:
luwenpeng
2020-06-11 15:37:49 +08:00
parent 9614ea53c0
commit 82f04dcc12
4 changed files with 9 additions and 5 deletions

View File

@@ -707,8 +707,9 @@ int main(int argc, char * argv[])
CHECK_OR_EXIT(g_default_proxy->sev[i], "Failed at create signal event. Exit.");
evsignal_add(g_default_proxy->sev[i], NULL);
}
struct timeval gc_delay = {2, 0};
int statsd_cycle = 0;
MESA_load_profile_int_def(main_profile, "STAT", "statsd_cycle", &(statsd_cycle), 2);
struct timeval gc_delay = {statsd_cycle, 0};
evtimer_add(g_default_proxy->gcev, &gc_delay);
/* WORKER THREAD CTX Create */