{"_id":"599da9f9d1222a00250be6c7","project":"5773dcfc255e820e00e1cd4d","version":{"_id":"5773dcfc255e820e00e1cd50","__v":26,"project":"5773dcfc255e820e00e1cd4d","createdAt":"2016-06-29T14:36:44.812Z","releaseDate":"2016-06-29T14:36:44.812Z","categories":["5773dcfc255e820e00e1cd51","5773df36904b0c0e00ef05ff","577baf92451b1e0e006075ac","577bb183b7ee4a0e007c4e8d","577ce77a1cf3cb0e0048e5ea","577d11865fd4de0e00cc3dab","578e62792c3c790e00937597","578f4fd98335ca0e006d5c84","578f5e5c3d04570e00976ebb","57bc35f7531e000e0075d118","57f801b3760f3a1700219ebb","5804d55d1642890f00803623","581c8d55c0dc651900aa9350","589dcf8ba8c63b3b00c3704f","594cebadd8a2f7001b0b53b2","59a562f46a5d8c00238e309a","5a2aa096e25025003c582b58","5a2e79566c771d003ca0acd4","5a3a5166142db90026f24007","5a3a52b5bcc254001c4bf152","5a3a574a2be213002675c6d2","5a3a66bb2be213002675cb73","5a3a6e4854faf60030b63159","5c8a68278e883901341de571","5cb9971e57bf020024523c7b","5cbf1683e2a36d01d5012ecd"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"category":{"_id":"577baf92451b1e0e006075ac","__v":0,"project":"5773dcfc255e820e00e1cd4d","version":"5773dcfc255e820e00e1cd50","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-07-05T13:01:06.540Z","from_sync":false,"order":6,"slug":"developer-hub","title":"Developer tools"},"user":"575e85ac41c8ba0e00259a44","githubsync":"","__v":0,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-08-23T16:14:49.186Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":18,"body":"##Overview\nUse the visual interface or the API to control the Spot Instance setting when running your tasks. The setting can be applied at the project and task level, with the latter overriding the former. \n\nData Cruncher will still use on-demand instances when running, even if the Spot Instance feature is turned on for that project.\n\nThe default setting for Spot Instances is **On**. However, if Spot Instances have been disabled for a project or draft task, here is how you can activate them:\n\n* [Activate Spot Instances for a project](#section-activate-spot-instances-for-a-project)\n* [Activate Spot Instances for a draft task](#section-activate-spot-instances-for-a-draft-task)\n\n##Activate Spot Instances for a project\n[Only project administrators](doc:project-settings) can activate Spot Instances within that project. Spot Instances can be activated while creating a project, or subsequently within project settings following the procedure below:\n1. Go to your project dashboard.\n2. Click the **Settings** tab.\n3. Under **Execution Settings** switch **Spot Instances** to **On**.\n\n##Activate Spot Instances for a draft task\nNote that settings at task level override project-level settings.\n1. [Create a draft task](https://docs.sevenbridges.com/v1.0/docs/draft-task)\n2. On the draft task page, switch **Spot Instances** to **On** underneath the draft task title.\n\n##View Spot Instance settings for an executed task\nAn executed task set to use Spot Instances will be labelled **Spot Instances: On** on the task page underneath the task title.\n\nOn the [task stats page](https://docs.sevenbridges.com/v1.0/docs/view-task-stats) you get a more detailed view of the executed task, with a job-wise breakdown of the instances used. Jobs that ran on Spot Instances are labelled **spot** next to the instance name.\n\n##Spot Instance control via the API\nThe `use_interruptible_instances` parameter provides equivalent control over the Spot Instance setting as part of the following API calls:\n  * [Create a new project](doc:create-a-new-project) \n  * [Get details of a project](doc:get-details-of-a-project) \n  * [Edit a project](doc:edit-a-project) \n  * [Create a new draft task](doc:create-a-new-task) \n  * [Run a task](doc:run-a-task) \n  * [Modify a task](doc:modify-a-task) \n  * [Get details of a task](doc:get-details-of-a-task)","excerpt":"","slug":"use-spot-instances","type":"basic","title":"Use Spot Instances"}

Use Spot Instances


##Overview Use the visual interface or the API to control the Spot Instance setting when running your tasks. The setting can be applied at the project and task level, with the latter overriding the former. Data Cruncher will still use on-demand instances when running, even if the Spot Instance feature is turned on for that project. The default setting for Spot Instances is **On**. However, if Spot Instances have been disabled for a project or draft task, here is how you can activate them: * [Activate Spot Instances for a project](#section-activate-spot-instances-for-a-project) * [Activate Spot Instances for a draft task](#section-activate-spot-instances-for-a-draft-task) ##Activate Spot Instances for a project [Only project administrators](doc:project-settings) can activate Spot Instances within that project. Spot Instances can be activated while creating a project, or subsequently within project settings following the procedure below: 1. Go to your project dashboard. 2. Click the **Settings** tab. 3. Under **Execution Settings** switch **Spot Instances** to **On**. ##Activate Spot Instances for a draft task Note that settings at task level override project-level settings. 1. [Create a draft task](https://docs.sevenbridges.com/v1.0/docs/draft-task) 2. On the draft task page, switch **Spot Instances** to **On** underneath the draft task title. ##View Spot Instance settings for an executed task An executed task set to use Spot Instances will be labelled **Spot Instances: On** on the task page underneath the task title. On the [task stats page](https://docs.sevenbridges.com/v1.0/docs/view-task-stats) you get a more detailed view of the executed task, with a job-wise breakdown of the instances used. Jobs that ran on Spot Instances are labelled **spot** next to the instance name. ##Spot Instance control via the API The `use_interruptible_instances` parameter provides equivalent control over the Spot Instance setting as part of the following API calls: * [Create a new project](doc:create-a-new-project) * [Get details of a project](doc:get-details-of-a-project) * [Edit a project](doc:edit-a-project) * [Create a new draft task](doc:create-a-new-task) * [Run a task](doc:run-a-task) * [Modify a task](doc:modify-a-task) * [Get details of a task](doc:get-details-of-a-task)