mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
53 lines
1.8 KiB
Plaintext
53 lines
1.8 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * migrating_from_ocp_3_to_4/advanced-migration-options-3-4.adoc
|
|
// * migration_toolkit_for_containers/advanced-migration-options-mtc.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="migration-changing-migration-plan-limits_{context}"]
|
|
= Increasing limits for large migrations
|
|
|
|
You can increase the limits on migration objects and container resources for large migrations with the {mtc-first}.
|
|
|
|
[IMPORTANT]
|
|
====
|
|
You must test these changes before you perform a migration in a production environment.
|
|
====
|
|
|
|
.Procedure
|
|
|
|
. Edit the `MigrationController` custom resource (CR) manifest:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc edit migrationcontroller -n openshift-migration
|
|
----
|
|
|
|
. Update the following parameters:
|
|
+
|
|
[source,yaml]
|
|
----
|
|
...
|
|
mig_controller_limits_cpu: "1" <1>
|
|
mig_controller_limits_memory: "10Gi" <2>
|
|
...
|
|
mig_controller_requests_cpu: "100m" <3>
|
|
mig_controller_requests_memory: "350Mi" <4>
|
|
...
|
|
mig_pv_limit: 100 <5>
|
|
mig_pod_limit: 100 <6>
|
|
mig_namespace_limit: 10 <7>
|
|
...
|
|
----
|
|
<1> Specifies the number of CPUs available to the `MigrationController` CR.
|
|
<2> Specifies the amount of memory available to the `MigrationController` CR.
|
|
<3> Specifies the number of CPU units available for `MigrationController` CR requests. `100m` represents 0.1 CPU units (100 * 1e-3).
|
|
<4> Specifies the amount of memory available for `MigrationController` CR requests.
|
|
<5> Specifies the number of persistent volumes that can be migrated.
|
|
<6> Specifies the number of pods that can be migrated.
|
|
<7> Specifies the number of namespaces that can be migrated.
|
|
|
|
. Create a migration plan that uses the updated parameters to verify the changes.
|
|
+
|
|
If your migration plan exceeds the `MigrationController` CR limits, the {mtc-short} console displays a warning message when you save the migration plan.
|