Platform maintenance support 60/4060/1
authorAMIT M <am00474504@techmahindra.com>
Wed, 3 Apr 2019 14:07:35 +0000 (19:37 +0530)
committerAMIT M <am00474504@techmahindra.com>
Wed, 3 Apr 2019 14:11:27 +0000 (19:41 +0530)
 Issue-ID: ACUMOS-2004
- Updated configuration details

Change-Id: Ifc880703d0d47c2a859a2a54787e08ad56340d24
Signed-off-by: AMIT M <am00474504@techmahindra.com>
docs/release-notes.rst
elk-stack/acumos-elk-env.sh
elk-stack/docker-compose.yml
elk-stack/elasticsearch/Dockerfile

index 4b68737..5dc5f56 100644 (file)
@@ -22,7 +22,6 @@ Platform Operations, Administration, and Management (OA&M) Release Notes
 
 Version 2.0.8, 29 March 2019
 -------------------------------
-* Add implementation for Platform maintenance support (`ACUMOS-2004 <https://jira.acumos.org/browse/ACUMOS-2004>`_)
 * Add implementation for Platform maintenance support (`ACUMOS-2343 <https://jira.acumos.org/browse/ACUMOS-2343>`_)
 * Add implementation for Platform maintenance support - backend (`ACUMOS-2344 <https://jira.acumos.org/browse/ACUMOS-2344>`_)
 
index 8652b96..62a04a3 100644 (file)
@@ -33,7 +33,7 @@ export ACUMOS_ELK_KIBANA_PORT=5601
 export ACUMOS_ELK_CLIENT_PORT=9600
 
 #Elk client schedule cron job for snapshot creation.
-export ELK_CLIENT_CRONSCHEDULE_CREATESNAPSHOT_TIME=* 1 * * * *
+export ELK_CLIENT_CRONSCHEDULE_CREATESNAPSHOT_TIME="* 1 * * * *"
 
 # Java heap size
 export ACUMOS_ELK_ES_JAVA_HEAP_MIN_SIZE=4g
@@ -54,4 +54,4 @@ export NEXUS3_RELEASE_REGISTRY_LF=nexus3.acumos.org:10002
 export ELASTICSEARCH_IMAGE=acumos-elasticsearch:2.0.8
 export LOGSTASH_IMAGE=acumos-logstash:2.0.8
 export KIBANA_IMAGE=acumos-kibana:2.0.8
-export ELK_CLIENT=2.0.8
+export ELK_CLIENT=elk-client:2.0.8
index 9b158c2..99030d6 100644 (file)
@@ -23,6 +23,7 @@ services:
     image:  ${NEXUS3_RELEASE_REGISTRY_LF}/${ELASTICSEARCH_IMAGE}
     volumes:
       - acumos-esdata:/usr/share/elasticsearch/data
+      - ./snapshot-backup:/backup
     ports:
     #Node client default listens at 9200, metricbeat and logstash index data into Elasticsearch using this port.
      - "${ACUMOS_ELK_ELASTICSEARCH_PORT}:9200"
@@ -73,20 +74,24 @@ services:
                },
                "elk" : {
                    "host" : {
-                       "url":${ACUMOS_ELK_ELASTICSEARCH_HOST}
+                       "url":"${ACUMOS_ELK_ELASTICSEARCH_HOST}"
                    },
                    "elasticssearch" : {
                                "port":${ACUMOS_ELK_ELASTICSEARCH_PORT}
                            },
                    "cronschedule": {
                        "createsnapshot":{
-                           "time":${ELK_CLIENT_CRONSCHEDULE_CREATESNAPSHOT_TIME}
+                           "time":"${ELK_CLIENT_CRONSCHEDULE_CREATESNAPSHOT_TIME}"
                        }
                    }
                }
           }'
       ports:
           - ${ACUMOS_ELK_CLIENT_PORT}:9006
+      volumes:
+          - cognita-logs:/maven/logs
+      logging:
+          driver: json-file          
 
 networks:
   elk:
@@ -95,3 +100,6 @@ networks:
 volumes:
     acumos-esdata:
         external: true
+    cognita-logs:
+        external: true
+        
index fb7f99d..d68114c 100644 (file)
@@ -20,3 +20,4 @@ FROM docker.elastic.co/elasticsearch/elasticsearch-oss:6.4.3
 COPY /config/elasticsearch.yml /usr/share/elasticsearch/config/elasticsearch.yml
 # Add your elasticsearch plugins setup here
 # Example: RUN elasticsearch-plugin install analysis-icu
+USER elasticsearch