Commit Graph

4 Commits

Author SHA1 Message Date
Deimos a47517e2b8 Move gunicorn server config out of INI files
gunicorn 20.0.0 included a change so that it will no longer read server
configuration out of Paster files. Because of this, the settings for it
in development.ini and production.ini were no longer being used. This
resulted in the auto-reloading no longer working in dev, and the number
of workers being reduced back down to 1 in production. The socket/PID
may have been impacted as well.

This commit moves the configuration into command-line args used to
launch gunicorn, and uses a pillar variable to handle the args different
between dev and prod.
2019-12-17 15:46:45 -07:00
Deimos ca509b220b Update PostgreSQL version to 12
Changing these pillar values are the only actual changes to Tildes
code/config needed, but if you're upgrading an existing version from 10
to 12 you will need to do some manual steps. The below should cover it -
lines starting with a * are descriptions of things you need to do, while
the rest are actual commands to run:

sudo apt-get install postgresql-12

sudo systemctl stop postgresql@10-main.service

sudo systemctl stop postgresql@12-main.service

cd /var/lib/postgresql

sudo -u postgres /usr/lib/postgresql/12/bin/pg_upgrade -b /usr/lib/postgresql/10/bin/ -B /usr/lib/postgresql/12/bin/ -d /var/lib/postgresql/10/main/ -D /var/lib/postgresql/12/main/ -o '-c config_file=/etc/postgresql/10/main/postgresql.conf' -O '-c config_file=/etc/postgresql/12/main/postgresql.conf'

* Change pillar value to 12, and run salt

sudo systemctl stop postgresql@10-main.service

* Edit /etc/postgresql/12/main/postgresql.conf and change port to 5432

sudo systemctl restart postgresql@12-main.service

sudo -u postgres ./analyze_new_cluster.sh

* After verifying the new version seems to be working, clean up the old version:

sudo apt-get remove postgresql-10
sudo rm -rf /usr/lib/postgresql/10/
sudo rm -rf /var/lib/postgresql/10/
sudo rm -rf /etc/postgresql/10/
2019-10-20 12:47:45 -06:00
Deimos 2edc4ff67a Salt: update states related to Prometheus
Some of these states were built entirely around a single-server approach
(Prometheus + monitoring being on the same server as the site), and the
files have needed modifications to work with a separate monitoring
server.

This updates the states so that it should all happen as expected in all
types of environments.
2019-01-20 16:21:51 -07:00
Deimos e980ab3bda Initial open-source release 2018-07-17 13:39:29 -06:00