nprapps / elections18-general

2018 midterm election back-end: Associated Press data ETL, database, admin panel, and JSON output; iteration upon 2016 GE work
MIT License
3 stars 1 forks source link

Check on disk space issue from 2016 #11

Closed mileswwatkins closed 6 years ago

mileswwatkins commented 6 years ago

In 2016, the GE production machine broke on election night, since it ran out of disk space. We'd apparently been saving JSON or DB dumps on a regular basis, so we could "replay" later. Investigate this by asking Tyler, and then see what steps we need to take.

mileswwatkins commented 6 years ago

Tyler says that he'd turned on elex's recording capability, for use/replays after the election, and that if we don't turn that on then we'll be fine. So I just need to make sure that that is defaulted to "off" in our configurations.

mileswwatkins commented 6 years ago

Looks like our elex flags, set in app_config.py don't include any instructions for recording. Therefore, without those environment variables set, no recording will be performed, per https://github.com/newsdev/elex/blob/f88ed1db4fbf2d651c3601622435096753e90308/elex/api/utils.py#L43