You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- **Lease Duration (in days)**: Creates a compute offering with Lease duration. Instance created from this compute offering will inherit lease duration by default.
413
419
414
420
- **Lease expiry action**: Denotes lease expiry action, which gets executed upon lease expiry for instances created from compute offering.
415
421
Suported values for lease expiry action are as follows:
**leaseduration**: Lease duration is specified in days. This can take Natural numbers and -1 to disable the lease.
990
+
991
+
Lease may require to be disabled in following scenarios:
992
+
993
+
- During deployment of instance while using compute offering with lease metadata
994
+
- Edit instance with existing lease
995
+
996
+
**leaseexpiryaction**: There are two expiry action supported:
997
+
998
+
- STOP: The instance is stopped, and it will be out of lease. The user can restart the instance manually.
999
+
- DESTROY: The instance is destroyed when the lease expires.
1000
+
1001
+
.. note:: Expiry action is executed at most once on the instance, e.g. STOP action will bring instance in Stoppped state on expiry and instance will be out of lease. User may choose to start it again.
1002
+
1003
+
988
1004
**Using Instance Lease**
989
1005
990
-
User can associate Lease to an instance during Deployment of instance or modify existing lease by editing instance.
1006
+
Lease information is associated to an Instance and following parameters are used to enable lease for it:
991
1007
1008
+
#. leaseduration
1009
+
#. leaseexpiryaction
992
1010
993
-
**Deployment of Instance**
1011
+
Instance remains active for specified leaseduration (in days). Upon lease expiry, configured expiryaction is executed on the instance and
1012
+
lease is removed from the instance for any further action.
1013
+
1014
+
**Notes:**
1015
+
1016
+
#. Lease Assignment: A lease can only be assigned to an instance during deployment.
1017
+
#. Lease Acquisition: Instances without a lease cannot acquire one by switching to a different compute offering or by editing the instance.
1018
+
#. Lease Inheritance: Instances inherit the lease from a compute offering that contains lease metadata. This lease can be overridden or disabled in the "Advanced Settings".
1019
+
#. Lease Persistence: A lease is always tied to the instance. Modifications to the compute offering do not affect the instance's lease.
1020
+
#. Non-Lease Compute offering: Instances can have a lease by enabling it in the "Advanced Settings" for non-lease based compute offering too.
1021
+
#. Lease Duration Management: The lease duration can be extended or reduced for instances before expiry. However, once the lease is disabled, it cannot be re-enabled for that instance.
1022
+
#. Lease Expiry: Once the lease expires and the associated action is completed, the lease is annulled and cannot be reattached or extended.
1023
+
#. Feature Disablement: If the lease feature is disabled, the lease associated with instances is canceled. Re-enabling the feature will not automatically reapply the lease to previously grandfathered instances.
1024
+
#. Delete Protection: The DESTROY lease expiry action is skipped for instances with delete protection enabled.
1025
+
1026
+
**Deployment of Instance with lease**
994
1027
995
1028
There are 2 ways to deploy instance with lease from UI:
996
1029
@@ -1009,8 +1042,9 @@ There are 2 ways to deploy instance with lease from UI:
1009
1042
:alt:Deploy Instance with lease using advance settings
1010
1043
1011
1044
1012
-
To enable lease during instance deployment via API:
1013
-
- Passing lease parameters
1045
+
**Using API**
1046
+
1047
+
Pass lease parameters in the command to enable lease during instance deployment:
1014
1048
1015
1049
.. code:: bash
1016
1050
@@ -1023,23 +1057,6 @@ To enable lease during instance deployment via API:
Lease duration is specified in days. This can take Natural numbers and -1 to disable the lease.
1031
-
Lease can be disabled:
1032
-
- During deployment of instance while using lease based compute offering
1033
-
- Update instance with existing lease
1034
-
1035
-
**leaseexpiryaction**
1036
-
There are 2 actions supported:
1037
-
- STOP: The instance is stopped, and it will be out of lease. The user can restart the instance manually.
1038
-
- DESTROY: The instance is destroyed when the lease expires.
1039
-
1040
-
.. note:: Action is executed at most once on the instance, e.g. STOP action will bring instance in Stoppped state on expiry and instance will be out of lease. User may choose to start it again.
1041
-
1042
-
1043
1060
**Editing Instance Lease**
1044
1061
1045
1062
The lease duration for an instance can be extended, reduced, or disabled for instances that already have an active lease.
0 commit comments