Skip to content

Commit

Permalink
Merge pull request #225 from OpenHistoricalMap/staging
Browse files Browse the repository at this point in the history
Updates for production
  • Loading branch information
Ruben L. Mendoza authored Aug 29, 2023
2 parents 6d5a620 + e367a45 commit e53229f
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 16 deletions.
2 changes: 1 addition & 1 deletion images/tiler-server/cache_cleaner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ flag=true
while "$flag" = true; do
pg_isready -h $POSTGRES_HOST -p 5432 >/dev/null 2>&2 || continue
flag=false
./tile_cache_downloader.sh & ./expire-watcher.sh & ./rm_tegola_ps.sh
./tile_cache_downloader.sh & ./expire-watcher.sh
done
2 changes: 1 addition & 1 deletion images/web/config/cgimap.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# This section could be placed in a .htaccess file in /var/www/public, but
# the ProxyPreserveHost directive can't. If you don't have access to the
# apache config you won't be able to get OAuth to work

# Enable rewrites
RewriteEngine on

Expand Down
1 change: 0 additions & 1 deletion images/web/config/production.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# Tell Apache and Passenger where your app's 'public' directory is
DocumentRoot /var/www/public
PassengerRuby /usr/bin/ruby

RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} =http
# Development mode in case domain is localhost
Expand Down
2 changes: 1 addition & 1 deletion ohm/requirements.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dependencies:
- name: osm-seed
version: '0.1.0-n768.h455eb76'
version: '0.1.0-n766.h9014f61'
repository: https://devseed.com/osm-seed-chart/
32 changes: 23 additions & 9 deletions values.production.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ osm-seed:
memory: "2Gi"
cpu: "1"
limits:
memory: "2Gi"
memory: "4Gi"
cpu: "2"
autoscaling:
enabled: true
Expand Down Expand Up @@ -408,19 +408,19 @@ osm-seed:
replicaCount: 1
command: './cache_cleaner.sh'
resources:
enabled: false
enabled: true
requests:
memory: "8Gi"
cpu: "1"
limits:
memory: "10Gi"
memory: "1Gi"
cpu: "2"
limits:
memory: "2Gi"
cpu: "4"
env:
KILL_PROCESS: manually
KILL_PROCESS: none
MAX_NUM_PS: 5
PROCESS_NAME: tegola
autoscaling:
enabled: true
enabled: false
minReplicas: 1
maxReplicas: 1
cpuUtilization: 90
Expand Down Expand Up @@ -653,4 +653,18 @@ osm-seed:
enabled: true
label_key: nodegroup_type
label_value: web

# ====================================================================================================
# Variables for changeset-replication-job, Configuration to create the replication files by, minute, hour, or day
# ====================================================================================================
changesetReplicationJob:
enabled: true
resources:
enabled: false
requests:
memory: '20Gi'
cpu: '8'
limits:
memory: '24Gi'
cpu: '10'
nodeSelector:
enabled: false
21 changes: 18 additions & 3 deletions values.staging.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -443,11 +443,11 @@ osm-seed:
memory: "10Gi"
cpu: "2"
env:
KILL_PROCESS: manually
KILL_PROCESS: none
MAX_NUM_PS: 4
PROCESS_NAME: tegola
autoscaling:
enabled: true
enabled: false
minReplicas: 1
maxReplicas: 1
cpuUtilization: 90
Expand Down Expand Up @@ -684,4 +684,19 @@ osm-seed:
nodeSelector:
enabled: true
label_key: nodegroup_type
label_value: web
label_value: web
# ====================================================================================================
# Variables for changeset-replication-job, Configuration to create the replication files by, minute, hour, or day
# ====================================================================================================
changesetReplicationJob:
enabled: true
resources:
enabled: false
requests:
memory: '20Gi'
cpu: '8'
limits:
memory: '24Gi'
cpu: '10'
nodeSelector:
enabled: false

0 comments on commit e53229f

Please sign in to comment.