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

Commit f7cbc85

Browse files
hguthrieSumanPitta
andauthored
Update Cloud manage disk space (#7216)
* Correct Manage disk space section (#7171) moving to another branch for continued edits * Update manage-disk-space.md * Update manage-disk-space.md Co-authored-by: Suman <[email protected]>
1 parent 74c3764 commit f7cbc85

File tree

1 file changed

+69
-33
lines changed

1 file changed

+69
-33
lines changed

src/cloud/project/manage-disk-space.md

Lines changed: 69 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -7,72 +7,104 @@ functional_areas:
77
---
88
You can find the total storage capacity for your Cloud project in your {{site.data.var.ece}} contract and on your [Magento account page](https://accounts.magento.cloud/user). Each project card in your account shows the number of _environments_, the _storage_ capacity in GB, and the number of _users_.
99

10-
You can check disk space usage in each environment using the _disk free_ command, which reports the amount of disk space used by the file system. You must use SSH to log in to a remote environment.
10+
## Check Integration environment
11+
12+
You can check disk space usage for your Integration environment using the `magento-cloud` CLI.
13+
14+
**To check approximate disk space usage:**
1115

1216
```bash
13-
df -h
17+
magento-cloud db:size
1418
```
1519

16-
The `-h` option displays the report using a human-readable format (KB, MB, or GB).
17-
1820
Sample response:
1921

2022
```terminal
21-
Filesystem Size Used Avail Use% Mounted on
22-
/dev/loop25 518M 518M 0 100% /
23-
tmpfs 12K 0 12K 0% /dev
24-
fake-sysfs 30G 0 30G 0% /sys
25-
tmpfs 30G 0 30G 0% /sys/fs/cgroup
26-
tmpfs 5.0M 0 5.0M 0% /dev/shm
27-
tmpfs 50M 324K 50M 1% /run
28-
tmpfs 5.0M 0 5.0M 0% /run/lock
29-
/dev/loop64 121M 121M 0 100% /app
30-
/dev/mapper/35xdpijwfe 2.0G 1.9G 0 100% /mnt
31-
/dev/mapper/platform-mxeox5xy 8.0G 141M 7.9G 2% /tmp
32-
/dev/mapper/platform-lxc 313G 13G 285G 5% /run/shared
23+
Checking database service mysql...
24+
25+
+----------------+-----------------+--------+
26+
| Allocated disk | Estimated usage | % used |
27+
+----------------+-----------------+--------+
28+
| 2.0 GiB | 193.3 MiB | ~ 9% |
29+
+----------------+-----------------+--------+
3330
```
3431

35-
You can limit the response by specifying a directory. For example:
32+
All the mounts share the same disk. You can check disk space usage for mounts using the `magento-cloud` CLI.
33+
34+
**To check approximate disk space usage for mounts:**
3635

3736
```bash
38-
df -h var/
37+
magento-cloud mount:size
3938
```
4039

4140
Sample response:
4241

4342
```terminal
44-
Filesystem Size Used Avail Use% Mounted on
45-
/dev/mapper/35xdpijwfe 2.0G 1.9G 0 100% /app/var
43+
Checking disk usage for all mounts on <project>-<branch>[email protected]...
44+
45+
+------------+-----------+---------+-----------+-----------+--------+
46+
| Mount(s) | Size(s) | Disk | Used | Available | % Used |
47+
+------------+-----------+---------+-----------+-----------+--------+
48+
| app/etc | 184 KiB | 1.9 GiB | 481.3 MiB | 1.4 GiB | 24.7% |
49+
| pub/media | 128 KiB | | | | |
50+
| pub/static | 158.2 MiB | | | | |
51+
| var | 316.7 MiB | | | | |
52+
+------------+-----------+---------+-----------+-----------+--------+
4653
```
4754

48-
For the database, you can use the {{ site.data.var.ece }} CLI to check approximate disk space usage:
55+
## Check dedicated clusters
56+
57+
For Pro Staging and Production environments, you can check disk space usage in each environment using the _disk free_ command, which reports the amount of disk space used by the file system. You must use SSH to log in to a remote environment.
4958

5059
```bash
51-
magento-cloud db:size
60+
df -h
5261
```
5362

54-
Sample response:
63+
The `-h` option displays the report using a human-readable format (KB, MB, or GB).
64+
65+
In the following sample response, the `/data/exports/` mount shows the disk space for media and `/data/mysql/` mount shows disk space for the database:
5566

5667
```terminal
57-
Checking database service mysql...
68+
Filesystem Size Used Avail Use% Mounted on
69+
udev 16G 0 16G 0% /dev
70+
tmpfs 3.2G 9.1M 3.2G 1% /run
71+
/dev/xvda1 59G 8.9G 48G 16% /
72+
tmpfs 16G 36K 16G 1% /dev/shm
73+
tmpfs 5.0M 0 5.0M 0% /run/lock
74+
tmpfs 16G 0 16G 0% /sys/fs/cgroup
75+
/dev/xvdj 9.8G 2.3G 7.6G 23% /data/mysql
76+
/dev/xvdi 9.8G 491M 9.3G 5% /data/exports
77+
192.168.5.5:/shared 9.8G 591M 9.3G 6% /mnt/shared
78+
/dev/loop0 91M 91M 0 100% /app/project
79+
192.168.5.5:/shared/project/var 9.8G 591M 9.3G 6% /app/project/var
80+
192.168.5.5:/shared/project/app/etc 9.8G 591M 9.3G 6% /app/project/app/etc
81+
192.168.5.5:/shared/project/pub/media 9.8G 591M 9.3G 6% /app/project/pub/media
82+
192.168.5.5:/shared/project/pub/static 9.8G 591M 9.3G 6% /app/project/pub/static
83+
```
5884

59-
+----------------+-----------------+--------+
60-
| Allocated disk | Estimated usage | % used |
61-
+----------------+-----------------+--------+
62-
| 2.0 GiB | 193.3 MiB | ~ 9% |
63-
+----------------+-----------------+--------+
85+
You can limit the response by specifying a directory. For example:
86+
87+
```bash
88+
df -h var/
89+
```
90+
91+
Sample response:
92+
93+
```terminal
94+
Filesystem Size Used Avail Use% Mounted on
95+
192.168.5.5:/shared/project/var 9.8G 591M 9.3G 6% /app/project/var
6496
```
6597

66-
## Allocating disk space
98+
## Allocate disk space
6799

68100
Two configuration files control the allocation of disk space in the Cloud environments: the `.magento.app.yaml` file and the `.magento/services.yaml` file. Each file contains the `disk` property, which defines the disk size value in MB for the respective configuration.
69101

70102
{:.bs-callout-info}
71-
You can change disk space allocation on Pro Integration and Starter enviroments only. You must submit a Magento support ticket to change disk space allocation on Pro Production and Staging environments.
103+
You can change disk space allocation on Pro Integration and Starter environments only. You must submit a Magento support ticket to change disk space allocation on Pro Production and Staging environments.
72104

73105
### Application disk space
74106

75-
The `.magento.app.yaml` file controls the [persistent disk space]({{ site.baseurl }}/cloud/project/project-conf-files_magento-app.html#disk) available to the Magento application.
107+
The `.magento.app.yaml` file controls the [persistent disk space][disk-key] available to the Magento application.
76108

77109
{:.procedure}
78110
To increase disk space for your application:
@@ -124,7 +156,7 @@ To increase disk space for a service:
124156

125157
The changes take effect after you push the updated YAML file to the remote environment.
126158

127-
## Monitoring disk space
159+
## Monitor disk space
128160

129161
On Pro Production environments, you can monitor disk space and other performance indicators using Adobe-generated alert policies for New Relic. For details, see [New Relic]({{ site.baseurl }}/cloud/project/new-relic.html).
130162

@@ -135,3 +167,7 @@ The build cache can grow over time. If you receive a warning that states `No spa
135167
```bash
136168
magento-cloud project:clear-build-cache
137169
```
170+
171+
<!-- link definitions -->
172+
173+
[disk-key]: {{ site.baseurl }}/cloud/project/project-conf-files_magento-app.html#disk

0 commit comments

Comments
 (0)