Pigeon illustration by Joseph Wilkins
The answer to inconsistent spot price bids.
price-pigeon, Mapbox platform team members would hand-tweak spot price bids to get us the best balance between constantly needing to spin up new instances, and saving money on the AWS spot market. Since each Mapbox service can run on a variety of instance types (and they have a lot of services!) that meant a lot of small adjustments and no clear guidelines for where to start.
Price-pigeon allowed us to set bids as a percentage of the OnDemand price for that instance type, taking out some of the guess work of good bids and saving Mapbox thousands of dollars a month.
Price-pigeon uses the AWS Price List API to generate a mapping of OnDemand prices by instance type. This mapping can be used during instance creation to make accurate spot bid prices.