geotrellis / tree-prioritization-demo

Tree prioritization demo.
https://treeprioritization.geotrellis.io
Apache License 2.0
4 stars 2 forks source link

Add a breaks request to the health-check endpoint #143

Closed jwalgran closed 7 years ago

jwalgran commented 7 years ago

Refactor breaksRoute in TileService.scala so that we can call a function from the health check endpoint that simulates, as accurately as possible, a simple, unmasked breaks call.

Health checks must be GET requests, so can't just use the existing POST only breaks endpoint as our health check.

We have seen "Boxed Error" failures (https://github.com/OpenTreeMap/otm-modeling/issues/140) in staging when the bounding box of the instance was set to a rectangle within the bounds of a single zoom level 8 tile, so the bbox we pass to the breaks function can be small and still check for the failure condition.