Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 5a32541

Browse files
authored
Merge pull request magento-commerce/devdocs/pull/2601 from magento-devdocs/Cloud-release-Oct21
Cloud release October 2021
2 parents 2d568cc + 014720e commit 5a32541

File tree

9 files changed

+327
-242
lines changed

9 files changed

+327
-242
lines changed

src/_data/var.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,23 @@ mbi: Adobe Commerce Reporting
2121
# Cloud product name variables
2222

2323
ece: Adobe Commerce on cloud infrastructure
24-
ece-release-date: July 29, 2021
2524
csuite: Cloud Suite for Commerce
2625

2726
ct: ece-tools
2827
ct-repo: magento/ece-tools
29-
ct-release: 2002.1.7
28+
ct-release: 2002.1.8
3029

3130
mcc-prod: Cloud Components of Commerce
3231
mcc-package: magento/magento-cloud-components
33-
mcc-release: 1.0.8
32+
mcc-release: 1.0.9
3433

3534
mcd-prod: Cloud Docker for Commerce
3635
mcd-package: magento/magento-cloud-docker
37-
mcd-release: 1.2.4
36+
mcd-release: 1.3.0
3837

3938
mcp-prod: Cloud Patches for Commerce
4039
mcp-package: magento/magento-cloud-patches
41-
mcp-release: 1.0.12
40+
mcp-release: 1.0.13
4241

4342
# TIP: Use the following syntax to use a variable in the documentation source: {{site.data.var.xx}} where xx
4443
# is the variable value.

src/_includes/cloud/backup-db.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To back up your Staging or Production environment database before deploying:
2525

2626
1. Use SSH to log in to the remote server.
2727

28-
1. Create a database dump.
28+
1. Create a database dump. To choose a target directory for the DB dump, use the `--dump-directory` option.
2929

3030
```bash
3131
vendor/bin/ece-tools db-dump

src/cloud/docker/docker-mode-developer.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Developer mode supports an active development environment with full, writable fi
1111

1212
## Performance considerations
1313

14-
On macOS and Windows systems, performance is slower in developer mode because of additional file synchronization operations. However, you can improve performance by using either the `manual-native` or the `mutagen` file synchronization option when you generate the `docker-compose.yml` file. See [Synchronizing data in Docker].
14+
On macOS and Windows systems, performance is slower in developer mode because of additional file synchronization operations. However, you can improve performance by using either the `manual-native` or the `mutagen` file synchronization option when you generate the `docker-compose.yml` file. See [Synchronizing data in Docker][sync].
1515

1616
{: .bs-callout-info }
1717
The `{{site.data.var.ct}}` version 2002.0.18 and later supports developer mode.
@@ -24,7 +24,7 @@ Large files (>1 GB) can cause a period of inactivity. DB dumps and archive files
2424
**Prerequisites:**
2525

2626
- Complete the [installation steps].
27-
- [Install file synchronization tools][Synchronizing data in Docker] if needed.
27+
- [Install file synchronization tools][sync] if needed.
2828

2929
{:.procedure}
3030
To launch the Docker environment in developer mode:
@@ -35,7 +35,10 @@ To launch the Docker environment in developer mode:
3535
./vendor/bin/ece-docker build:compose --mode="developer"
3636
```
3737

38-
If required, set the option for [synchronizing data in Docker]. For example:
38+
{:.bs-callout-info}
39+
The `--mode` option in this step determines the mode in a later `deploy` step.
40+
41+
If required, set the option for [synchronizing data in Docker][sync]. For example:
3942

4043
```bash
4144
./vendor/bin/ece-docker build:compose --mode="developer" --sync-engine="mutagen"
@@ -107,10 +110,6 @@ To launch the Docker environment in developer mode:
107110
docker-compose run --rm deploy cloud-deploy
108111
```
109112

110-
```bash
111-
docker-compose run --rm deploy magento-command deploy:mode:set developer
112-
```
113-
114113
- Run post-deploy hooks.
115114

116115
```bash
@@ -153,12 +152,10 @@ To launch the Docker environment in developer mode:
153152

154153
<!--Link definitions-->
155154

156-
[{{site.data.var.mcd-prod}} Docker image]: https://hub.docker.com/r/magento/magento-cloud-docker-php/tags
157155
[installation steps]: {{site.baseurl}}/cloud/docker/docker-installation.html
158-
[latest release of the {{site.data.var.mcd-package}}]: https://github.com/magento/magento-cloud-docker/releases
159156
[magento-creds]: {{site.baseurl}}/cloud/setup/first-time-setup-import-prepare.html#auth-json
160157
[mutagen-install]: https://mutagen.io/documentation/introduction/installation/
161158
[services]: {{site.baseurl}}/cloud/docker/docker-containers.html#service-containers
162159
[service configuration options]: {{site.baseurl}}/cloud/docker/docker-containers.html#service-configuration-options
163-
[Synchronizing data in Docker]: {{site.baseurl}}/cloud/docker/docker-syncing-data.html
160+
[sync]: {{site.baseurl}}/cloud/docker/docker-syncing-data.html
164161
[xdebug]: {{site.baseurl}}/cloud/docker/docker-development-debug.html#configure-xdebug]

src/cloud/project/project-webint-snap.md

Lines changed: 40 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ You can back up and restore specific environments at any time using a snapshot.
1010
A _snapshot_ is a complete backup of an environment that includes all persistent data from all running services (for example, your MySQL database, Redis, and so on) and any files stored on the mounted volumes. Because an environment deploys as a read-only file system, restoring a snapshot is very fast.
1111

1212
{:.bs-callout-warning}
13-
If you want to rollback to previous code or remove added extensions in an environment, restoring a snapshot is not the recommended method. See [Rollbacks to remove code](#rollback-code). If you need to restore an unstable environment that does not have a snapshot, see [Restore an environment]({{ site.baseurl }}/cloud/env/restore-environment.html).
13+
If you want to rollback to previous code or remove added extensions in an environment, restoring a snapshot is not the recommended method. See [Rollbacks to remove code](#rollback-code). If you must restore an unstable environment that does not have a snapshot, see [Restore an environment]({{ site.baseurl }}/cloud/env/restore-environment.html).
1414

15-
You have up to **7 days** to _restore_ a snapshot.
15+
You have up to **seven days** to _restore_ a snapshot.
1616

17-
We provide two methods for creating and managing snapshots:
17+
Adobe provides two methods for creating and managing snapshots:
1818

1919
- Project Web Interface
2020
- Magento Cloud CLI
@@ -116,10 +116,9 @@ To restore a snapshot using the Magento Cloud CLI:
116116

117117
## Dump your database {#db-dump}
118118

119-
You can create a copy of your database using the [`magento/ece-tools`]({{ site.baseurl }}/cloud/reference/cloud-composer.html#cloud-composer-cloudmeta) `db-dump` command.
119+
You can create a copy of your database using the `{{site.data.var.ct}} db-dump` command. By default, this command creates backups in the `/app/var/dump-main` directory for all database connections that are specified in the environment configuration. For example, if you configured your project to use split databases, the `db-dump` operation creates backups for each of the configured databases.
120120

121-
By default, this command creates backups for all database connections that are specified in the environment configuration. For example, if you configured your project to use split databases, the `db-dump` operation creates backups for each of the configured databases.
122-
You can also backup only selected databases by appending the database names to the command, for example:
121+
You can also back up only selected databases by appending the database names to the command, for example:
123122

124123
```bash
125124
php vendor/bin/ece-tools -- main sales
@@ -128,43 +127,43 @@ php vendor/bin/ece-tools -- main sales
128127
For help, use the command: `php vendor/bin/ece-tools db-dump --help`
129128

130129
{:.procedure}
131-
To create a database dump:
130+
To create a database dump in the Staging or Production environment:
132131

133-
1. [SSH into the environment]({{ site.baseurl }}/cloud/env/environments-ssh.html) that contains the database you want to copy:
132+
1. [Use SSH to log in to the environment]({{ site.baseurl }}/cloud/env/environments-ssh.html) that contains the database to copy:
134133

135134
- **Staging:** `ssh -A <project ID>_stg@<project ID>.ent.magento.cloud`
136135
- **Production:** `ssh -A <project ID>@<project ID>.ent.magento.cloud`
137-
- To SSH into the `master` branch of your Integration environment:
138-
139-
```bash
140-
magento-cloud environment:ssh
141-
```
142-
143-
1. Enter the following command:
144-
145-
```bash
146-
php vendor/bin/ece-tools db-dump
147-
```
148-
149-
```terminal
150-
php vendor/bin/ece-tools db-dump
151-
The db-dump operation switches the site to maintenance mode, stops all active cron jobs and consumer queue processes, and disables cron jobs before starting the dump process.
152-
Your site will not receive any traffic until the operation completes.
153-
Do you wish to proceed with this process? (y/N)? y
154-
2020-01-28 16:38:08] INFO: Starting backup.
155-
[2020-01-28 16:38:08] NOTICE: Enabling Maintenance mode
156-
[2020-01-28 16:38:10] INFO: Trying to kill running cron jobs and consumers processes
157-
[2020-01-28 16:38:10] INFO: Running Magento cron and consumers processes were not found.
158-
[2020-01-28 16:38:10] INFO: Waiting for lock on db dump.
159-
[2020-01-28 16:38:10] INFO: Start creation DB dump for main database...
160-
[2020-01-28 16:38:10] INFO: Finished DB dump for main database, it can be found here: /tmp/qxmtlseakof6y/dump-main-1580229490.sql.gz
161-
[2020-01-28 16:38:10] INFO: Backup completed.
162-
[2020-01-28 16:38:11] NOTICE: Maintenance mode is disabled.
163-
```
164-
165-
{:.bs-callout-info}
166-
167-
- For Production environments, we recommend completing database dump operations during off-peak hours to minimize service disruptions that occur when the site is in maintenance mode.
136+
137+
```bash
138+
magento-cloud environment:ssh
139+
```
140+
141+
1. Create a backup of the database. To choose a target directory for the DB dump, use the `--dump-directory` option.
142+
143+
```bash
144+
php vendor/bin/ece-tools db-dump
145+
```
146+
147+
Sample response:
148+
149+
```terminal
150+
The db-dump operation switches the site to maintenance mode, stops all active cron jobs and consumer queue processes, and disables cron jobs before starting the dump process.
151+
Your site will not receive any traffic until the operation completes.
152+
Do you wish to proceed with this process? (y/N)? y
153+
2020-01-28 16:38:08] INFO: Starting backup.
154+
[2020-01-28 16:38:08] NOTICE: Enabling Maintenance mode
155+
[2020-01-28 16:38:10] INFO: Trying to kill running cron jobs and consumers processes
156+
[2020-01-28 16:38:10] INFO: Running Magento cron and consumers processes were not found.
157+
[2020-01-28 16:38:10] INFO: Waiting for lock on db dump.
158+
[2020-01-28 16:38:10] INFO: Start creation DB dump for main database...
159+
[2020-01-28 16:38:10] INFO: Finished DB dump for main database, it can be found here: /tmp/qxmtlseakof6y/dump-main-1580229490.sql.gz
160+
[2020-01-28 16:38:10] INFO: Backup completed.
161+
[2020-01-28 16:38:11] NOTICE: Maintenance mode is disabled.
162+
```
163+
164+
{:.bs-callout-info}
165+
166+
- For Production environments, Adobe recommends completing database dump operations during off-peak hours to minimize service disruptions that occur when the site is in maintenance mode.
168167
- The `db-dump` command creates an archive in your remote project directory called `dump-<timestamp>.sql.gz`.
169168
- If an error occurs during the dump operation, the command deletes the dump file to conserve disk space. Review the logs for details (`var/log/cloud.log`).
170169
- For Pro Production environments, this command dumps only from one of three high-availability nodes, so production data written to a different node during the dump might not be copied. The command generates a `var/dbdump.lock` file to prevent the command from running on more than one node.
@@ -174,8 +173,8 @@ If you want to push this data into an environment, see [Migrate data and static
174173

175174
## Rollbacks to remove code {#rollback-code}
176175

177-
We recommend creating a snapshot of the environment and a backup of the database prior to deployments.
176+
Adobe recommends creating a snapshot of the environment and a backup of the database prior to deployments.
178177

179-
If you need to restore a snapshot specifically to remove new code and added extensions, the process can be complicated depending on the amount of changes and when you rollback. Some rollbacks might require database changes.
178+
If you must restore a snapshot specifically to remove new code and added extensions, the process can be complicated depending on the number of changes and when you roll back. Some rollbacks might require database changes.
180179

181180
Specifically for code, you should investigate reverting code changes from your branch before redeploying. If not, every deploy pushes the master branch (code and extensions) to the target environment again. See the [Deployment Process]({{ site.baseurl }}/cloud/reference/discover-deploy.html).

src/cloud/release-notes/cloud-tools.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ This release information details the latest improvements to the {{site.data.var.
2121
When you update to `{{site.data.var.ct}}` 2002.1.0 or later, you automatically update to the latest versions of the other packages, which are dependencies for `{{site.data.var.ct}}`.
2222

2323
<!--Link definitions-->
24+
2425
[`{{site.data.var.ct}}` release notes]: {{site.baseurl}}/cloud/release-notes/ece-release-notes.html
2526
[`{{site.data.var.mcc-prod}}` release notes]: {{site.baseurl}}/cloud/release-notes/mcc-release-notes.html
2627
[`{{site.data.var.mcd-prod}}` release notes]: {{site.baseurl}}/cloud/release-notes/mcd-release-notes.html

0 commit comments

Comments
 (0)