Taints and Tolerates
Taints are applied to Agents to repel certain workloads unless they explicitly tolerate the taint. This feature is useful for reserving specialized hardware or ensuring certain workloads only run on specific Agents.
Practical Examples
-
Specialized Hardware:
-
Taint: An Agent with a high-end GPU might have a taint:
expensive-gpu=true
-
Usage: To run on this Agent, a session must specify:
--tolerates expensive-gpu=true
-
-
Compliance Requirements:
-
Taint: Agents meeting certain compliance standards might have a taint:
hipaa-compliant=required
-
Usage: Applications handling sensitive medical data would use:
--tolerates hipaa-compliant=required
-
-
Experimental Features:
-
Taint: Agents running beta software might have a taint:
beta-features=true
-
Usage: Developers testing new features would use:
--tolerates beta-features=true
-
Example Commands
-
Setting a taint on an Agent:
juice agent run --taints expensive-gpu=true
-
Creating a session that tolerates the taint:
juice run --tolerates expensive-gpu=true my_resource_intensive_app.py
Help Improve This Page
Found a mistake? Want to contribute? Edit this page on GitHub or explore more editing options.