Skip to content

Commit

Permalink
Persist logs from elasticsearch and uniconfig-controller garbage coll…
Browse files Browse the repository at this point in the history
…ectors
  • Loading branch information
Jozef Volak authored and marosmars committed Feb 17, 2022
1 parent 9e6c011 commit ba99f2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions composefiles/swarm-uniflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ services:
- "ES_JAVA_OPTS=-Xms${ES_JAVA_OPTS_M} -Xmx${ES_JAVA_OPTS_M}"
volumes:
- frinx_uniflow_elastic_data:/usr/share/elasticsearch/data
- frinx_uniflow_elastic_logs:/usr/share/elasticsearch/logs
- ${UF_CONFIG_PATH}/elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
- ${UF_CONFIG_PATH}/elasticsearch/backup.sh:/usr/share/elasticsearch/backup.sh:ro
healthcheck:
Expand Down Expand Up @@ -516,6 +517,8 @@ configs:
volumes:
frinx_uniflow_elastic_data:
name: frinx_uniflow_elastic_data
frinx_uniflow_elastic_logs:
name: frinx_uniflow_elastic_logs
frinx_uniflow_postgresql_data:
name: frinx_uniflow_postgresql_data
frinx_uniflow_inventory_postgresql_data:
Expand Down
2 changes: 1 addition & 1 deletion config/uniconfig/run_uniconfig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ esac
done

# removing cached data and logs from previous run
rm -rf snapshots/ journal/ log/${UNICONFIG_ID}/* log/gc-${UNICONFIG_ID}.lo*
rm -rf snapshots/ journal/

# folder where lighty stores data
mkdir -m 700 -p data
Expand Down

0 comments on commit ba99f2e

Please sign in to comment.