onDemandResources.setPreservationPriority()

Type Function
Return value none
Revision 2017.3060
Keywords on-demand resources, onDemandResources, setPreservationPriority
See also onDemandResources.request()
onDemandResources.getPreservationPriority()
onDemandResources.*

Overview

You can influence the system's eviction process via preservation priority. The system will evict resources with lower preservation priority first.

This function allows you to set the preservation priority for a specified tag.

Syntax

onDemandResources.setPreservationPriority( tag, priority )
tag (required)

String. Tag for which to set the preservation priority.

priority (required)

Number. Number in the range of 0.0 to 1.0 where 1.0 is the highest preservation priority.