TSG-1806 tfe.conf/future.conf 均增加 statsd_cycle 配置项,用于调整 fieldstat 输出周期
This commit is contained in:
@@ -18,6 +18,7 @@ struct future_promise_instance
|
||||
int fsid_f_num;
|
||||
long long f_num;
|
||||
int no_stats;
|
||||
int statsd_cycle;
|
||||
MESA_htable_handle name_table;
|
||||
char statsd_server_ip[256];
|
||||
int statsd_server_port;
|
||||
@@ -72,6 +73,7 @@ void future_promise_library_init(const char* profile)
|
||||
MESA_load_profile_string_def(profile, "STAT", "statsd_server",
|
||||
g_FP_instance.statsd_server_ip, sizeof(g_FP_instance.statsd_server_ip), "");
|
||||
MESA_load_profile_int_def(profile, "STAT", "statsd_port", &(g_FP_instance.statsd_server_port), 0);
|
||||
MESA_load_profile_int_def(profile, "STAT", "statsd_cycle", &(g_FP_instance.statsd_cycle), 2);
|
||||
MESA_load_profile_string_def(profile, "STAT", "histogram_bins",
|
||||
g_FP_instance.histogram_bins, sizeof(g_FP_instance.histogram_bins), FP_HISTOGRAM_BINS);
|
||||
MESA_load_profile_int_def(profile, "STAT", "print_diff",
|
||||
@@ -112,8 +114,7 @@ void future_promise_library_init(const char* profile)
|
||||
FS_set_para(fs, PRINT_MODE, &value, sizeof(value));
|
||||
value=1;
|
||||
FS_set_para(fs, CREATE_THREAD, &value, sizeof(value));
|
||||
value=2;
|
||||
FS_set_para(fs, STAT_CYCLE, &value, sizeof(value));
|
||||
FS_set_para(fs, STAT_CYCLE, &g_FP_instance.statsd_cycle, sizeof(g_FP_instance.statsd_cycle));
|
||||
if(strlen(g_FP_instance.statsd_server_ip)>0 && g_FP_instance.statsd_server_port!=0)
|
||||
{
|
||||
FS_set_para(fs, STATS_SERVER_IP, g_FP_instance.statsd_server_ip, strlen(g_FP_instance.statsd_server_ip)+1);
|
||||
|
||||
Reference in New Issue
Block a user