{code}
# declare an extensible resource for a claim-based consumption policy
MACHINE_RESOURCE_tokens = 3
-CONSUMPTION_POLICY = True
-SLOT_TYPE_1 = 100%
-SLOT_TYPE_1_PARTITIONABLE = True
-NUM_SLOTS_TYPE_1 = 1
# always consume 1 token, and none of anything else
-SLOT_TYPE_1_CONSUMPTION_TOKENS = 1
-SLOT_TYPE_1_CONSUMPTION_CPUS = 0
-SLOT_TYPE_1_CONSUMPTION_MEMORY = 0
-SLOT_TYPE_1_CONSUMPTION_DISK = 0
+CONSUMPTION_TOKENS = 1
+CONSUMPTION_CPUS = 0
+CONSUMPTION_MEMORY = 0
+CONSUMPTION_DISK = 0
# define cost in terms of available tokens for serving jobs
-SLOT_TYPE_1_SLOT_WEIGHT = Tokens
+SLOT_WEIGHT = Tokens
{endcode}
{subsubsection: emulate a static slot}
This example uses a consumption policy to emulate static slot behavior
{code}
-CONSUMPTION_POLICY = True
-SLOT_TYPE_1 = 100%
-SLOT_TYPE_1_PARTITIONABLE = True
-NUM_SLOTS_TYPE_1 = 1
# consume all resources - emulate static slot
-SLOT_TYPE_1_CONSUMPTION_CPUS = TotalSlotCpus
-SLOT_TYPE_1_CONSUMPTION_MEMORY = TotalSlotMemory
+CONSUMPTION_CPUS = TotalSlotCpus
+CONSUMPTION_MEMORY = TotalSlotMemory
# Disk is unreliable -- TotalSlotDisk != Disk even on a virgin slot
-SLOT_TYPE_1_CONSUMPTION_DISK = floor(0.9 * TotalSlotDisk)
+CONSUMPTION_DISK = floor(0.9 * TotalSlotDisk)
+# define weight to be 1, since this slot supports exactly one match
+SLOT_WEIGHT = 1
{endcode}