Merge pull request #231 from ascrutae/zhangxin/fix/start-image-failed
Fix start collector image failed
This commit is contained in:
commit
86c3646a5c
|
|
@ -9,12 +9,12 @@ ENV CLUSTER_CURRENT_HOST_NAME=127.0.0.1 \
|
|||
ES_INDEX_SHARDS_NUMBER=2 \
|
||||
ES_INDEX_REPLICAS_NUMBER=0 \
|
||||
HTTP_HOST_NAME=127.0.0.1 \
|
||||
HTTP_PORT=12800 \
|
||||
HTTP_CONTEXT_PATH=/
|
||||
HTTP_PORT=12800
|
||||
|
||||
ADD skywalking-collector.tar.gz /usr/local
|
||||
COPY startup.sh /usr/local/skywalking-collector/bin
|
||||
COPY collector.config /usr/local/skywalking-collector/config
|
||||
COPY log4j2.xml /usr/local/skywalking-collector/config
|
||||
ADD docker-entrypoint.sh /
|
||||
RUN chmod +x /docker-entrypoint.sh && chmod +x /usr/local/skywalking-collector/bin/startup.sh
|
||||
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
#elasticsearch configuration, see cluster.name in "config/elasticsearch.yml"
|
||||
es.cluster.name = {ES_CLUSTER_NAME}
|
||||
es.cluster.transport.sniffer = true
|
||||
|
||||
# The elasticsearch nodes of cluster, separated by comma, e.g. nodes=ip:port, ip:port
|
||||
es.cluster.nodes={ES_CLUSTER_NODES}
|
||||
es.cluster.transport.sniffer=true
|
||||
|
||||
es.index.shards.number={ES_INDEX_SHARDS_NUMBER}
|
||||
es.index.replicas.number={ES_INDEX_REPLICAS_NUMBER}
|
||||
#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
|
||||
|
||||
|
|
|
|||
|
|
@ -15,23 +15,13 @@ eval sed -i -e 's/\{CLUSTER_SEED_NODES\}/$CLUSTER_SEED_NODES/' /usr/local/skywal
|
|||
echo "replace ES_CLUSTER_NAME with $ES_CLUSTER_NAME"
|
||||
eval sed -i -e 's/\{ES_CLUSTER_NAME\}/$ES_CLUSTER_NAME/' /usr/local/skywalking-collector/config/collector.config
|
||||
|
||||
|
||||
echo "replcae ES_CLUSTER_NODES with $ES_CLUSTER_NODES"
|
||||
eval sed -i -e 's/\{ES_CLUSTER_NODES\}/$ES_CLUSTER_NODES/' /usr/local/skywalking-collector/config/collector.config
|
||||
|
||||
echo "replace ES_INDEX_SHARDS_NUMBER with $ES_INDEX_SHARDS_NUMBER"
|
||||
eval sed -i -e 's/\{ES_INDEX_SHARDS_NUMBER\}/$ES_INDEX_SHARDS_NUMBER/' /usr/local/skywalking-collector/config/collector.config
|
||||
|
||||
echo "replace ES_INDEX_REPLICAS_NUMBER with $ES_INDEX_REPLICAS_NUMBER"
|
||||
eval sed -i -e 's/\{ES_INDEX_REPLICAS_NUMBER\}/$ES_INDEX_REPLICAS_NUMBER/' /usr/local/skywalking-collector/config/collector.config
|
||||
|
||||
echo "replace HTTP_HOST_NAME with $HTTP_HOST_NAME"
|
||||
eval sed -i -e 's/\{HTTP_HOST_NAME\}/$HTTP_HOST_NAME/' /usr/local/skywalking-collector/config/collector.config
|
||||
|
||||
echo "replace HTTP_PORT with $HTTP_PORT"
|
||||
eval sed -i -e 's/\{HTTP_PORT\}/$HTTP_PORT/' /usr/local/skywalking-collector/config/collector.config
|
||||
|
||||
echo "replace HTTP_CONTEXT_PATH with $HTTP_CONTEXT_PATH"
|
||||
eval sed -i -e 's/\{HTTP_CONTEXT_PATH\}/$HTTP_CONTEXT_PATH/' /usr/local/skywalking-collector/config/collector.config
|
||||
|
||||
exec "$@"
|
||||
exec "$@"
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
Loading…
Reference in New Issue