-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into feature/make_project_desc_confrigurable_1137
- Loading branch information
Showing
63 changed files
with
2,896 additions
and
699 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
Server migration checklist | ||
========================== | ||
|
||
[ ] **Target**: Check network (reachable, link speed) | ||
[ ] **Target**: Check disk (enough space, no RAID problems) | ||
[ ] **Target**: Pre-synchronize files | ||
[ ] **DNS**: Set minimum TTL | ||
[ ] **Target**: Check/upgrade system packages | ||
[ ] **Target**: Update `/physionet/physionet-build.git` | ||
[ ] **Target**: Update `/physionet/.env` | ||
[ ] **Target**: Update system config files | ||
[ ] **Target**: Enable `SYSTEM_MAINTENANCE_NO_CHANGES` | ||
[ ] **Source**: Dump and transfer database | ||
[ ] **Target**: Restore database (reload uwsgi) | ||
[ ] **Target**: Test nginx/uwsgi is working | ||
[ ] **Target**: Update `/etc/aliases` | ||
[ ] **Target**: Update certificates | ||
[ ] **Target**: Test postfix is working | ||
[ ] **Target**: Test haproxy is working | ||
[ ] **Target**: Configure iptables | ||
[ ] **Target**: Configure qdisc | ||
|
||
[ ] (proxy-backward) **Target**: Redirect connections to haproxy | ||
[ ] (proxy-backward) **DNS**: Update records | ||
|
||
[ ] **Target**: Stop background-tasks daemon | ||
[ ] **Source**: Stop background-tasks daemon | ||
[ ] **Source**: Enable `SYSTEM_MAINTENANCE_NO_UPLOAD` (reload uwsgi) | ||
[ ] **Target**: Synchronize files | ||
[ ] **Source**: Enable `SYSTEM_MAINTENANCE_NO_CHANGES` (reload uwsgi) | ||
[ ] **Source**: Dump and transfer database | ||
[ ] **Target**: Restore database (reload uwsgi) | ||
[ ] **Target**: Check new content is visible | ||
|
||
[ ] (proxy-forward) **Source**: Redirect connections to haproxy | ||
[ ] (proxy-forward) **DNS**: Update records | ||
|
||
[ ] **Target**: Disable `SYSTEM_MAINTENANCE_NO_CHANGES` (reload uwsgi) | ||
[ ] **Target**: Remove iptables redirections | ||
[ ] **Target**: Start background-tasks daemon | ||
[ ] **DNS**: Set normal TTL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Filter to get all background tasks and send them to a custom location | ||
:programname, isequal, "django-q2-tasks" -/data/log/background_tasks/django_q_tasks.log | ||
& stop |
18 changes: 18 additions & 0 deletions
18
deploy/production/etc/systemd/system/django-q2-tasks.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[Unit] | ||
Description=Command that runs Django Q2 tasks | ||
After=emperor.uwsgi.service | ||
|
||
[Service] | ||
Environment=DJANGO_SETTINGS_MODULE=physionet.settings.production | ||
ExecStart=/physionet/python-env/physionet/bin/python /physionet/physionet-build/physionet-django/manage.py qcluster | ||
StandardError=syslog | ||
SyslogIdentifier=django-q2-tasks | ||
Restart=always | ||
KillSignal=SIGINT | ||
Type=simple | ||
NotifyAccess=all | ||
User=www-data | ||
Group=www-data | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Filter to get all background tasks and send them to a custom location | ||
:programname, isequal, "django-q2-tasks" -/data/log/background_tasks/django_q_tasks.log | ||
& stop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[Unit] | ||
Description=Command that runs Django Q2 tasks | ||
After=emperor.uwsgi.service | ||
|
||
[Service] | ||
Environment=DJANGO_SETTINGS_MODULE=physionet.settings.staging | ||
ExecStart=/physionet/python-env/physionet/bin/python /physionet/physionet-build/physionet-django/manage.py qcluster | ||
StandardError=syslog | ||
SyslogIdentifier=django-q2-tasks | ||
Restart=always | ||
KillSignal=SIGINT | ||
Type=simple | ||
NotifyAccess=all | ||
User=www-data | ||
Group=www-data | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.