added better cpu load, probes
This commit is contained in:
		@@ -26,7 +26,7 @@ data:
 | 
			
		||||
  # 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.
 | 
			
		||||
  OVERPASS_RULES_LOAD: ""
 | 
			
		||||
  OVERPASS_RULES_LOAD: "50"
 | 
			
		||||
 | 
			
		||||
  # integer, the delay between updates (seconds).
 | 
			
		||||
  OVERPASS_UPDATE_SLEEP: ""
 | 
			
		||||
 
 | 
			
		||||
@@ -28,12 +28,41 @@ spec:
 | 
			
		||||
        ports:
 | 
			
		||||
        - 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
 | 
			
		||||
 | 
			
		||||
        volumeMounts:
 | 
			
		||||
        - name: overpass-data
 | 
			
		||||
          mountPath: /database
 | 
			
		||||
          mountPath: /db
 | 
			
		||||
      volumes:
 | 
			
		||||
      - name: overpass-data
 | 
			
		||||
        persistentVolumeClaim:
 | 
			
		||||
 
 | 
			
		||||
@@ -3,5 +3,10 @@ kind: ConfigMap
 | 
			
		||||
metadata:
 | 
			
		||||
  name: overpass-config
 | 
			
		||||
data:
 | 
			
		||||
  # only monaco
 | 
			
		||||
  OVERPASS_PLANET_URL: "https://planet.openstreetmap.org/TODO"
 | 
			
		||||
  # # only a small subset of the world in this case
 | 
			
		||||
  # 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: ""
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user