-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into ce/connectid-messaging-settins
- Loading branch information
Showing
45 changed files
with
752 additions
and
618 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
title: Database Backup Retention Change | ||
key: database_backup_retention_change | ||
date: 2024-10-25 | ||
optional_per_env: yes | ||
min_commcare_version: | ||
max_commcare_version: | ||
context: | | ||
The logic used to retain database backups has been modified to better respect the settings that specify | ||
how many days to keep backups. | ||
details: | | ||
No action is needed. This is just to inform you that the logic determining which backups to | ||
keep has been modified. This impacts the values set for services like [couchdb](https://github.com/dimagi/commcare-cloud/blob/c3abda48758fb337ca87e8039f1b97e333129351/src/commcare_cloud/ansible/roles/couchdb2/defaults/main.yml#L9-L10), | ||
[postgres](https://github.com/dimagi/commcare-cloud/blob/c3abda48758fb337ca87e8039f1b97e333129351/src/commcare_cloud/ansible/roles/pg_backup/defaults/main.yml#L9-L10), | ||
and [blob](https://github.com/dimagi/commcare-cloud/blob/c3abda48758fb337ca87e8039f1b97e333129351/src/commcare_cloud/ansible/roles/backups/defaults/main.yml#L5-L6). | ||
Put simply, if the <service>_backup_days value was set to 2, 4 daily backups would exist on your | ||
machine at any given time. This change reduces that value to 3 which is more in line with what | ||
it means to keep backups for 2 days. | ||
update_steps: | | ||
No action needed. |
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,30 @@ | ||
title: New Geospatial Celery Queue | ||
key: add-geospatial-queue | ||
date: 2024-11-06 | ||
optional_per_env: no | ||
min_commcare_version: | ||
max_commcare_version: 513700958cf443a85f0480ff681979d207f22db0 | ||
context: | | ||
The Microplanning feature requires the location properties on cases to be indexed correctly so | ||
that they can be used correctly in this feature. A separate queue is added to handle this indexing | ||
process when the Microplanning feature is enabled for a domain. This can potentially be a long-running | ||
task, and so having a separate queue ensures that other queues do not get clogged up by this indexing task. | ||
details: | | ||
This creates a geospatial_queue in Celery, which will be used for indexing cases when enabling the | ||
Microplanning feature. | ||
update_steps: | | ||
This update should be performed before updating CommCare to a version more recent than that specified above. | ||
First, add a queue called `geospatial_queue` to your app_processes.yml, | ||
following the examples in commcare-cloud commit [a94636b1d](https://github.com/dimagi/commcare-cloud/commit/a94636b1d). | ||
Then, to apply this change: | ||
``` | ||
commcare-cloud <env> update-supervisor-confs | ||
``` | ||
Please note that a restart is required for the change to take effect and can be done as part of the above command | ||
or with a separately done deploy. |
29 changes: 29 additions & 0 deletions
29
docs/source/changelog/0083-database_backup_retention_change.md
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,29 @@ | ||
<!--THIS FILE IS AUTOGENERATED: DO NOT EDIT--> | ||
<!--See https://github.com/dimagi/commcare-cloud/blob/master/changelog/README.md for instructions--> | ||
# 83. Database Backup Retention Change | ||
|
||
**Date:** 2024-10-25 | ||
|
||
**Optional per env:** _only required on some environments_ | ||
|
||
|
||
## CommCare Version Dependency | ||
This change is not known to be dependent on any particular version of CommCare. | ||
|
||
|
||
## Change Context | ||
The logic used to retain database backups has been modified to better respect the settings that specify | ||
how many days to keep backups. | ||
|
||
## Details | ||
No action is needed. This is just to inform you that the logic determining which backups to | ||
keep has been modified. This impacts the values set for services like [couchdb](https://github.com/dimagi/commcare-cloud/blob/c3abda48758fb337ca87e8039f1b97e333129351/src/commcare_cloud/ansible/roles/couchdb2/defaults/main.yml#L9-L10), | ||
[postgres](https://github.com/dimagi/commcare-cloud/blob/c3abda48758fb337ca87e8039f1b97e333129351/src/commcare_cloud/ansible/roles/pg_backup/defaults/main.yml#L9-L10), | ||
and [blob](https://github.com/dimagi/commcare-cloud/blob/c3abda48758fb337ca87e8039f1b97e333129351/src/commcare_cloud/ansible/roles/backups/defaults/main.yml#L5-L6). | ||
|
||
Put simply, if the <service>_backup_days value was set to 2, 4 daily backups would exist on your | ||
machine at any given time. This change reduces that value to 3 which is more in line with what | ||
it means to keep backups for 2 days. | ||
|
||
## Steps to update | ||
No action needed. |
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,38 @@ | ||
<!--THIS FILE IS AUTOGENERATED: DO NOT EDIT--> | ||
<!--See https://github.com/dimagi/commcare-cloud/blob/master/changelog/README.md for instructions--> | ||
# 84. New Geospatial Celery Queue | ||
|
||
**Date:** 2024-11-06 | ||
|
||
**Optional per env:** _required on all environments_ | ||
|
||
|
||
## CommCare Version Dependency | ||
CommCare versions beyond the following commit require this change to function correctly: | ||
[51370095](https://github.com/dimagi/commcare-hq/commit/513700958cf443a85f0480ff681979d207f22db0) | ||
|
||
|
||
## Change Context | ||
The Microplanning feature requires the location properties on cases to be indexed correctly so | ||
that they can be used correctly in this feature. A separate queue is added to handle this indexing | ||
process when the Microplanning feature is enabled for a domain. This can potentially be a long-running | ||
task, and so having a separate queue ensures that other queues do not get clogged up by this indexing task. | ||
|
||
## Details | ||
This creates a geospatial_queue in Celery, which will be used for indexing cases when enabling the | ||
Microplanning feature. | ||
|
||
## Steps to update | ||
This update should be performed before updating CommCare to a version more recent than that specified above. | ||
|
||
First, add a queue called `geospatial_queue` to your app_processes.yml, | ||
following the examples in commcare-cloud commit [a94636b1d](https://github.com/dimagi/commcare-cloud/commit/a94636b1d). | ||
|
||
Then, to apply this change: | ||
|
||
``` | ||
commcare-cloud <env> update-supervisor-confs | ||
``` | ||
|
||
Please note that a restart is required for the change to take effect and can be done as part of the above command | ||
or with a separately done deploy. |
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 |
---|---|---|
|
@@ -180,31 +180,6 @@ add them to the “sudo” user group. For example, if your username were | |
... | ||
$ sudo usermod -a -G sudo jbloggs | ||
|
||
Configure SSH | ||
------------- | ||
|
||
If you do not have an SSH key pair already, you will need to create one. | ||
(Substitute “[email protected]” with your email address) | ||
|
||
:: | ||
|
||
$ ssh-keygen -t rsa -b 4096 -C "[email protected]" | ||
|
||
**Cluster only:** Copy an SSH key pair for your user to the control | ||
machine. For example, if the key pair you want to copy is | ||
``~/.ssh/id_rsa`` and ``~/.ssh/id_rsa.pub``, then the commands to copy | ||
the SSH key pair would be | ||
|
||
:: | ||
|
||
$ ssh-copy-id -i ~/.ssh/id_rsa.pub jbloggs@control1 | ||
$ scp ~/.ssh/id_rsa{,.pub} control1:.ssh/ | ||
|
||
You can now log in using your SSH key: | ||
|
||
:: | ||
|
||
(jbloggs@jbloggs-pc) $ ssh control1 | ||
|
||
Install CommCare Cloud | ||
---------------------- | ||
|
@@ -283,12 +258,6 @@ Install CommCare Cloud | |
9. Copy your **public** key to ``~/environments/_authorized_keys/``. | ||
The filename must correspond to your username. | ||
|
||
For example: | ||
|
||
:: | ||
|
||
$ cp ~/.ssh/id_rsa.pub ~/environments/_authorized_keys/$(whoami).pub | ||
|
||
10. Change “monolith.commcarehq.test” to your real domain name, | ||
|
||
:: | ||
|
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
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
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
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.