From f1823f99509ca4d83c1c21163d3301003c8b40b6 Mon Sep 17 00:00:00 2001 From: Mandeep Khinda Date: Wed, 30 Aug 2017 14:38:50 +0000 Subject: AAI 1.1 zookeeper config Issue-ID: OOM-65 Change-Id: Iab64a850ca9bc375c7b50efb6a94e376f947a3c1 Signed-off-by: Mandeep Khinda Signed-off-by: yuryn Signed-off-by: ronakvy --- .../config/aai/zookeeper/config/configuration.xsl | 24 +++++++++ .../config/aai/zookeeper/config/log4j.properties | 58 ++++++++++++++++++++++ .../init/src/config/aai/zookeeper/config/zoo.cfg | 28 +++++++++++ 3 files changed, 110 insertions(+) create mode 100644 kubernetes/config/docker/init/src/config/aai/zookeeper/config/configuration.xsl create mode 100644 kubernetes/config/docker/init/src/config/aai/zookeeper/config/log4j.properties create mode 100644 kubernetes/config/docker/init/src/config/aai/zookeeper/config/zoo.cfg (limited to 'kubernetes/config/docker/init') diff --git a/kubernetes/config/docker/init/src/config/aai/zookeeper/config/configuration.xsl b/kubernetes/config/docker/init/src/config/aai/zookeeper/config/configuration.xsl new file mode 100644 index 0000000000..377cdbeb93 --- /dev/null +++ b/kubernetes/config/docker/init/src/config/aai/zookeeper/config/configuration.xsl @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + +
namevaluedescription
+ + +
+
diff --git a/kubernetes/config/docker/init/src/config/aai/zookeeper/config/log4j.properties b/kubernetes/config/docker/init/src/config/aai/zookeeper/config/log4j.properties new file mode 100644 index 0000000000..c625cd48e8 --- /dev/null +++ b/kubernetes/config/docker/init/src/config/aai/zookeeper/config/log4j.properties @@ -0,0 +1,58 @@ +# Define some default values that can be overridden by system properties +zookeeper.root.logger=INFO, CONSOLE +zookeeper.console.threshold=INFO +zookeeper.log.dir=. +zookeeper.log.file=zookeeper.log +zookeeper.log.threshold=DEBUG +zookeeper.tracelog.dir=. +zookeeper.tracelog.file=zookeeper_trace.log + +# +# ZooKeeper Logging Configuration +# + +# Format is " (, )+ + +# DEFAULT: console appender only +log4j.rootLogger=${zookeeper.root.logger} + +# Example with rolling log file +#log4j.rootLogger=DEBUG, CONSOLE, ROLLINGFILE + +# Example with rolling log file and tracing +#log4j.rootLogger=TRACE, CONSOLE, ROLLINGFILE, TRACEFILE + +# +# Log INFO level and above messages to the console +# +log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender +log4j.appender.CONSOLE.Threshold=${zookeeper.console.threshold} +log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout +log4j.appender.CONSOLE.layout.ConversionPattern=%d{ISO8601} [myid:%X{myid}] - %-5p [%t:%C{1}@%L] - %m%n + +# +# Add ROLLINGFILE to rootLogger to get log file output +# Log DEBUG level and above messages to a log file +log4j.appender.ROLLINGFILE=org.apache.log4j.RollingFileAppender +log4j.appender.ROLLINGFILE.Threshold=${zookeeper.log.threshold} +log4j.appender.ROLLINGFILE.File=${zookeeper.log.dir}/${zookeeper.log.file} + +# Max log file size of 10MB +log4j.appender.ROLLINGFILE.MaxFileSize=10MB +# uncomment the next line to limit number of backup files +log4j.appender.ROLLINGFILE.MaxBackupIndex=10 + +log4j.appender.ROLLINGFILE.layout=org.apache.log4j.PatternLayout +log4j.appender.ROLLINGFILE.layout.ConversionPattern=%d{ISO8601} [myid:%X{myid}] - %-5p [%t:%C{1}@%L] - %m%n + + +# +# Add TRACEFILE to rootLogger to get log file output +# Log DEBUG level and above messages to a log file +log4j.appender.TRACEFILE=org.apache.log4j.FileAppender +log4j.appender.TRACEFILE.Threshold=TRACE +log4j.appender.TRACEFILE.File=${zookeeper.tracelog.dir}/${zookeeper.tracelog.file} + +log4j.appender.TRACEFILE.layout=org.apache.log4j.PatternLayout +### Notice we are including log4j's NDC here (%x) +log4j.appender.TRACEFILE.layout.ConversionPattern=%d{ISO8601} [myid:%X{myid}] - %-5p [%t:%C{1}@%L][%x] - %m%n diff --git a/kubernetes/config/docker/init/src/config/aai/zookeeper/config/zoo.cfg b/kubernetes/config/docker/init/src/config/aai/zookeeper/config/zoo.cfg new file mode 100644 index 0000000000..d93a63462f --- /dev/null +++ b/kubernetes/config/docker/init/src/config/aai/zookeeper/config/zoo.cfg @@ -0,0 +1,28 @@ +# The number of milliseconds of each tick +tickTime=2000 +# The number of ticks that the initial +# synchronization phase can take +initLimit=10 +# The number of ticks that can pass between +# sending a request and getting an acknowledgement +syncLimit=5 +# the directory where the snapshot is stored. +# do not use /tmp for storage, /tmp here is just +# example sakes. +dataDir=/opt/zookeeper-3.4.9/data +# the port at which the clients will connect +clientPort=2181 +# the maximum number of client connections. +# increase this if you need to handle more clients +#maxClientCnxns=60 +# +# Be sure to read the maintenance section of the +# administrator guide before turning on autopurge. +# +# http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance +# +# The number of snapshots to retain in dataDir +autopurge.snapRetainCount=3 +# Purge task interval in hours +# Set to "0" to disable auto purge feature +autopurge.purgeInterval=1 -- cgit 1.2.3-korg