AllenInstitute / datacube

Other
0 stars 1 forks source link

conn_bridge status / health check #22

Closed chrisbarber closed 6 years ago

chrisbarber commented 6 years ago

conn_bridge should provide a method for checking that it is running / healthy, preferably without this check requiring downstream dependencies to also be healthy. A no-op status method could be added on the HTTP side and so status would be checked separately from the other services. Or, an explicit check could be added to cgi/apptest.py (by making a similar HTTP request). Or a final option would be to do the status check on the websocket side; currently the other services do this-- services register 'status' methods and cgi/apptest.py just probes the router for any procedures with that name and calls them. This would probably be the easiest except that conn_bridge won't have permission to register methods unless you go through the WAMP-CRA process done by the other services. I'm not sure if there is a simpler way to do auth; I just went with what seemed to be the path of least resistance that I could find. We do have to have some way of preventing anonymous clients from registering procedures on the router.

NileGraddis commented 6 years ago
<!doctype html>
    <html>
        <body>
            <p>org.brain_map.locator.status: up</p><p>org.brain-map.api.datacube.status.cell_specimens.5858503340419958: up</p><p>org.brain-map.api.datacube.status.connectivity.4873462118559115: up</p><p>org.brain-map.api.datacube.status.mouse_ccf.4873462118559115: up</p><p>conn_bridge: up</p>
        </body>
    </html>