Files
doc-exports/docs/fg/umn/functiongraph_01_0150.html
liusiying01 904c1aad8b FG UMN 20250526 version
Reviewed-by: Mützel, Andrea <andrea.muetzel@t-systems.com>
Co-authored-by: liusiying01 <liusiying@huawei.com>
Co-committed-by: liusiying01 <liusiying@huawei.com>
2025-10-06 15:14:20 +00:00

208 lines
18 KiB
HTML

<a name="functiongraph_01_0150"></a><a name="functiongraph_01_0150"></a>
<h1 class="topictitle1">Notes and Constraints</h1>
<div id="body1512463447537"><div class="section" id="functiongraph_01_0150__section4926912184410"><h4 class="sectiontitle">Function Configuration</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_01_0150__table1410723919445" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Function configuration restrictions</caption><thead align="left"><tr id="functiongraph_01_0150__row51073392449"><th align="left" class="cellrowborder" valign="top" width="48.393574297188756%" id="mcps1.3.1.2.2.3.1.1"><p id="functiongraph_01_0150__p191073397448">Restriction Item</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="51.60642570281125%" id="mcps1.3.1.2.2.3.1.2"><p id="functiongraph_01_0150__p121071839174412">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="functiongraph_01_0150__row0108739194420"><td class="cellrowborder" valign="top" width="48.393574297188756%" headers="mcps1.3.1.2.2.3.1.1 "><p id="functiongraph_01_0150__p710819395448">Maximum number of versions allowed for a function</p>
</td>
<td class="cellrowborder" valign="top" width="51.60642570281125%" headers="mcps1.3.1.2.2.3.1.2 "><p id="functiongraph_01_0150__p7108639154419">20 (including the latest version)</p>
</td>
</tr>
<tr id="functiongraph_01_0150__row17108123916448"><td class="cellrowborder" valign="top" width="48.393574297188756%" headers="mcps1.3.1.2.2.3.1.1 "><p id="functiongraph_01_0150__p710814394440">Maximum number of aliases allowed for a function</p>
</td>
<td class="cellrowborder" valign="top" width="51.60642570281125%" headers="mcps1.3.1.2.2.3.1.2 "><p id="functiongraph_01_0150__p0108123913441">10</p>
<p id="functiongraph_01_0150__p19842536538">Each version can be associated with only one alias.</p>
</td>
</tr>
<tr id="functiongraph_01_0150__row111080396444"><td class="cellrowborder" valign="top" width="48.393574297188756%" headers="mcps1.3.1.2.2.3.1.1 "><p id="functiongraph_01_0150__p8108639194416">Maximum number of triggers allowed for a function version</p>
</td>
<td class="cellrowborder" valign="top" width="51.60642570281125%" headers="mcps1.3.1.2.2.3.1.2 "><p id="functiongraph_01_0150__p10108143912441">10</p>
</td>
</tr>
<tr id="functiongraph_01_0150__row15108239144410"><td class="cellrowborder" valign="top" width="48.393574297188756%" headers="mcps1.3.1.2.2.3.1.1 "><p id="functiongraph_01_0150__p01081239104417">Size of all environment variables of a function</p>
</td>
<td class="cellrowborder" valign="top" width="51.60642570281125%" headers="mcps1.3.1.2.2.3.1.2 "><p id="functiongraph_01_0150__p18108173919447">4,096 characters</p>
</td>
</tr>
<tr id="functiongraph_01_0150__row13448153101616"><td class="cellrowborder" valign="top" width="48.393574297188756%" headers="mcps1.3.1.2.2.3.1.1 "><p id="functiongraph_01_0150__p12945101010166">Maximum number of functions that can be created under an account</p>
</td>
<td class="cellrowborder" valign="top" width="51.60642570281125%" headers="mcps1.3.1.2.2.3.1.2 "><p id="functiongraph_01_0150__p1294521031610">400</p>
</td>
</tr>
<tr id="functiongraph_01_0150__row3392177163"><td class="cellrowborder" valign="top" width="48.393574297188756%" headers="mcps1.3.1.2.2.3.1.1 "><p id="functiongraph_01_0150__p194511011616">Maximum size of deployment packages allowed for an account</p>
</td>
<td class="cellrowborder" valign="top" width="51.60642570281125%" headers="mcps1.3.1.2.2.3.1.2 "><p id="functiongraph_01_0150__p1594561011162">10 GB</p>
</td>
</tr>
<tr id="functiongraph_01_0150__row14265169131610"><td class="cellrowborder" valign="top" width="48.393574297188756%" headers="mcps1.3.1.2.2.3.1.1 "><p id="functiongraph_01_0150__p39454108164">Number of concurrent executions per account</p>
</td>
<td class="cellrowborder" valign="top" width="51.60642570281125%" headers="mcps1.3.1.2.2.3.1.2 "><p id="functiongraph_01_0150__p11945510191611">100</p>
<p id="functiongraph_01_0150__p920710611221">For more concurrent executions, .</p>
</td>
</tr>
<tr id="functiongraph_01_0150__row5448756162"><td class="cellrowborder" valign="top" width="48.393574297188756%" headers="mcps1.3.1.2.2.3.1.1 "><p id="functiongraph_01_0150__p119459108164">Maximum number of reserved instances that an account can create</p>
</td>
<td class="cellrowborder" valign="top" width="51.60642570281125%" headers="mcps1.3.1.2.2.3.1.2 "><p id="functiongraph_01_0150__p994531041613">90 (Number of concurrent executions per account x 90%)</p>
<p id="functiongraph_01_0150__p1931141517256">For more reserved instances, .</p>
</td>
</tr>
<tr id="functiongraph_01_0150__row8381103811430"><td class="cellrowborder" valign="top" width="48.393574297188756%" headers="mcps1.3.1.2.2.3.1.1 "><p id="functiongraph_01_0150__p538123854314">Maximum number of tags that can be created for a function</p>
</td>
<td class="cellrowborder" valign="top" width="51.60642570281125%" headers="mcps1.3.1.2.2.3.1.2 "><p id="functiongraph_01_0150__p1424714134544">20</p>
<p id="functiongraph_01_0150__p17381538144316">To use the pre-defined tags of Tag Management Service (TMS), enable this service.</p>
</td>
</tr>
<tr id="functiongraph_01_0150__row20913957125416"><td class="cellrowborder" valign="top" width="48.393574297188756%" headers="mcps1.3.1.2.2.3.1.1 "><p id="functiongraph_01_0150__p8949104995512">Network</p>
</td>
<td class="cellrowborder" valign="top" width="51.60642570281125%" headers="mcps1.3.1.2.2.3.1.2 "><p id="functiongraph_01_0150__p3949204914556">If VPC access is enabled, the default NIC is disabled and the NIC bound to the VPC will be used instead. Whether public access is supported depends on the VPC.</p>
</td>
</tr>
<tr id="functiongraph_01_0150__row37861619551"><td class="cellrowborder" valign="top" width="48.393574297188756%" headers="mcps1.3.1.2.2.3.1.1 "><p id="functiongraph_01_0150__p14381172617563">Async notification</p>
</td>
<td class="cellrowborder" valign="top" width="51.60642570281125%" headers="mcps1.3.1.2.2.3.1.2 "><p id="functiongraph_01_0150__p17215713566">To avoid cyclic invocation, do not set two functions as asynchronous execution targets of each other.</p>
</td>
</tr>
<tr id="functiongraph_01_0150__row95223385510"><td class="cellrowborder" valign="top" width="48.393574297188756%" headers="mcps1.3.1.2.2.3.1.1 "><p id="functiongraph_01_0150__p1795115422197">Logs</p>
</td>
<td class="cellrowborder" valign="top" width="51.60642570281125%" headers="mcps1.3.1.2.2.3.1.2 "><ul id="functiongraph_01_0150__ul115288159812"><li id="functiongraph_01_0150__li352812151881">The default log group will be unavailable if you switch it to another one or disable <strong id="functiongraph_01_0150__b4767713154712">Collect Logs</strong>.</li><li id="functiongraph_01_0150__li104302171780">Each function can have a maximum of 10 tags.</li></ul>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="functiongraph_01_0150__section16171151184916"><h4 class="sectiontitle">Function Code</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_01_0150__table1549116245115" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Function code restrictions</caption><thead align="left"><tr id="functiongraph_01_0150__row1449111245112"><th align="left" class="cellrowborder" valign="top" width="48.629964806435396%" id="mcps1.3.2.2.2.3.1.1"><p id="functiongraph_01_0150__p174916265117">Restriction Item</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="51.370035193564604%" id="mcps1.3.2.2.2.3.1.2"><p id="functiongraph_01_0150__p1049112215512">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="functiongraph_01_0150__row1449214265117"><td class="cellrowborder" valign="top" width="48.629964806435396%" headers="mcps1.3.2.2.2.3.1.1 "><p id="functiongraph_01_0150__p4492142165116">Size of a code deployment package (in ZIP or JAR format) that can be uploaded to the FunctionGraph console</p>
</td>
<td class="cellrowborder" valign="top" width="51.370035193564604%" headers="mcps1.3.2.2.2.3.1.2 "><p id="functiongraph_01_0150__p17492152145113">40 MB</p>
</td>
</tr>
<tr id="functiongraph_01_0150__row1649215295110"><td class="cellrowborder" valign="top" width="48.629964806435396%" headers="mcps1.3.2.2.2.3.1.1 "><p id="functiongraph_01_0150__p649212213519">Size of a code deployment package (in ZIP or JAR format) that can be edited inline during function API invocation</p>
</td>
<td class="cellrowborder" valign="top" width="51.370035193564604%" headers="mcps1.3.2.2.2.3.1.2 "><p id="functiongraph_01_0150__p14492132195111">50 MB</p>
</td>
</tr>
<tr id="functiongraph_01_0150__row9172153082017"><td class="cellrowborder" valign="top" width="48.629964806435396%" headers="mcps1.3.2.2.2.3.1.1 "><p id="functiongraph_01_0150__p1212803622015">Size of exported resources</p>
</td>
<td class="cellrowborder" valign="top" width="51.370035193564604%" headers="mcps1.3.2.2.2.3.1.2 "><p id="functiongraph_01_0150__p3128203612015">≤ 50 MB</p>
</td>
</tr>
<tr id="functiongraph_01_0150__row124921215516"><td class="cellrowborder" valign="top" width="48.629964806435396%" headers="mcps1.3.2.2.2.3.1.1 "><p id="functiongraph_01_0150__p54922295120">Size of an original code deployment package allowed during function API invocation</p>
</td>
<td class="cellrowborder" valign="top" width="51.370035193564604%" headers="mcps1.3.2.2.2.3.1.2 "><ul id="functiongraph_01_0150__ul249282105115"><li id="functiongraph_01_0150__li749211295110">ZIP: 1,500 MB (after decompression)</li><li id="functiongraph_01_0150__li1249216218518">OBS bucket: 300 MB (after compression)</li></ul>
</td>
</tr>
<tr id="functiongraph_01_0150__row174934219513"><td class="cellrowborder" valign="top" width="48.629964806435396%" headers="mcps1.3.2.2.2.3.1.1 "><p id="functiongraph_01_0150__p64931024516">Maximum size of code that can be displayed on the console</p>
</td>
<td class="cellrowborder" valign="top" width="51.370035193564604%" headers="mcps1.3.2.2.2.3.1.2 "><p id="functiongraph_01_0150__p16493152105115">20 MB</p>
</td>
</tr>
<tr id="functiongraph_01_0150__row799619491631"><td class="cellrowborder" valign="top" width="48.629964806435396%" headers="mcps1.3.2.2.2.3.1.1 "><p id="functiongraph_01_0150__p029045713312">Private dependency</p>
</td>
<td class="cellrowborder" valign="top" width="51.370035193564604%" headers="mcps1.3.2.2.2.3.1.2 "><ul id="functiongraph_01_0150__ul1329019572312"><li id="functiongraph_01_0150__li629055711319">ZIP: 10 MB (If the file size exceeds 10 MB, upload it via OBS.)</li><li id="functiongraph_01_0150__li7290175714315">OBS: OBS URL with the file in ZIP format</li></ul>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="functiongraph_01_0150__section3724193604219"><h4 class="sectiontitle">Function Running Resources</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_01_0150__table1272543611426" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Function running resource restrictions</caption><thead align="left"><tr id="functiongraph_01_0150__row4728163619423"><th align="left" class="cellrowborder" valign="top" width="56.83784538096567%" id="mcps1.3.3.2.2.3.1.1"><p id="functiongraph_01_0150__p16729036124212">Restriction Item</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="43.16215461903433%" id="mcps1.3.3.2.2.3.1.2"><p id="functiongraph_01_0150__p157301236124216">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="functiongraph_01_0150__row573211361424"><td class="cellrowborder" valign="top" width="56.83784538096567%" headers="mcps1.3.3.2.2.3.1.1 "><p id="functiongraph_01_0150__p50972472194856">Ephemeral disk space (<strong id="functiongraph_01_0150__b84235270610185">/tmp</strong> space)</p>
</td>
<td class="cellrowborder" valign="top" width="43.16215461903433%" headers="mcps1.3.3.2.2.3.1.2 "><p id="functiongraph_01_0150__p35129590194856">512 MB</p>
</td>
</tr>
<tr id="functiongraph_01_0150__row12735153612428"><td class="cellrowborder" valign="top" width="56.83784538096567%" headers="mcps1.3.3.2.2.3.1.1 "><p id="functiongraph_01_0150__p40994052194856">File descriptors</p>
</td>
<td class="cellrowborder" valign="top" width="43.16215461903433%" headers="mcps1.3.3.2.2.3.1.2 "><p id="functiongraph_01_0150__p373915362427">2048</p>
</td>
</tr>
<tr id="functiongraph_01_0150__row12739163664216"><td class="cellrowborder" valign="top" width="56.83784538096567%" headers="mcps1.3.3.2.2.3.1.1 "><p id="functiongraph_01_0150__p41094624194856">Total number of processes and threads</p>
</td>
<td class="cellrowborder" valign="top" width="43.16215461903433%" headers="mcps1.3.3.2.2.3.1.2 "><p id="functiongraph_01_0150__p12745153624214">1024</p>
</td>
</tr>
<tr id="functiongraph_01_0150__row197461736204216"><td class="cellrowborder" valign="top" width="56.83784538096567%" headers="mcps1.3.3.2.2.3.1.1 "><p id="functiongraph_01_0150__p7086370194856">Maximum execution duration per request</p>
</td>
<td class="cellrowborder" valign="top" width="43.16215461903433%" headers="mcps1.3.3.2.2.3.1.2 "><p id="functiongraph_01_0150__p61611291168">259,200s</p>
<p id="functiongraph_01_0150__p17748236184216">If the execution takes longer than 90 seconds, use asynchronous invocation.</p>
<p id="functiongraph_01_0150__p035935513272">For longer execution duration, .</p>
</td>
</tr>
<tr id="functiongraph_01_0150__row30153236163437"><td class="cellrowborder" valign="top" width="56.83784538096567%" headers="mcps1.3.3.2.2.3.1.1 "><p id="functiongraph_01_0150__p19295205194856">Valid payload size of invocation request body (synchronous invocation)</p>
</td>
<td class="cellrowborder" valign="top" width="43.16215461903433%" headers="mcps1.3.3.2.2.3.1.2 "><p id="functiongraph_01_0150__p19407759194856">6 MB</p>
</td>
</tr>
<tr id="functiongraph_01_0150__row53209872163437"><td class="cellrowborder" valign="top" width="56.83784538096567%" headers="mcps1.3.3.2.2.3.1.1 "><p id="functiongraph_01_0150__p55395407194856">Valid payload size of invocation response body (synchronous invocation)</p>
</td>
<td class="cellrowborder" valign="top" width="43.16215461903433%" headers="mcps1.3.3.2.2.3.1.2 "><p id="functiongraph_01_0150__p1654215531965">6 MB</p>
<p id="functiongraph_01_0150__p57843006194856">By default, the size of the returned string or the JSON string serialized from the response body is less than or equal to 6 MB. The actual data size varies depending on the backend settings of FunctionGraph. The backend determines the size of the serialized data with a byte-level deviation. The actual valid payload size is 6 MB &plusmn; 100 bytes.</p>
</td>
</tr>
<tr id="functiongraph_01_0150__row19866055163437"><td class="cellrowborder" valign="top" width="56.83784538096567%" headers="mcps1.3.3.2.2.3.1.1 "><p id="functiongraph_01_0150__p23185102194856">Valid payload size of invocation request body (asynchronous invocation)</p>
</td>
<td class="cellrowborder" valign="top" width="43.16215461903433%" headers="mcps1.3.3.2.2.3.1.2 "><p id="functiongraph_01_0150__p66053963194856">256 KB</p>
</td>
</tr>
<tr id="functiongraph_01_0150__row1371914381617"><td class="cellrowborder" valign="top" width="56.83784538096567%" headers="mcps1.3.3.2.2.3.1.1 "><p id="functiongraph_01_0150__p11720184311615">Image size per function</p>
</td>
<td class="cellrowborder" valign="top" width="43.16215461903433%" headers="mcps1.3.3.2.2.3.1.2 "><p id="functiongraph_01_0150__p1720174312168">10 GB</p>
</td>
</tr>
<tr id="functiongraph_01_0150__row542075212195"><td class="cellrowborder" valign="top" width="56.83784538096567%" headers="mcps1.3.3.2.2.3.1.1 "><p id="functiongraph_01_0150__p942025211914">Instances per tenant</p>
</td>
<td class="cellrowborder" valign="top" width="43.16215461903433%" headers="mcps1.3.3.2.2.3.1.2 "><p id="functiongraph_01_0150__p84201452111914">1000</p>
<p id="functiongraph_01_0150__p57621736152813">For more instances, .</p>
</td>
</tr>
<tr id="functiongraph_01_0150__row12940641155714"><td class="cellrowborder" valign="top" width="56.83784538096567%" headers="mcps1.3.3.2.2.3.1.1 "><p id="functiongraph_01_0150__p1094194116573">Max. memory per function</p>
</td>
<td class="cellrowborder" valign="top" width="43.16215461903433%" headers="mcps1.3.3.2.2.3.1.2 "><p id="functiongraph_01_0150__p14941341145710">10 GB</p>
</td>
</tr>
<tr id="functiongraph_01_0150__row658918168589"><td class="cellrowborder" valign="top" width="56.83784538096567%" headers="mcps1.3.3.2.2.3.1.1 "><p id="functiongraph_01_0150__p135894168588">Bandwidth</p>
</td>
<td class="cellrowborder" valign="top" width="43.16215461903433%" headers="mcps1.3.3.2.2.3.1.2 "><p id="functiongraph_01_0150__p155891716165811">Unlimited</p>
</td>
</tr>
<tr id="functiongraph_01_0150__row653244412585"><td class="cellrowborder" valign="top" width="56.83784538096567%" headers="mcps1.3.3.2.2.3.1.1 "><p id="functiongraph_01_0150__p1853254412582">Single log size</p>
</td>
<td class="cellrowborder" valign="top" width="43.16215461903433%" headers="mcps1.3.3.2.2.3.1.2 "><p id="functiongraph_01_0150__p13532174416584">Unlimited</p>
</td>
</tr>
<tr id="functiongraph_01_0150__row1287202851417"><td class="cellrowborder" valign="top" width="56.83784538096567%" headers="mcps1.3.3.2.2.3.1.1 "><p id="functiongraph_01_0150__p1087192817143">Maximum execution duration of initializer</p>
</td>
<td class="cellrowborder" valign="top" width="43.16215461903433%" headers="mcps1.3.3.2.2.3.1.2 "><p id="functiongraph_01_0150__p13871228141415">259,200s</p>
<p id="functiongraph_01_0150__p0242115222819">For longer initializer execution duration, .</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_01_1000.html">Service Overview</a></div>
</div>
</div>