Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
52 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
89 changes: 36 additions & 53 deletions
89
apm-collector/apm-collector-worker/docker/collector.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,46 @@ | ||
cluster.current.hostname={CLUSTER_CURRENT_HOST_NAME} | ||
cluster.current.port={CLUSTER_CURRENT_PORT} | ||
#"hostname" and "port" are used to receive internal messages from other nodes of cluster。 | ||
# Hostname can be either hostname or IP address. | ||
cluster.current.hostname = {CLUSTER_CURRENT_HOST_NAME} | ||
# Listening port. | ||
cluster.current.port = {CLUSTER_CURRENT_PORT} | ||
|
||
# In this version, all members have same roles, and everyone of them is listening the status of others. | ||
#The routers do not send message to nodes, which is unreachable, caused by network trouble, jvm crash or any other reasons. | ||
cluster.current.roles={CLUSTER_CURRENT_ROLES} | ||
|
||
#Initial contact points of the cluster, e.g. seed_nodes = 127.0.0.1:11800, 127.0.0.1:11801. | ||
#The nodes to join automatically at startup. | ||
#When setting akka configuration, it will be change. | ||
#like: ["akka.tcp://system@127.0.0.1:11800", "akka.tcp://system@127.0.0.1:11801"]. | ||
#This is akka configuration, see: http://doc.akka.io/docs/akka/2.4/general/configuration.html | ||
cluster.seed_nodes={CLUSTER_SEED_NODES} | ||
|
||
es.cluster.name={ES_CLUSTER_NAME} | ||
es.cluster.nodes={ES_CLUSTER_NODES} | ||
es.cluster.transport.sniffer=true | ||
#elasticsearch configuration, see cluster.name in "config/elasticsearch.yml" | ||
es.cluster.name = {ES_CLUSTER_NAME} | ||
es.cluster.transport.sniffer = true | ||
|
||
es.index.shards.number={ES_INDEX_SHARDS_NUMBER} | ||
es.index.replicas.number={ES_INDEX_REPLICAS_NUMBER} | ||
# The elasticsearch nodes of cluster, separated by comma, e.g. nodes=ip:port, ip:port | ||
es.cluster.nodes={ES_CLUSTER_NODES} | ||
|
||
#Initialized mode of elasticsearch index, default is auto. | ||
#Options: auto, forced, manual | ||
#auto: create index when it doesn't exist. | ||
# forced: delete and create. | ||
# manual: do nothing. | ||
es.index.initialize.mode=auto | ||
# Config of shards or replicas in Elasticsearch. | ||
es.index.shards.number=2 | ||
es.index.replicas.number=0 | ||
|
||
# "hostname", "port" and "contextPath" are used to provide HTTP RESTful services. | ||
# RESTful services include "receive segment" and "webui query services". | ||
http.hostname={HTTP_HOST_NAME} | ||
http.port={HTTP_PORT} | ||
http.contextPath={HTTP_CONTEXT_PATH} | ||
# Web context path | ||
http.contextPath=/ | ||
|
||
# Cache size of analysis worker. The value determines whether sending to next worker and clear, or not. | ||
cache.analysis.size=1024 | ||
cache.persistence.size=1024 | ||
|
||
WorkerNum.Node.NodeCompAgg.Value=10 | ||
WorkerNum.Node.NodeMappingDayAgg.Value=10 | ||
WorkerNum.Node.NodeMappingHourAgg.Value=10 | ||
WorkerNum.Node.NodeMappingMinuteAgg.Value=10 | ||
|
||
WorkerNum.NodeRef.NodeRefDayAgg.Value=10 | ||
WorkerNum.NodeRef.NodeRefHourAgg.Value=10 | ||
WorkerNum.NodeRef.NodeRefMinuteAgg.Value=10 | ||
WorkerNum.NodeRef.NodeRefResSumDayAgg.Value=10 | ||
WorkerNum.NodeRef.NodeRefResSumHourAgg.Value=10 | ||
WorkerNum.NodeRef.NodeRefResSumMinuteAgg.Value=10 | ||
|
||
WorkerNum.GlobalTrace.GlobalTraceAgg.Value=10 | ||
|
||
Queue.GlobalTrace.GlobalTraceSave.Size=1024 | ||
Queue.GlobalTrace.GlobalTraceAnalysis.Size=1024 | ||
|
||
Queue.Segment.SegmentPost.Size=1024 | ||
Queue.Segment.SegmentCostSave.Size=1024 | ||
Queue.Segment.SegmentSave.Size=1024 | ||
Queue.Segment.SegmentExceptionSave.Size=1024 | ||
|
||
Queue.Node.NodeCompAnalysis.Size=1024 | ||
Queue.Node.NodeMappingDayAnalysis.Size=1024 | ||
Queue.Node.NodeMappingHourAnalysis.Size=1024 | ||
Queue.Node.NodeMappingMinuteAnalysis.Size=1024 | ||
Queue.Node.NodeCompSave.Size=1024 | ||
Queue.Node.NodeMappingDaySave.Size=1024 | ||
Queue.Node.NodeMappingHourSave.Size=1024 | ||
Queue.Node.NodeMappingMinuteSave.Size=1024 | ||
|
||
Queue.NodeRef.NodeRefDayAnalysis.Size=1024 | ||
Queue.NodeRef.NodeRefHourAnalysis.Size=1024 | ||
Queue.NodeRef.NodeRefMinuteAnalysis.Size=1024 | ||
Queue.NodeRef.NodeRefDaySave.Size=1024 | ||
Queue.NodeRef.NodeRefHourSave.Size=1024 | ||
Queue.NodeRef.NodeRefMinuteSave.Size=1024 | ||
Queue.NodeRef.NodeRefResSumDaySave.Size=1024 | ||
Queue.NodeRef.NodeRefResSumHourSave.Size=1024 | ||
Queue.NodeRef.NodeRefResSumMinuteSave.Size=1024 | ||
Queue.NodeRef.NodeRefResSumDayAnalysis.Size=1024 | ||
Queue.NodeRef.NodeRefResSumHourAnalysis.Size=1024 | ||
Queue.NodeRef.NodeRefResSumMinuteAnalysis.Size=1024 | ||
# Cache size of persistence worker. The value determines whether save data and clear, or not. | ||
cache.persistence.size=4096 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Configuration status="debug"> | ||
<Appenders> | ||
<Console name="Console" target="SYSTEM_OUT"> | ||
<PatternLayout charset="UTF-8" pattern="[%d{yyyy-MM-dd HH:mm:ss:SSS}] [%p] - %l - %m%n" /> | ||
</Console> | ||
</Appenders> | ||
<Loggers> | ||
<Root level="info"> | ||
<AppenderRef ref="Console" /> | ||
</Root> | ||
</Loggers> | ||
</Configuration> |