-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove tegola process when there are more than x number Update osm-seed version Update osm-seed version Update env var update osm-seed version Update autoscaling for cache cleaner Update osm-seed version
- Loading branch information
Rub21
committed
Aug 17, 2023
1 parent
2f1a2aa
commit 786d6ae
Showing
6 changed files
with
35 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
set -e | ||
if [[ -n "${KILL_PROCESS}" && "${KILL_PROCESS}" == "manually" ]]; then | ||
while true; do | ||
NUM_PS=$(ps | grep ${PROCESS_NAME} | grep -v grep | wc -l) | ||
if [[ $NUM_PS -gt $MAX_NUM_PS ]]; then | ||
echo "${PROCESS_NAME} processes" | ||
ps aux | grep ${PROCESS_NAME} | grep -v grep | ||
# After clearing the S3 cache, terminate all 'tegola' processes. | ||
killall ${PROCESS_NAME} | ||
# Clean cache manually from s3 | ||
aws s3 rm s3://${TILER_CACHE_BUCKET}/mnt/data/osm/ --recursive | ||
fi | ||
sleep 600 | ||
done | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
dependencies: | ||
- name: osm-seed | ||
version: '0.1.0-n771.h5ab71b9' | ||
version: '0.1.0-n768.h455eb76' | ||
repository: https://devseed.com/osm-seed-chart/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters