#44 为cache和proxy设置statsd server。

This commit is contained in:
zhengchao
2018-11-23 17:23:48 +08:00
parent 88849c9890
commit 3970d9de04
6 changed files with 24 additions and 12 deletions

View File

@@ -622,6 +622,10 @@ struct cache_handle* create_web_cache_handle(const char* profile_path, const cha
struct cache_handle* cache=ALLOC(struct cache_handle, 1);
int temp=0;
struct event* ev=NULL;
char statsd_server_ip[TFE_SYMBOL_MAX]={0};
char histogram_bins[TFE_SYMBOL_MAX]={0};
int statsd_server_port=0;
cache->logger=logger;
cache->thread_count=tfe_proxy_get_work_thread_count();
cache->clients=ALLOC(struct tango_cache_instance *, cache->thread_count);
@@ -698,9 +702,6 @@ struct cache_handle* create_web_cache_handle(const char* profile_path, const cha
0, cache);
cache->ref_feather=feather;
}
char statsd_server_ip[TFE_SYMBOL_MAX];
char histogram_bins[TFE_SYMBOL_MAX];
int statsd_server_port=0;
MESA_load_profile_string_def(profile_path, section, "statsd_server", statsd_server_ip,
sizeof(statsd_server_ip), "");