minzu0306 / tasks

0 stars 0 forks source link

[Graphite] carbon 구조 #2

Open minzu0306 opened 8 years ago

minzu0306 commented 8 years ago

/opt/graphite/conf/carbon.conf : configuring carbon

[cache]
#Enable daily log rotation
ENABLE_LOGROTATION = True
USER =

# Limit the size of the cache to avoid swapping or becoming CPU bound. inf : infinity
MAX_CACHE_SIZE = inf

# Limit the number of whisper update_many() calls per second. disk에 보내지는 write요청의 수 
MAX_UPDATES_PER_SECOND = 500 
# Limit the number of whisper files that get created each minute.# Setting this value low (like at 50) is a good way
MAX_CREATES_PER_MINUTE = 50

LINE_RECEIVER_INTERFACE = 0.0.0.0
LINE_RECEIVER_PORT = 2003
ENABLE_UDP_LISTENER = False
UDP_RECEIVER_INTERFACE = 0.0.0.0
UDP_RECEIVER_PORT = 2003
PICKLE_RECEIVER_INTERFACE = 0.0.0.0
PICKLE_RECEIVER_PORT = 2004
LOG_LISTENER_CONNECTIONS = True
USE_INSECURE_UNPICKLER = False
CACHE_QUERY_INTERFACE = 0.0.0.0
CACHE_QUERY_PORT = 7002
USE_FLOW_CONTROL = True
LOG_UPDATES = False
LOG_CACHE_HITS = False
LOG_CACHE_QUEUE_SORTS = True
CACHE_WRITE_STRATEGY = sorted
WHISPER_AUTOFLUSH = False
WHISPER_FALLOCATE_CREATE = True

# 60초 간격으로 기기에 접근? 0이면 접근불가 
CARBON_METRIC_INTERVAL = 60
ENABLE_AMQP = False

#데이터 전달 carbon-relay controll 
[relay]
ENABLE_LOGROTATION = True
USER =
LINE_RECEIVER_INTERFACE = 0.0.0.0
LINE_RECEIVER_PORT = 2013
PICKLE_RECEIVER_INTERFACE = 0.0.0.0
PICKLE_RECEIVER_PORT = 2014

# false일 경우 connection 불가
LOG_LISTENER_CONNECTIONS = True

# use relay-rulse.conf to route metrics to destinations based on pattern rules
RELAY_METHOD = rules
REPLICATION_FACTOR = 1

# carbon daemon이 데이터를 보낼 목적지
DESTINATIONS = 127.0.0.1:2004

# carbon daemon사이의 최대 message size 
#MAX_DATAPOINTS_PER_MESSAGE = 500
#단일 목적지로 보내질 큐로 묶여진 데이터들의 최대크기 
#MAX_QUEUE_SIZE = 10000

USE_FLOW_CONTROL = True
CARBON_METRIC_INTERVAL = 60

#데이터 수집 carbon-aggregator controll 
[aggregator]
ENABLE_LOGROTATION = True
USER =
LINE_RECEIVER_INTERFACE = 0.0.0.0
LINE_RECEIVER_PORT = 2023
PICKLE_RECEIVER_INTERFACE = 0.0.0.0
PICKLE_RECEIVER_PORT = 2024

# false일 경우 connection 불가
LOG_LISTENER_CONNECTIONS = True
FORWARD_ALL = True
DESTINATIONS = 127.0.0.1:2004
REPLICATION_FACTOR = 1
MAX_QUEUE_SIZE = 10000
# True : MAX_QUEUE_SIZE의 80% 밑으로 size가 떨어질 때까지 임시적으로 데이터 수집을 중단
# False : MAX_QUERE_SIZE레 도달하면 데이터포인트 drop 
USE_FLOW_CONTROL = True

MAX_DATAPOINTS_PER_MESSAGE = 500
MAX_AGGREGATION_INTERVALS = 5
CARBON_METRIC_INTERVAL = 60

Aggregation methods for whisper files. Entries are scanned in order,

and first match wins. This file is scanned for changes every 60 seconds

/opt/graphite/conf/storage-aggregation.conf

[min]
pattern = \.min$
xFilesFactor = 0.1
aggregationMethod = min

[max]
pattern = \.max$
xFilesFactor = 0.1
aggregationMethod = max

[sum]
pattern = \.count$
xFilesFactor = 0
aggregationMethod = sum

[default_average]
pattern = .*
xFilesFactor = 0.5
aggregationMethod = average