-
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.
Merge pull request #224 from OpenHistoricalMap/staging
Remove tiler cache manually when container gets too busy.
- Loading branch information
Showing
6 changed files
with
34 additions
and
9 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