CINXE.COM
Use a private pool to create ECS instances - Elastic Compute Service - Alibaba Cloud Documentation Center
<!DOCTYPE html> <html lang="en" class="transparent alicloud back-to-top"> <link rel="stylesheet" href="//g.alicdn.com/aliyun-help/help-intl-portal-fe/0.3.43/css/index.css" /> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> <meta name="spm-id" content="a2c63"> <meta name="data-spm" content="a2c63" /> <meta name="aplus-core" content="aplus.js"> <meta name="aplus-ajax" content="chksum"> <meta name="aplus-waiting" content="MAN"> <meta name="aplus-pvhash" content="1"> <meta name="kloud:supported-langs" content="en,zh,tc,ja"/> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="applicable-device" content="pc,mobile"> <meta name="aplus-rhost-v" content="sg.mmstat.com"> <meta name="aplus-rhost-g" content="sg.mmstat.com"> <title> Use a private pool to create ECS instances - Elastic Compute Service - Alibaba Cloud Documentation Center </title> <meta name="keywords" content="elasticity assurance, capacity reservation, private resource pool, private pool, pay-as-you-go"> <meta name="description" content="Use a private pool to create ECS instances,Elastic Compute Service:After you purchase a resource reservation, Alibaba Cloud reserves resources that match the attributes of the resource reservation in a private pool. You can use the reserved resources to create instan..."> <script> window.globalData = { website: "intl", lang: "en", nodeId:"193637", channel: "", notfound: "", statusCode: "", errorType: "" }; // UT的全局配置变量,在CDN加载前配置 window.$ACE_TRACKER_CONFIG = { enableHistory: true, enableHash: false }; </script> <!-- <base href="https://www.alibabacloud.com">--> <link rel="canonical" href="https://www.alibabacloud.com/help/en/ecs/user-guide/use-a-private-pool-to-create-instances"/> <link rel="shortcut icon" href="//img.alicdn.com/tfs/TB1ugg7M9zqK1RjSZPxXXc4tVXa-32-32.png"/> <link rel="stylesheet" href="https://o.alicdn.com/fund/alicloud-pure-layout/css/index.min.css" /> </head> <body data-spm="" class="HAS_ALPS_RESOURCE"><script> with(document)with(body)with(insertBefore(createElement("script"),firstChild))setAttribute("exparams","category=&userid=&aplus&yunid=&&trid=0a58315017327381664332010e6260&asid=AQAAAAB2fEdn4JURRAAAAAD6QO9b23p0WQ==",id="tb-beacon-aplus",src=(location>"https"?"//g":"//g")+".alicdn.com/alilog/mlog/aplus_v2.js") </script> <script async src="https://o.alicdn.com/fund/alicloud-pure-layout/index.js"></script> <div id="app"> <div class="aliyun-app-layout"> <!-- docId:193637 --> <input type="hidden" id="website" value="intl"> <div class="products-wrapper$tip" data-spm="879954"> <section id="products" class="intl-product container"> <div class="row"> <div class="col-lg-3 col-md-3 col-sm-4 col-xs-12" id="navDocument"> <div class="doc-nav"> <a class="doc-center" href="/help/en"> <i class="icon-docs icon-docs-back"></i> Document Center </a> </div> <div class="placeholder-ele"> </div> </div> <div class="col-lg-7 col-md-7 col-sm-8 col-xs-12 doc-content"> <div class="all-products action" id="J_AllProducts"> <div class="all-products-head"> <div class="all-products-title">All Products</div> <div class="all-products-search-wrapper"> <div class="all-products-search focus"> <input autocomplete="off" class="all-products-search-box-input" id="J_AllProductsSearch" placeholder="Search Product" data-spm-anchor-id="a2c4g.11186623.6.i0.1f753945H9RVzu"> <i class="icon-search icon-docs icon-docs-search"></i> <ul class="all-products-search-result" style="display: none;"> </ul> </div> </div> </div> <div class="all-products-body" id="J_AllProductsBody"></div> </div> <div class="search-product-modal"> Search </div> <div class="breadcrumbs-top" data-spm="a1"> <div class="row nav-breadcrumb"> <div class="col-md-12 hidden-sm hidden-xs"> <ul class="breadcrumb text-sm"> <li><a class="active" title="Document Center" href="/help/en">Document Center</a></li> <li><a class="active" title="Elastic Compute Service" href="/help/en/ecs/">Elastic Compute Service</a></li> <li><a class="active" title="User Guide" href="/help/en/ecs/user-guide/">User Guide</a></li> <li><a class="active" title="Instances" href="/help/en/ecs/user-guide/instances-4/">Instances</a></li> <li><a class="active" title="Instance billing and purchasing options" href="/help/en/ecs/user-guide/instance-purchasing-options/">Instance billing and purchasing options</a></li> <li><a class="active" title="Resource Advisor" href="/help/en/ecs/user-guide/resource-advisor/">Resource Advisor</a></li> <li><a class="active" title="Private pools" href="/help/en/ecs/user-guide/private-pools/">Private pools</a></li> <li><a class="active" title="Use a private pool to create instances" href="/help/en/ecs/user-guide/use-a-private-pool-to-create-instances">Use a private pool to create instances</a></li> </ul> </div> <div class="col-md-4 col-sm-12"> <button type="button" class="navbar-toggle bc mr0" data-toggle="collapse" data-target="#sideMenu-mobile"> <span class="icon-bar"></span> <span class="icon-bar"></span> all-products-head <span class="icon-bar"></span> </button> </div> </div> <form class="search-bar clearfix" method="GET" action="/s/en"> <input type="hidden" name="type" value="doc"/> <div class="select"> <p class="select-text"> <span class="placeholder">This Product</span> <i class="icon-docs icon-docs-selected"></i> </p> <ul class="select-options" style="display:none;"> <li class="option selected" data-value="h_pid_$productId">This Product</li> <li class="option" data-value="">All Products</li> </ul> <input type="hidden" name="rangeinfo" value="h_pid_25365"/> </div> <input autocomplete="off" class="search-key" type="text" placeholder="Search by keyword" name="k"/> <ul class="help-top-search-result" style="display: block;"></ul> <button class="search-submit" type="submit"> <i class="icon-docs icon-docs-search"></i> </button> <div class="collapse-menus select"> <p class="select-text"> <span class="placeholder">Elastic Compute Service:Use a private pool to create ECS instances</span> <i class="icon-docs icon-docs-more"></i> </p> </div> </form> </div> <header id="header-faq" class="clearfix"> <a class="doc-center" href="/help/en"> <i class="icon-docs icon-docs-back"></i> Document Center </a> <div class="download-links"> </div> <h1 class="page-title">Elastic Compute Service:Use a private pool to create ECS instances</h1> <div class="doc-status"> Last Updated:May 09, 2024 </div> </header> <article class="product-description markdown-body"> <div lang="en" class="icms-help-docs-content"> <main id="task-2001647"><p id="shortdesc-5vl-sbw-cr9" data-tag="shortdesc" class="shortdesc">After you purchase a resource reservation, Alibaba Cloud reserves resources that match the attributes of the resource reservation in a private pool. You can use the reserved resources to create instances. This topic describes how to use a private pool to create Elastic Compute Service (ECS) instances. </p><div data-tag="taskbody" id="taskbody-sb4-d6d-eb1" class="taskbody"><section data-tag="prereq" id="prereq-n72-7pb-rga" data-type="prereq" class="section prereq"><h2 id="d41e27">Prerequisites</h2><ul data-tag="ul" id="ul-n1d-qgn-jfp" class="ul"><li data-tag="li" id="li-yu8-qup-7dr" class="li"><p id="58d311bf1br57">The private pool that you want to use is in the <b data-tag="uicontrol" id="uicontrol-nxa-696-e0s" class="uicontrol">Active</b> state. </p></li><li data-tag="li" id="li-4t3-smd-vsn" class="li"><p id="b83b28636ayo2">The private pool has available capacity. For information about how to view the resource usage of a private pool, see <a title="" class="xref" href="/help/en/ecs/user-guide/view-a-private-pool#task-2100080">View a private pool</a>. </p></li></ul></section><section id="section-uy2-tdw-k0w" data-tag="section" data-type="section" class="section"><h2 data-tag="title" id="title-1e5-hmo-ecn" class="title">Procedure</h2><section id="ffe9e01c5dyas" outputclass="tabbed-content-box" class="tabbed-content-box section"><section id="0f0d5ca237j8r" class="section"><h2 id="d48402e06be54">Use the ECS console</h2><p id="1750f80359k9w">This section describes only the private pool-related parameters involved in the procedure for creating ECS instances. For information about other parameters involved in the procedure for creating ECS instances, see <a title="" class="xref" href="/help/en/ecs/user-guide/create-an-instance-by-using-the-wizard#task-vwq-5g4-r2b">Create an instance on the Custom Launch tab</a>. </p><ol id="steps-1ay-mqg-yrn" data-tag="steps" class="steps"><li data-tag="step" id="step-wkt-pfo-ry1" class="step"><p id="620ae6356fb4y">Before you can use a private pool to create ECS instances in the ECS console, use one of the following methods to go to the ECS instance buy page: </p><ul id="a2df29ecdebre"><li id="494dd23f97e4x"><p id="4a1cbcc766ru8">On the <b data-tag="uicontrol" id="9b5beb1366j4a" class="uicontrol">Instance</b> page, click <b data-tag="uicontrol" id="4466742f2fbjm" class="uicontrol">Create Instance</b>. </p><p id="42d4a5d9ec06m"><img id="efc82e3fd0afx" src="https://help-static-aliyun-doc.aliyuncs.com/assets/img/en-US/1912225171/p789503.png" alt="image" placement="break" width="800" class="image break"></p></li><li id="ffef77bd0cig2"><p id="5a4f1183719ly">On the <b data-tag="uicontrol" id="c24b1542d48jr" class="uicontrol">Resource Reservations</b> page, find a resource reservation that is in the <b data-tag="uicontrol" id="b83fe3d22bsf9" class="uicontrol">Active</b> state and click <b data-tag="uicontrol" id="b6c9a7f348ymk" class="uicontrol">Purchase Instance</b> in the <b data-tag="uicontrol" id="90d222fc82h7t" class="uicontrol">Actions</b> column. </p><p id="f139ab2d14sa1"><img id="7d7d2acc3dhs1" src="https://help-static-aliyun-doc.aliyuncs.com/assets/img/en-US/1912225171/p789501.png" alt="image" placement="break" width="800" class="image break"></p></li></ul></li><li data-tag="step" id="step-qa3-0rs-o3m" class="step"><p id="2f882a21c4pef">Configure the basic settings. </p><div data-tag="info" id="info-82l-r2o-uek" class="info"><p id="208191d3865nr">The following table describes the parameters related to the basic settings.<b data-tag="uicontrol" id="uicontrol-71b-745-52f" class="uicontrol"></b> </p><table id="table-05z-7so-jya" tablewidth="709" tablecolswidth="177 532" autofit="false" class="table"><colgroup colwidth="0.5*" style="width:24.96%"></colgroup><colgroup colwidth="1.5*" style="width:75.04%"></colgroup><tbody class="tbody"><tr id="row-uvl-gtg-cfs"><td id="task-2001647-entry-abf-qqd-o2x" rowspan="1" style="background-color:#e5e5e5" colspan="1"><p id="a94e186db96jp"><b>Parameter</b></p></td><td id="task-2001647-entry-9ng-70d-z3p" rowspan="1" style="background-color:#e5e5e5" colspan="1"><p id="161061bc11p16"><b>Description</b></p></td></tr><tr id="row-zc4-01i-chz"><td id="entry-hq0-1t7-0h0" rowspan="1" colspan="1"><p id="9928269284hfx"><b data-tag="uicontrol" id="uicontrol-6bq-iz9-lki" class="uicontrol">Billing Method</b></p></td><td id="entry-fae-f30-os8" rowspan="1" colspan="1"><ul data-tag="ul" id="ul-85m-grx-eha" class="ul"><li data-tag="li" id="li-egv-jog-k31" class="li"><p id="edfc823e9fchy">To use the private pool that is associated with an elasticity assurance, an immediate capacity reservation, or a capacity reservation with Savings Plan, set this parameter to <b data-tag="uicontrol" id="uicontrol-zuj-ru9-9ws" class="uicontrol">Pay-as-you-go</b>. </p></li><li data-tag="li" id="li-phj-6dg-bz8" class="li"><p id="b2b3871779dw1">To use the private pool that is associated with a capacity reservation for subscription resources, set this parameter to <b data-tag="uicontrol" id="uicontrol-xl1-19e-3ey" class="uicontrol">Subscription</b>. </p></li></ul></td></tr><tr id="row-85w-t6h-xpf"><td id="entry-fby-pkv-gvy" rowspan="1" colspan="1"><p id="9f0d45c19d0vl"><b data-tag="uicontrol" id="uicontrol-p4k-any-102" class="uicontrol">Region</b></p></td><td id="entry-uax-5nt-prg" rowspan="1" colspan="1"><p id="dd651fc96d7uo">Select the same region as the resource reservation. </p></td></tr><tr id="row-rzh-xov-5nx"><td id="entry-x58-0qi-uk3" rowspan="1" colspan="1"><p id="e9bcb9e89c3j5"><b data-tag="uicontrol" id="uicontrol-ymt-xnp-ry5" class="uicontrol">Network and Zone</b></p></td><td id="entry-20n-kj8-hu9" rowspan="1" colspan="1"><p id="3e38e84734exo">Select the same network and zone as the resource reservation. </p></td></tr><tr id="row-7ht-ub6-dhb"><td id="entry-tbf-mwa-fc4" rowspan="1" colspan="1"><p id="d4558ee5efyo4"><b data-tag="uicontrol" id="uicontrol-beq-33r-cp9" class="uicontrol">Instance</b></p></td><td id="entry-s7e-k2j-aqa" rowspan="1" colspan="1"><p id="4b40598c23bfy">Select the same instance type as the resource reservation. </p></td></tr><tr id="row-f12-6e0-5p1"><td id="entry-5i2-4iy-a53" rowspan="1" colspan="1"><p id="2fc39fefac2gj"><b data-tag="uicontrol" id="uicontrol-x5g-w0d-clf" class="uicontrol">Image</b></p></td><td id="entry-35c-muh-9uu" rowspan="1" colspan="1"><p id="b0cef3ce50ys7">To use the private pool that is associated with an immediate capacity reservation, select an image that uses the Linux or Windows operating system that is the same operating system used by the immediate capacity reservation. </p></td></tr></tbody></table></div></li><li data-tag="step" id="step-9vd-1wo-1h4" class="step"><p id="4089c6cfccyhh">Configure the parameters in the <b data-tag="uicontrol" id="uicontrol-z52-t2z-kiy" class="uicontrol">Storage</b>, <b data-tag="uicontrol" id="uicontrol-e27-uk6-54h" class="uicontrol">Bandwidths & Security Groups</b>, and <b data-tag="uicontrol" id="uicontrol-ccp-bkl-qum" class="uicontrol">Management</b> sections. Then, click <b data-tag="uicontrol" id="uicontrol-juu-nob-us8" class="uicontrol">Advanced Settings(Optional)</b>. </p></li><li data-tag="step" id="step-trs-dqz-7g4" class="step"><p id="78e19291732x6">In the <b data-tag="uicontrol" id="uicontrol-cvn-b31-24y" class="uicontrol">Advanced Settings(Optional)</b> section, configure the parameters based on your business requirements. In the <b data-tag="uicontrol" id="uicontrol-ar8-9v8-4ni" class="uicontrol">Private Pool Type</b> field, specify whether to use a private pool and how to use the private pool. </p><div data-tag="info" id="info-656-nal-weo" class="info"><ul data-tag="ul" id="ul-uxq-n6c-7ka" class="ul"><li data-tag="li" id="li-ri7-hrz-u4l" class="li"><p id="5171387eeezn5">Specify the ID of a private pool: When you create instances, select <b data-tag="uicontrol" id="uicontrol-v5c-4zv-ten" class="uicontrol">Targeted</b> from the <b data-tag="uicontrol" id="uicontrol-2vg-t62-y1z" class="uicontrol">Private Pool Type</b> drop-down list and specify the ID of the private pool that you want to use. The ID of a private pool is the same as the ID of the associated resource reservation. If the specified private pool has no available capacity, instances cannot be created. </p><div data-tag="note" id="note-nbh-13s-nxn" class="note note-note"><div class="note-icon-wrapper"><i class="icon-note note note"></i></div><div class="noteContentSpan"><strong>Note </strong><p id="e89e0e7f5a4ip">You can specify the ID of an open private pool or a targeted private pool to use the private pool. </p></div></div></li><li data-tag="li" id="li-oud-8am-eob" class="li"><p id="948e01747700w">Use an open private pool that is assigned by the system. If you select <b data-tag="uicontrol" id="uicontrol-ngf-qx3-gpt" class="uicontrol">Open</b> from the <b data-tag="uicontrol" id="uicontrol-n54-0hb-nhe" class="uicontrol">Private Pool Type</b> drop-down list, the system automatically selects an open private pool. If the open private pool does not have available capacity, the system attempts to use the capacity of a public pool. </p><div data-tag="note" id="note-uo0-u4b-kzs" class="note note-note"><div class="note-icon-wrapper"><i class="icon-note note note"></i></div><div class="noteContentSpan"><strong>Note </strong><p id="aa09c548c1hla">The system selects only open private pools. </p></div></div></li><li data-tag="li" id="li-s76-5c9-8rv" class="li"><p id="2e69e3d82dtbi">Specify not to use the private pool capacity. When you create instances, select <b data-tag="uicontrol" id="uicontrol-in2-fn2-qdo" class="uicontrol">None</b> from the <b data-tag="uicontrol" id="uicontrol-ck5-d30-qak" class="uicontrol">Private Pool Type</b> drop-down list. The public pool is used. </p></li></ul></div></li><li data-tag="step" id="step-ilj-v2g-021" class="step"><p id="c676d02c15uq7">Check your configurations and read and agree to the terms of service. Confirm to create the instance and complete the payment. </p></li></ol></section><section id="044821b439umo" class="section"><h2 id="cf45a786a9ri2">Call an API operation</h2><p id="910524eea5ciy">When you call the <a title="" class="xref" href="/help/en/ecs/developer-reference/api-ecs-2014-05-26-runinstances">RunInstances</a> operation to create an ECS instance, configure the <code data-tag="code" code-type="xCode" class="code">PrivatePoolOptions.MatchCriteria</code> parameter to specify the private pool type of the instance. </p><ul id="16a54fb423gnm" data-spm-anchor-id="a2c4g.11186623.0.i21.c92e2e55YOAoLc" data-sourcepos="3:1-5:28"><li data-sourcepos="3:1-3:89" data-spm-anchor-id="a2c4g.11186623.0.i15.c92e2e55YOAoLc" id="de78bf9e16bz7"><p id="dff355d004jh4">Open: open private pool. The system selects a matching open private pool to start the instance. If no matching open private pools are found, resources in the public pool are used. If you set the PrivatePoolOptions.MatchCriteria parameter to Open, you can leave the <code data-tag="code" data-sourcepos="3:63-3:86" code-type="xCode" class="code">PrivatePoolOptions.Id</code> parameter empty. </p></li><li data-sourcepos="4:1-4:97" id="d4dffdeaba0ix"><p id="efd78d1746pb4">Target: targeted private pool. The system uses the capacity in a specified private pool to start the instance. If the specified private pool is unavailable, the instance cannot be started. If you set the PrivatePoolOptions.MatchCriteria parameter to Target, you must specify the <code data-tag="code" data-sourcepos="4:67-4:90" data-spm-anchor-id="a2c4g.11186623.0.i19.c92e2e55YOAoLc" code-type="xCode" class="code">PrivatePoolOptions.Id</code> parameter. </p></li><li data-sourcepos="5:1-5:28" id="4866b141cdvwq"><p id="61f3a5e05f16c">None: no private pool. The capacity in private pools is not used. </p></li></ul></section></section></section><section data-tag="postreq" id="postreq-mdw-7k2-tgm" data-type="postreq" class="postreq section"><h2 id="d41e300">What to do next</h2><p id="6625eb5262osm">After you use a private pool to create instances, you can check whether the instances are created and which instances are associated with the private pool on the <b data-tag="uicontrol" id="uicontrol-mwl-6wo-xyv" class="uicontrol">Private Pools</b> tab of the Resource Advisor page. For more information, see <a title="" class="xref" href="/help/en/ecs/user-guide/view-a-private-pool#task-2100080">View a private pool</a>. </p></section></div></main> </div> </article> <script type="text/javascript"> window.storeDocs = { language: '$lang', docGithubLink: '$!githubInfo.url' } </script> <div class="nav-footer"> </div> <div class="alicloud-document-ask clearfix"></div> <div class="feedback-message" style="display:none;"> <span class="hasfeedback acon acon-done-16"></span> Thank you! We've received your feedback. </div> </div> <div class="col-log-2 col-md-2 col-sm-0 col-xs-0 nav-catalog"> <div class="article-catalog" id="articleCatalog"></div> </div> </div> </section> </div> </div> </div> <script src="//g.alicdn.com/aliyun-help/help-intl-portal-fe/0.3.43/js/index.js"></script> <script src="https://cloud-assets.alicdn.com/alicdn/dawn/user-tracker/latest/js/index.js"></script> </body> </html>