From 255cd59ee62b1054a050cf57f2225dc97d5a6a5a Mon Sep 17 00:00:00 2001 From: Jan Eitzinger Date: Tue, 17 Aug 2021 18:26:53 +0200 Subject: [PATCH] Change InfluxDB Retention. --- data/init.sh | 3 ++- docker-compose-dev.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/data/init.sh b/data/init.sh index afdbaf8..d95f3e6 100755 --- a/data/init.sh +++ b/data/init.sh @@ -12,6 +12,7 @@ if [ $# -gt 0 ]; then if [ $1 == "dev" ]; then # 101 is the uid and gid of the user and group www in the cc-php container running php-fpm. # For a demo with no new jobs it is enough to give www read permissions on that directory. + echo "This script needs to chown the job-archive directory so that the application can write to it:" sudo chown -R 101:101 ./job-archive mkdir -p influxdb/data @@ -19,8 +20,8 @@ if [ $# -gt 0 ]; then cd influxdb/data tar xJf ../../influxdbv2-data.tar.xz rm ../../influxdbv2-data.tar.xz - cd ../.. + # If development: Use SQL source including INFLUX-Job Metadata instead cp ./sql-source/ClusterCockpit-dev.sql ./sql-init/ClusterCockpit.sql fi diff --git a/docker-compose-dev.yml b/docker-compose-dev.yml index e7b85c3..d1e5ee1 100644 --- a/docker-compose-dev.yml +++ b/docker-compose-dev.yml @@ -13,7 +13,7 @@ services: DOCKER_INFLUXDB_INIT_PASSWORD: ${INFLUXDB_PASSWORD} DOCKER_INFLUXDB_INIT_ORG: ClusterCockpit DOCKER_INFLUXDB_INIT_BUCKET: ClusterCockpit - DOCKER_INFLUXDB_INIT_RETENTION: 2w + DOCKER_INFLUXDB_INIT_RETENTION: 2y DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: ${INFLUXDB_ADMIN_TOKEN} ports: - "127.0.0.1:${INFLUXDB_PORT}:8086"