forked from docs/doc-exports
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com> Co-authored-by: Chen, Junjie <chenjunjie@huawei.com> Co-committed-by: Chen, Junjie <chenjunjie@huawei.com>
63 lines
9.3 KiB
HTML
63 lines
9.3 KiB
HTML
<a name="functiongraph_01_1828"></a><a name="functiongraph_01_1828"></a>
|
|
|
|
<h1 class="topictitle1">Configuring Basic Settings</h1>
|
|
<div id="body32001227"><div class="section" id="functiongraph_01_1828__en-us_topic_0000001252083600_section1338268437"><h4 class="sectiontitle">Introduction</h4><p id="functiongraph_01_1828__en-us_topic_0000001252083600_p112752205210">After a function is created, <strong id="functiongraph_01_1828__en-us_topic_0000001252083600_b1562103112511">Memory (MB)</strong>, <strong id="functiongraph_01_1828__en-us_topic_0000001252083600_b2325116122515">Handler</strong>, and <strong id="functiongraph_01_1828__en-us_topic_0000001252083600_b12613113242515">Execution Timeout (s)</strong> are automatically set based on your runtime. If needed, modify them based on this section.</p>
|
|
</div>
|
|
<div class="section" id="functiongraph_01_1828__en-us_topic_0000001252083600_section5369160174410"><h4 class="sectiontitle">Prerequisites</h4><p id="functiongraph_01_1828__en-us_topic_0000001252083600_p1022612118578">You have created a function.</p>
|
|
</div>
|
|
<div class="section" id="functiongraph_01_1828__en-us_topic_0000001252083600_section236093074411"><h4 class="sectiontitle">Procedure</h4><ol id="functiongraph_01_1828__en-us_topic_0000001252083600_ol13219424114520"><li id="functiongraph_01_1828__en-us_topic_0000001252083600_li19220424104513">Log in to the FunctionGraph console. In the navigation pane, choose <strong id="functiongraph_01_1828__en-us_topic_0000001252083600_en-us_topic_0000001251907924_b033610517502">Functions</strong> > <strong id="functiongraph_01_1828__en-us_topic_0000001252083600_en-us_topic_0000001251907924_b183361950502">Function List</strong>.</li><li id="functiongraph_01_1828__en-us_topic_0000001252083600_li85541845124517">Click the function to be configured to go to the function details page.</li><li id="functiongraph_01_1828__en-us_topic_0000001252083600_li13283183812464">Choose <strong id="functiongraph_01_1828__en-us_topic_0000001252083600_b0794155710268">Configuration</strong> > <strong id="functiongraph_01_1828__en-us_topic_0000001252083600_b336514622711">Basic Settings</strong> and configure parameters based on <a href="#functiongraph_01_1828__en-us_topic_0000001252083600_table17352446184813">Table 1</a>. Parameters marked with an asterisk (*) are mandatory.
|
|
<div class="tablenoborder"><a name="functiongraph_01_1828__en-us_topic_0000001252083600_table17352446184813"></a><a name="en-us_topic_0000001252083600_table17352446184813"></a><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_01_1828__en-us_topic_0000001252083600_table17352446184813" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Basic settings</caption><thead align="left"><tr id="functiongraph_01_1828__en-us_topic_0000001252083600_row53531146154814"><th align="left" class="cellrowborder" valign="top" width="29.29%" id="mcps1.3.3.2.3.4.2.3.1.1"><p id="functiongraph_01_1828__en-us_topic_0000001252083600_p17353184615481">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="70.71%" id="mcps1.3.3.2.3.4.2.3.1.2"><p id="functiongraph_01_1828__en-us_topic_0000001252083600_p16353946114815">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="functiongraph_01_1828__en-us_topic_0000001252083600_row75632331187"><td class="cellrowborder" valign="top" width="29.29%" headers="mcps1.3.3.2.3.4.2.3.1.1 "><p id="functiongraph_01_1828__en-us_topic_0000001252083600_p756483311813">App</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="70.71%" headers="mcps1.3.3.2.3.4.2.3.1.2 "><p id="functiongraph_01_1828__en-us_topic_0000001252083600_p8826466446">After a function is created, it is automatically categorized into the <strong id="functiongraph_01_1828__en-us_topic_0000001252083600_b12708162471118">default</strong> app and cannot be switched to other apps.</p>
|
|
<div class="notice" id="functiongraph_01_1828__en-us_topic_0000001252083600_note3912182913459"><span class="noticetitle"> NOTICE: </span><div class="noticebody"><p id="functiongraph_01_1828__en-us_topic_0000001252083600_p1912162934513">An app acts like a folder. In the future, functions will be managed by label for better experience.</p>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_01_1828__en-us_topic_0000001252083600_row10353246204818"><td class="cellrowborder" valign="top" width="29.29%" headers="mcps1.3.3.2.3.4.2.3.1.1 "><p id="functiongraph_01_1828__en-us_topic_0000001252083600_p235320469488">*Handler</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="70.71%" headers="mcps1.3.3.2.3.4.2.3.1.2 "><ul id="functiongraph_01_1828__en-us_topic_0000001252083600_ul78998489244"><li id="functiongraph_01_1828__en-us_topic_0000001252083600_li38981948202416">For a Node.js, Python, or PHP function, the handler must be named in the format of <em id="functiongraph_01_1828__en-us_topic_0000001252083600_i1966124217308">[file name]</em>.<em id="functiongraph_01_1828__en-us_topic_0000001252083600_i147211421309">[function name]</em>, which must contain a period (.).<p id="functiongraph_01_1828__en-us_topic_0000001252083600_p13898114872412">Example: <strong id="functiongraph_01_1828__en-us_topic_0000001252083600_b16212646153015">myfunction.handler</strong></p>
|
|
</li><li id="functiongraph_01_1828__en-us_topic_0000001252083600_li5898194819243">For a Java function, the handler must be named in the format of <em id="functiongraph_01_1828__en-us_topic_0000001252083600_i123751749133012">[package name]</em>.<em id="functiongraph_01_1828__en-us_topic_0000001252083600_i837524903017">[class name]</em>.<em id="functiongraph_01_1828__en-us_topic_0000001252083600_i16376549153018">[execution function name]</em>.<p id="functiongraph_01_1828__en-us_topic_0000001252083600_p13898124872411">Example: <strong id="functiongraph_01_1828__en-us_topic_0000001252083600_b887894811303">com.xxxxx.exp.Myfunction.myHandler</strong></p>
|
|
</li><li id="functiongraph_01_1828__en-us_topic_0000001252083600_li131041155183518">For a Go function, the handler name must be the same as the executable file name in the uploaded code package.<p id="functiongraph_01_1828__en-us_topic_0000001252083600_p531614598355"><a name="functiongraph_01_1828__en-us_topic_0000001252083600_li131041155183518"></a><a name="en-us_topic_0000001252083600_li131041155183518"></a>Example: If the executable file is <strong id="functiongraph_01_1828__en-us_topic_0000001252083600_b7140134517125">handler</strong>, set this parameter to <strong id="functiongraph_01_1828__en-us_topic_0000001252083600_b1429975101218">handler</strong>.</p>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_01_1828__en-us_topic_0000001252083600_row63532468484"><td class="cellrowborder" valign="top" width="29.29%" headers="mcps1.3.3.2.3.4.2.3.1.1 "><p id="functiongraph_01_1828__en-us_topic_0000001252083600_p7353204616482">*Enterprise Project</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="70.71%" headers="mcps1.3.3.2.3.4.2.3.1.2 "><p id="functiongraph_01_1828__en-us_topic_0000001252083600_p132443351451">Select a created enterprise project and add the function to it. By default, <strong id="functiongraph_01_1828__en-us_topic_0000001252083600_b126089315298">default</strong> is selected.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_01_1828__en-us_topic_0000001252083600_row1635354614818"><td class="cellrowborder" valign="top" width="29.29%" headers="mcps1.3.3.2.3.4.2.3.1.1 "><p id="functiongraph_01_1828__en-us_topic_0000001252083600_p235314463482">*Execution Timeout (s)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="70.71%" headers="mcps1.3.3.2.3.4.2.3.1.2 "><p id="functiongraph_01_1828__en-us_topic_0000001252083600_p131672203416">Maximum duration the function can be executed. You can set this parameter on the <strong id="functiongraph_01_1828__en-us_topic_0000001252083600_b15688325133114">Configuration</strong> tab page. If the execution takes longer than 90s, use asynchronous invocation.</p>
|
|
<p id="functiongraph_01_1828__en-us_topic_0000001252083600_p1216172216349">The value ranges from 3s to 259,200s.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_01_1828__en-us_topic_0000001252083600_row1635417464481"><td class="cellrowborder" valign="top" width="29.29%" headers="mcps1.3.3.2.3.4.2.3.1.1 "><p id="functiongraph_01_1828__en-us_topic_0000001252083600_p1354346144817">Memory (MB)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="70.71%" headers="mcps1.3.3.2.3.4.2.3.1.2 "><p id="functiongraph_01_1828__en-us_topic_0000001252083600_p153312574245">Memory of a function instance. Options: 128, 256, 512, 768, 1024, 1280, 1536, 1792, 2048, 2560, 3072, 3584, 4096, 8192, 10,240.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_01_1828__en-us_topic_0000001252083600_row935434618489"><td class="cellrowborder" valign="top" width="29.29%" headers="mcps1.3.3.2.3.4.2.3.1.1 "><p id="functiongraph_01_1828__en-us_topic_0000001252083600_p6354114615484">Description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="70.71%" headers="mcps1.3.3.2.3.4.2.3.1.2 "><p id="functiongraph_01_1828__en-us_topic_0000001252083600_p15354146124816">Description of the function, which cannot exceed 512 characters.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="functiongraph_01_1828__en-us_topic_0000001252083600_li189081875203">Click <strong id="functiongraph_01_1828__en-us_topic_0000001252083600_b1289143619318">Save</strong>.</li></ol>
|
|
</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>
|
|
|