added better cpu load, probes
This commit is contained in:
parent
81ce915621
commit
eb34cedbf0
@ -10,36 +10,36 @@ data:
|
|||||||
|
|
||||||
# attic, yes, or no. Passed as --keep-attic, --meta, or nothing to update_database and init. Defaults to no.
|
# attic, yes, or no. Passed as --keep-attic, --meta, or nothing to update_database and init. Defaults to no.
|
||||||
OVERPASS_META: "no"
|
OVERPASS_META: "no"
|
||||||
|
|
||||||
# (init mode only) url to a "planet" file (e.g. https://planet.openstreetmap.org/planet/planet-latest.osm.bz2)
|
# (init mode only) url to a "planet" file (e.g. https://planet.openstreetmap.org/planet/planet-latest.osm.bz2)
|
||||||
OVERPASS_PLANET_URL: "https://planet.openstreetmap.org/planet/planet-latest.osm.bz2"
|
OVERPASS_PLANET_URL: "https://planet.openstreetmap.org/planet/planet-latest.osm.bz2"
|
||||||
|
|
||||||
# (clone mode only) the url to clone a copy of Overpass from. Defaults to https://dev.overpass-api.de/api_drolbr/, which uses minute diffs.
|
# (clone mode only) the url to clone a copy of Overpass from. Defaults to https://dev.overpass-api.de/api_drolbr/, which uses minute diffs.
|
||||||
# OVERPASS_CLONE_SOURCE: ""
|
# OVERPASS_CLONE_SOURCE: ""
|
||||||
|
|
||||||
# url to a diff directory for updating the instance (e.g. https://planet.openstreetmap.org/replication/minute/).
|
# url to a diff directory for updating the instance (e.g. https://planet.openstreetmap.org/replication/minute/).
|
||||||
# intentionally use the lower resolution
|
# intentionally use the lower resolution
|
||||||
OVERPASS_DIFF_URL: "https://planet.openstreetmap.org/replication/day/"
|
OVERPASS_DIFF_URL: "https://planet.openstreetmap.org/replication/day/"
|
||||||
|
|
||||||
# (init mode only) takes values of no, gz or lz4. Specifies compression mode of the Overpass database. Defaults to gz.
|
# (init mode only) takes values of no, gz or lz4. Specifies compression mode of the Overpass database. Defaults to gz.
|
||||||
# keep the default here
|
# keep the default here
|
||||||
# OVERPASS_COMPRESSION: ""
|
# OVERPASS_COMPRESSION: ""
|
||||||
|
|
||||||
# integer, desired load from area generation. Controls the ratio of sleep to work. A value of 1 will make the system sleep 99x times longer than it works, a value of 50 will result in sleep and work in equal measure, and a value of 100 will only sleep 3 seconds between each execution. Defaults to 1.
|
# integer, desired load from area generation. Controls the ratio of sleep to work. A value of 1 will make the system sleep 99x times longer than it works, a value of 50 will result in sleep and work in equal measure, and a value of 100 will only sleep 3 seconds between each execution. Defaults to 1.
|
||||||
OVERPASS_RULES_LOAD: ""
|
OVERPASS_RULES_LOAD: "50"
|
||||||
|
|
||||||
# integer, the delay between updates (seconds).
|
# integer, the delay between updates (seconds).
|
||||||
OVERPASS_UPDATE_SLEEP: ""
|
OVERPASS_UPDATE_SLEEP: ""
|
||||||
|
|
||||||
# cookie-jar compatible content to be used when fetching planet.osm files and updates.
|
# cookie-jar compatible content to be used when fetching planet.osm files and updates.
|
||||||
# OVERPASS_COOKIE_JAR_CONTENTS: ""
|
# OVERPASS_COOKIE_JAR_CONTENTS: ""
|
||||||
|
|
||||||
# commands to be run before passing the planet.osm file to update_database, e.g. conversion from pbf to osm.bz2 using osmium.
|
# commands to be run before passing the planet.osm file to update_database, e.g. conversion from pbf to osm.bz2 using osmium.
|
||||||
# OVERPASS_PLANET_PREPROCESS: ""
|
# OVERPASS_PLANET_PREPROCESS: ""
|
||||||
|
|
||||||
# commands to be run before passing the diff.osc file to update_database, e.g. extracting geo specific regions
|
# commands to be run before passing the diff.osc file to update_database, e.g. extracting geo specific regions
|
||||||
# OVERPASS_DIFF_PREPROCESS: ""
|
# OVERPASS_DIFF_PREPROCESS: ""
|
||||||
|
|
||||||
# set to yes if you want to use oauth_cookie_client to update cookies before each update. Settings are read from /secrets/oauth-settings.json. Read the documentation here.
|
# set to yes if you want to use oauth_cookie_client to update cookies before each update. Settings are read from /secrets/oauth-settings.json. Read the documentation here.
|
||||||
# USE_OAUTH_COOKIE_CLIENT: ""
|
# USE_OAUTH_COOKIE_CLIENT: ""
|
||||||
|
|
||||||
|
@ -28,12 +28,41 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- containerPort: 12345
|
- containerPort: 12345
|
||||||
|
|
||||||
# readinessProbe: TODO
|
startupProbe:
|
||||||
|
# Gives the container 180m = 3h to start up
|
||||||
|
httpGet:
|
||||||
|
path: /api/interpreter
|
||||||
|
port: 12345
|
||||||
|
periodSeconds: 60
|
||||||
|
timeoutSeconds: 5
|
||||||
|
successThreshold: 1
|
||||||
|
failureThreshold: 180
|
||||||
|
|
||||||
|
# readinessProbe:
|
||||||
|
# # Mark the conainer as unready when requests are not being served
|
||||||
|
# httpGet:
|
||||||
|
# path: /api/interpreter
|
||||||
|
# port: 12345
|
||||||
|
# initialDelaySeconds: 3600
|
||||||
|
# periodSeconds: 60
|
||||||
|
# timeoutSeconds: 5
|
||||||
|
# successThreshold: 1
|
||||||
|
|
||||||
|
livenessProbe:
|
||||||
|
# Mark the container as unhealthy when requests are not being served
|
||||||
|
httpGet:
|
||||||
|
path: /api/interpreter
|
||||||
|
port: 12345
|
||||||
|
periodSeconds: 30
|
||||||
|
timeoutSeconds: 5
|
||||||
|
failureThreshold: 2
|
||||||
|
|
||||||
|
|
||||||
# livenessProbe: TODO
|
# livenessProbe: TODO
|
||||||
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: overpass-data
|
- name: overpass-data
|
||||||
mountPath: /database
|
mountPath: /db
|
||||||
volumes:
|
volumes:
|
||||||
- name: overpass-data
|
- name: overpass-data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
|
@ -3,5 +3,10 @@ kind: ConfigMap
|
|||||||
metadata:
|
metadata:
|
||||||
name: overpass-config
|
name: overpass-config
|
||||||
data:
|
data:
|
||||||
# only monaco
|
# # only a small subset of the world in this case
|
||||||
OVERPASS_PLANET_URL: "https://planet.openstreetmap.org/TODO"
|
# OVERPASS_PLANET_URL: "https://download.geofabrik.de/europe/italy-latest.osm.pbf"
|
||||||
|
|
||||||
|
OVERPASS_PLANET_URL: "http://download.geofabrik.de/europe/belgium-latest.osm.bz2"
|
||||||
|
|
||||||
|
# left empty because we don't want to diff the whole world
|
||||||
|
OVERPASS_DIFF_URL: ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user