This commit is contained in:
Samuel Clay 2018-04-30 21:00:50 -07:00
parent b7edf5dbe7
commit ebef75a8b3
3 changed files with 5 additions and 4 deletions

View file

@ -110,12 +110,12 @@ backend push
backend work
balance roundrobin
option httpchk GET /_nginxchk
http-check expect rstatus 200|503
http-check expect rstatus 200|503|301
{{ work }}
backend postgres
option httpchk GET /db_check/postgres
server postgres-db01 db_pgsql:5000 check inter 2000ms
server postgres-db02 db_pgsql:5000 check inter 2000ms
backend mongo
option httpchk GET /db_check/mongo

1
fabfile.py vendored
View file

@ -1090,6 +1090,7 @@ def copy_postgres_to_standby(master='db01'):
# local: fab host:new copy_ssh_keys:postgres,private=True
# new: sudo su postgres; ssh old
# new: sudo su postgres; ssh db_pgsql
# old: sudo su postgres; ssh new
# old: sudo su postgres -c "psql -c \"SELECT pg_start_backup('label', true)\""
sudo('systemctl stop postgresql')

View file

@ -85,8 +85,8 @@
<img src="/media/img/logo_512.png" class="logo">
<h1>NewsBlur is in <span class="error404">maintenance mode</span></h1>
<div class="description">
<p>Upgrading the MongoDB server. This should take about 5 minutes, hopefully less if all goes well.</p>
<p>To pass the time, <a href="http://mltshp.com/popular">check out what's popular on MLTSHOP</a>.</p>
<p>Upgrading the PostgreSQL server. This should take about 5 minutes, hopefully less if all goes well.</p>
<p>To pass the time, <a href="http://mltshp.com/popular">check out what's popular on MLTSHP</a>.</p>
</div>
</div>
</td>