From abef0296105d538c0f79661bed9e5a496f1a5920 Mon Sep 17 00:00:00 2001 From: winlin Date: Sun, 27 Jul 2014 15:04:31 +0800 Subject: [PATCH] refine full conf --- trunk/conf/full.conf | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/trunk/conf/full.conf b/trunk/conf/full.conf index 1db459e0e..a209d0ce5 100644 --- a/trunk/conf/full.conf +++ b/trunk/conf/full.conf @@ -43,6 +43,9 @@ max_connections 1000; # default: on daemon on; +############################################################################################# +# heartbeat/stats sections +############################################################################################# # heartbeat to api server # @remark, the ip report to server, is retrieve from system stat, # which need the config item stats.network_device_index. @@ -74,6 +77,19 @@ heartbeat { summaries off; } +# system statistics section. +# the main cycle will retrieve the system stat, +# for example, the cpu/mem/network/disk-io data, +# the http api, for instance, /api/v1/summaries will show these data. +# @remark the heartbeat depends on the network_device_index, +# for example, the eth0 maybe the device which index is 0. +stats { + # the index of device ip. + # we may retrieve more than one network device. + # default: 0 + network_device_index 0; +} + ############################################################################################# # HTTP sections ############################################################################################# @@ -114,19 +130,6 @@ http_stream { dir ./objs/nginx/html; } -# system statistics section. -# the main cycle will retrieve the system stat, -# for example, the cpu/mem/network/disk-io data, -# the http api, for instance, /api/v1/summaries will show these data. -# @remark the heartbeat depends on the network_device_index, -# for example, the eth0 maybe the device which index is 0. -stats { - # the index of device ip. - # we may retrieve more than one network device. - # default: 0 - network_device_index 0; -} - ############################################################################################# # RTMP/HTTP VHOST sections #############################################################################################