internetofwater / geoconnex.us

URI registry for https://geoconnex.us based URIs
Other
24 stars 16 forks source link

Robustness improvements addressing #68 #72

Closed ksonda closed 4 years ago

ksonda commented 4 years ago

This Pull Request addresses #68

It implements a docker-compose configuration and Caddy proxy configuration implementing the figure in #68 , which all live in the new PIDsvc directory. While hitting Lake Champlain in CHyLD over and over again will probably result in some 502s temporarily, other requests will in general eventually get 303s.

In addition, it increases timeout allowances from 10s to 30s to accommodate CHyLD-type synchronous requests without killing the server processes. It also implements auto restarts for crashing services, so CHyLD-style 502s don't require a complete server reboot anymore.

It also implements a restore script in the BACKUP directory.

With the improved docker-compose setup integrated in the repo, and the backup script, this repository can now be used to migrate the entire geoconnex system to new cloud providers, which may become necessary in the near future due to Duke policies.