Maintenance and Operations
Information on maintenance, data loading, and performance targets for the Locations API.
Data Loading
The Locations API loads in new data at 08:00 UTC (02:00 CST/03:00 CDT) and should be complete by 09:00 UTC (03:00 CST/04:00 CDT). During this time, the Locations API will remain available, though some data will intermittently disappear while it is being reprocessed. As such, we cannot guarantee the correctness of data during this window.
Although all locations data gets re-ingested daily, this data is provided to the Locations API once per weekday, so data changes are not expected on weekends.
Service Level Objectives
We believe the Locations API is most useful when it can serve data in real time, rather than encouraging people to rely on caching data locally.
In the past, the Locations API was not built for speed, but we are actively working to improve it. With this in mind, our performance targets are as follows:
- Response times:
- JSON GET requests: 99% of GET requests will return within 1 second when using the default
page[size]of 100 and JSON responses (Acceptheader valueapplication/json).- Requests using a larger page size scale their SLO as
page[size] * 10 milliseconds (ms), with a minimum threshold of 1 second. For example, apage[size]of 500 is expected to return within 5000 ms (5 seconds). - Invalid or missing
page[size]values will default to the 1 second threshold.
- Requests using a larger page size scale their SLO as
- CSV GET requests: At present, we do not have an SLO for this.
- This is due to two factors:
- CSVs have uncapped maximum sizes:
- Because the users who requested CSV responses are doing so for bulk loading, there is no page size limitation.
- Because we return one CSV file for two separate pieces of data (locations and their addresses), this requires the duplication of data (each location can have multiple addresses, so data in the non-address columns get duplicated).
- These uncapped response sizes can exceed the maximum allowed by our API gateway. To avoid our API gateway terminating responses for exceeding this, we not only have to build the CSV response, we then have to upload it to an external host (AWS S3) and generate a pre-signed URL to allow secure access to it.
- CSVs have uncapped maximum sizes:
- Due to the uncapped amount of data we can end up fetching and the time required to upload data to S3, CSV responses can take much longer.
- Because some CSV responses cannot be uploaded to S3 before our API gateway kills requests after 30 seconds, we are looking into making bulk responses asynchronous. We will define formal SLOs for this at that time.
- This is due to two factors:
- JSON GET requests: 99% of GET requests will return within 1 second when using the default
- Error rate: 99.99% of requests will respond with a non-5XX response code outside scheduled downtime and maintenance windows.
Breaking Changes
When we have to make breaking changes, assuming it is not to patch a serious bug, we will try to give two weeks advance notice.
Outages and Downtime
Outages in the Locations API are defined as any interruption to the normal operations of the API, including those which can cause incorrect data to be returned. Outages outside our general maintenance window will be announced in our Google Group (to which anyone who is granted access to the Locations API will be added) and on the DoIT Outages website.
The Locations API has a general maintenance window of Sunday 23:00-Monday 03:00 UTC (Sunday 17:00-21:00 CST/18:00-22:00 CDT) every week, though this is usually just used for automated database maintenance. During this period, you may receive elevated rates of 5xx responses.
Unless an emergency fix is required, breaking changes and other changes we initiate which require downtime outside the general maintenance window will occur outside business hours. For non-emergency downtime, we will give at least 24 hours advance notice.