Placement constraints
Ocean supports both built‑in and custom ECS task placement constraints. These constraints let you decide where tasks run, such as on a specific instance type or in a particular Availability Zone. You can also create custom key‑value attributes and use them to control placement.
On‑demand lifecycle placement restraint
Ocean provides a custom placement restraint that lets you run certain tasks only on on‑demand instances. This is useful for workloads that must avoid interruption.
Use this format to require on‑demand lifecycle:
attribute:spotinst.io/container-instance-lifecycle==od
Use this feature
To use the on‑demand lifecycle placement restraint:
-
Add the
ecs:PutAttributespermission to the IAM role your ECS instances use. The autoscaler uses this permission to apply the lifecycle attribute to on‑demand instances when tasks request it. -
Contact Flexera Support by chat or email and request that ECS lifecycle support be enabled for your service.
How it works
When Ocean detects pending tasks that require the on‑demand lifecycle attribute, it launches an on‑demand instance and applies the attribute automatically. Tasks that include the lifecycle constraint are then placed only on those instances.
Related Articles
Reasons on‑demand nodes can run in Ocean AKS virtual node groups 5Number of Views What’s the difference between lifecycle OD(SP) and lifecycle OD(RI)? 3Number of Views Enable debug logging in the Ocean EKS Python SDK 2Number of Views Why an on-demand instance launches while Spot capacity exists in other markets 2Number of Views Fix the “Cannot set both ‘ondemand’ and ‘onDemandTypes’ parameters” message 4Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago