#44 为cache和proxy设置statsd server。
This commit is contained in:
@@ -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), "");
|
||||
|
||||
Reference in New Issue
Block a user