forked from docs/doc-exports
Reviewed-by: Mützel, Andrea <andrea.muetzel@t-systems.com> Co-authored-by: liusiying01 <liusiying@huawei.com> Co-committed-by: liusiying01 <liusiying@huawei.com>
48 lines
6.8 KiB
HTML
48 lines
6.8 KiB
HTML
<a name="functiongraph_01_0303"></a><a name="functiongraph_01_0303"></a>
|
||
|
||
<h1 class="topictitle1">Configuring Concurrency</h1>
|
||
<div id="body8662426"><div class="section" id="functiongraph_01_0303__en-us_topic_0000001252067196_section1192433133819"><h4 class="sectiontitle">Overview</h4><p id="functiongraph_01_0303__en-us_topic_0000001252067196_p66575301363">FunctionGraph allows you to configure the maximum number of instances that can be run for a function at a time. The number of instances is limited to prevent resource exhaustion, ensure that each instance has sufficient resources to run, and improve processing efficiency.</p>
|
||
</div>
|
||
<div class="section" id="functiongraph_01_0303__en-us_topic_0000001252067196_section19593125212815"><h4 class="sectiontitle">Configuring Function Concurrency</h4><ol id="functiongraph_01_0303__en-us_topic_0000001252067196_ol9726133131813"><li id="functiongraph_01_0303__en-us_topic_0000001252067196_li19220424104513">Log in to the FunctionGraph console. In the navigation pane, choose <strong id="functiongraph_01_0303__en-us_topic_0000001252067196_en-us_topic_0000001251907924_b033610517502">Functions</strong> > <strong id="functiongraph_01_0303__en-us_topic_0000001252067196_en-us_topic_0000001251907924_b183361950502">Function List</strong>.</li><li id="functiongraph_01_0303__en-us_topic_0000001252067196_li85541845124517">Click the function to be configured to go to the function details page.</li><li id="functiongraph_01_0303__en-us_topic_0000001252067196_li13283183812464">Choose <strong id="functiongraph_01_0303__en-us_topic_0000001252067196_b73282711348">Configuration</strong> > <strong id="functiongraph_01_0303__en-us_topic_0000001252067196_b17781931163418">Concurrency</strong>.<p id="functiongraph_01_0303__en-us_topic_0000001252067196_p1627031017166">Set parameters by referring to <a href="#functiongraph_01_0303__en-us_topic_0000001252067196_table1167224813179">Table 1</a> and click <strong id="functiongraph_01_0303__en-us_topic_0000001252067196_b1352918653614">Save</strong>.</p>
|
||
<div class="fignone" id="functiongraph_01_0303__en-us_topic_0000001252067196_fig1573420330451"><span class="figcap"><b>Figure 1 </b>Concurrency configuration</span><br><span><img id="functiongraph_01_0303__en-us_topic_0000001252067196_image27341133154514" src="en-us_image_0000002225526736.png" title="Click to enlarge" class="imgResize"></span></div>
|
||
<div class="p" id="functiongraph_01_0303__en-us_topic_0000001252067196_p1687142613456">
|
||
<div class="tablenoborder"><a name="functiongraph_01_0303__en-us_topic_0000001252067196_table1167224813179"></a><a name="en-us_topic_0000001252067196_table1167224813179"></a><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_01_0303__en-us_topic_0000001252067196_table1167224813179" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Description</caption><thead align="left"><tr id="functiongraph_01_0303__en-us_topic_0000001252067196_row667174815175"><th align="left" class="cellrowborder" valign="top" width="16.86%" id="mcps1.3.2.2.3.5.1.2.3.1.1"><p id="functiongraph_01_0303__en-us_topic_0000001252067196_p1667174871713">Parameter</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="83.14%" id="mcps1.3.2.2.3.5.1.2.3.1.2"><p id="functiongraph_01_0303__en-us_topic_0000001252067196_p126711048151713">Description</p>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr id="functiongraph_01_0303__en-us_topic_0000001252067196_row1967274801719"><td class="cellrowborder" valign="top" width="16.86%" headers="mcps1.3.2.2.3.5.1.2.3.1.1 "><p id="functiongraph_01_0303__en-us_topic_0000001252067196_p3671174831718">Max. Instances per Function</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="83.14%" headers="mcps1.3.2.2.3.5.1.2.3.1.2 "><p id="functiongraph_01_0303__en-us_topic_0000001252067196_p5104674434"><strong id="functiongraph_01_0303__en-us_topic_0000001252067196_b135489437402">Explanation</strong>:</p>
|
||
<p id="functiongraph_01_0303__en-us_topic_0000001252067196_p454151044312">Maximum number of on-demand instances that can be enabled for a function.</p>
|
||
<p id="functiongraph_01_0303__en-us_topic_0000001252067196_p1612919131433"><strong id="functiongraph_01_0303__en-us_topic_0000001252067196_b13277847194017">Restrictions:</strong></p>
|
||
<ul id="functiongraph_01_0303__en-us_topic_0000001252067196_ul1413758477"><li id="functiongraph_01_0303__en-us_topic_0000001252067196_li841312586711">Requests that exceed the processing capability of instances will be discarded.</li><li id="functiongraph_01_0303__en-us_topic_0000001252067196_li19164508818">Errors caused by excessive requests will not be displayed in function logs. You can obtain error details by referring to <a href="functiongraph_01_0390_03.html#functiongraph_01_0390_03">Configuring Asynchronous Notification Policy</a>.</li></ul>
|
||
<p id="functiongraph_01_0303__en-us_topic_0000001252067196_p15910112012432"><strong id="functiongraph_01_0303__en-us_topic_0000001252067196_b417716581596">Value range</strong>:</p>
|
||
<p id="functiongraph_01_0303__en-us_topic_0000001252067196_p12970735124316">-1 or an integer ranging from 1 to 1000. The value <strong id="functiongraph_01_0303__en-us_topic_0000001252067196_b12569142281013">–1</strong> indicates that the number of instances is not limited.</p>
|
||
<p id="functiongraph_01_0303__en-us_topic_0000001252067196_p17449102320432"><strong id="functiongraph_01_0303__en-us_topic_0000001252067196_b209201504113">Default value</strong>:</p>
|
||
<p id="functiongraph_01_0303__en-us_topic_0000001252067196_p10672104801711">400</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</li></ol>
|
||
</div>
|
||
<div class="section" id="functiongraph_01_0303__en-us_topic_0000001252067196_section145531130114519"><h4 class="sectiontitle">Configuration Constraints</h4><ul id="functiongraph_01_0303__en-us_topic_0000001252067196_ul97531533182611"><li id="functiongraph_01_0303__en-us_topic_0000001252067196_li78722385262">For Python functions, threads on an instance are bound to one core due to the Python Global Interpreter Lock (GIL) lock. As a result, concurrent requests can only be processed using the single core, not multiple cores. The function processing performance cannot be improved even if larger resource specifications are configured.</li><li id="functiongraph_01_0303__en-us_topic_0000001252067196_li1014311486261">For Node.js functions, the single-process single-thread processing of the V8 engine results in processing of concurrent requests only using a single core, not multiple cores. The function processing performance cannot be improved even if larger resource specifications are configured.</li></ul>
|
||
</div>
|
||
</div>
|
||
<div>
|
||
<div class="familylinks">
|
||
<div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_01_0300.html">Configuring Functions</a></div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<script language="JavaScript">
|
||
<!--
|
||
image_size('.imgResize');
|
||
var msg_imageMax = "view original image";
|
||
var msg_imageClose = "close";
|
||
//--></script> |