datamade / how-to

📚 Doing all sorts of things, the DataMade way
MIT License
88 stars 12 forks source link

Turn off ocd.datamade.us #296

Closed fgregg closed 1 year ago

fgregg commented 1 year ago

We no long have any projects that are using ocd.datamade.us, as far as i know. So, let's bring this service down.

Steps:

  1. Archive https://github.com/datamade/api.opencivicdata.org
  2. Archive https://github.com/datamade/imago
  3. Turn off the ocd datamade process on the server
  4. Confirm no other apps are running on the server
  5. If no other processes, terminate instance OCD API
  6. If no other processes are running on Chicago Councilmatic EC2, shut that down too
  7. Investigate 'Councilmatic' server

Maybe an alternate path ...

  1. Clear out any scraper related cron jobs on the server
  2. Drop any databases associated with ocd.datamade.us
  3. Drop any databases associated with the old chicago legistar instances
  4. Makes sure that the old chicago legistar instances are powered down

Does this seems right @hancush ? Any concerns that you see?

fgregg commented 1 year ago

the ocdapi is the only process in supervisor

> ubuntu@ip-10-0-0-80:~$ sudo supervisorctl status
ocd-api                          RUNNING    pid 1686, uptime 222 days, 9:09:43

and docker is only running one container, which is also related to the api

> ubuntu@ip-10-0-0-80:~$ sudo docker ps
CONTAINER ID        IMAGE                 COMMAND                  CREATED             STATUS                  PORTS                     NAMES
48bb30ea3fba        mdillon/postgis:9.6   "docker-entrypoint.s…"   2 years ago         Up 7 months (healthy)   0.0.0.0:32005->5432/tcp   ocd-api-postgres

this server is safe to shut down, so i'm going to do that.

fgregg commented 1 year ago

server is stopped.

fgregg commented 1 year ago

also stopping chi councilmatic server, nothing else was on there.

fgregg commented 1 year ago

the "councilmatic" server had new york and chicago-staging on them. I stopped that one too.