Skip to content

Commit c93cedc

Browse files
committed
update to also include memory
1 parent 257bfc4 commit c93cedc

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ backup-sonarqube:
180180

181181

182182
# PVC MIGRATION
183-
## Migrate data from one PVC to another. Options: SOURCE_PVC, TARGET_PVC, THREADS (default: 5), CPU_REQUEST (default: 1)
183+
## Migrate data from one PVC to another. Options: SOURCE_PVC, TARGET_PVC, THREADS (default: 5), CPU_REQUEST (default: 1), MEMORY (default: 2)
184184
migrate-pvc-data:
185-
./scripts/migrate_pvc_data.sh --source-pvc $(SOURCE_PVC) --target-pvc $(TARGET_PVC) --namespace $(ODS_NAMESPACE) --threads $(THREADS) --cpu $(CPU_REQUEST)
185+
./scripts/migrate_pvc_data.sh --source-pvc $(SOURCE_PVC) --target-pvc $(TARGET_PVC) --namespace $(ODS_NAMESPACE) --threads $(THREADS) --cpu $(CPU_REQUEST) --memory $(MEMORY)
186186
.PHONY: migrate-pvc-data
187187

188188

docs/modules/administration/pages/pvc-migration.adoc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,16 @@ To migrate data between PVCs, follow these steps:
1616

1717
[source,sh]
1818
----
19-
make migrate-pvc-data SOURCE_PVC=<source-pvc-name> TARGET_PVC=<target-pvc-name> [THREADS=<num-threads>] [CPU_REQUEST=<num-cpu>]
19+
make migrate-pvc-data SOURCE_PVC=<source-pvc-name> TARGET_PVC=<target-pvc-name> [THREADS=<num-threads>] [CPU_REQUEST=<num-cpu>] [MEMORY=<memory-in-gb>]
2020
----
2121

22-
Replace `<source-pvc-name>`, `<target-pvc-name>`, `<num-threads>`, and `<num-cpu>` with the appropriate values for your environment.
22+
Replace `<source-pvc-name>`, `<target-pvc-name>`, `<num-threads>`, `<num-cpu>`, and `<memory-in-gb>` with the appropriate values for your environment.
2323
- `THREADS` (optional): Number of parallel threads to use for migration (default: 5).
2424
- `CPU_REQUEST` (optional): Number of CPU cores to request for the migration pod (default: 1).
25+
- `MEMORY` (optional): Memory request and limit in Gigabytes for the migration pod (default: 2).
2526

2627
== Details
2728

2829
- The migration process creates a temporary pod that uses parallelized `rsync` to copy data from the source PVC to the target PVC.
29-
- You can control the number of parallel threads and CPU resources via the `THREADS` and `CPU_REQUEST` options.
30+
- You can control the number of parallel threads and CPU/memory resources via the `THREADS`, `CPU_REQUEST`, and `MEMORY` options.
3031
- After the migration, verify the data integrity and delete the temporary pod.

0 commit comments

Comments
 (0)