doc-exports/docs/ddm/umn/ddm_04_0009.html
Ru, Li Yi 4b09a03a51 ddm_umn
Reviewed-by: Wagner, Fabian <fabian.wagner@t-systems.com>
Co-authored-by: Ru, Li Yi <liyiru7@huawei.com>
Co-committed-by: Ru, Li Yi <liyiru7@huawei.com>
2024-04-11 11:39:26 +00:00

94 lines
8.1 KiB
HTML

<a name="ddm_04_0009"></a><a name="ddm_04_0009"></a>
<h1 class="topictitle1">What Version and Parameters Should I Select?</h1>
<div id="body1530839785505"><p id="ddm_04_0009__p154917472143">Currently, you cannot connect to DDM using <span class="keyword" id="ddm_04_0009__keyword6221118123813">JDBC driver</span> 5.1.46. Versions 5.1.35 to 5.1.45 are recommended.</p>
<p id="ddm_04_0009__p36001427162215">JDBC driver download address:<a href="https://dev.mysql.com/downloads/connector/j/" target="_blank" rel="noopener noreferrer">https://dev.mysql.com/downloads/connector/j/</a></p>
<p id="ddm_04_0009__p1945754017221"><a href="#ddm_04_0009__table127264441235">Table 1</a> describes the recommended parameters for the JDBC URL.</p>
<div class="tablenoborder"><a name="ddm_04_0009__table127264441235"></a><a name="table127264441235"></a><table cellpadding="4" cellspacing="0" summary="" id="ddm_04_0009__table127264441235" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters</caption><thead align="left"><tr id="ddm_04_0009__row137266445234"><th align="left" class="cellrowborder" valign="top" width="19%" id="mcps1.3.4.2.4.1.1"><p id="ddm_04_0009__p372644482318">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="51.839999999999996%" id="mcps1.3.4.2.4.1.2"><p id="ddm_04_0009__p57261644192318">Description</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="29.160000000000004%" id="mcps1.3.4.2.4.1.3"><p id="ddm_04_0009__p772644419235">Recommended Value</p>
</th>
</tr>
</thead>
<tbody><tr id="ddm_04_0009__row11726134422316"><td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.4.2.4.1.1 "><p id="ddm_04_0009__p1472684413236">ip:port</p>
</td>
<td class="cellrowborder" valign="top" width="51.839999999999996%" headers="mcps1.3.4.2.4.1.2 "><p id="ddm_04_0009__p5726244182318">Indicates the connection address and port number for connecting to the DDM instance.</p>
</td>
<td class="cellrowborder" valign="top" width="29.160000000000004%" headers="mcps1.3.4.2.4.1.3 "><p id="ddm_04_0009__p207261044112316">Query the connection address on the DDM instance details page.</p>
</td>
</tr>
<tr id="ddm_04_0009__row10726164411236"><td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.4.2.4.1.1 "><p id="ddm_04_0009__p117266440237">db_name</p>
</td>
<td class="cellrowborder" valign="top" width="51.839999999999996%" headers="mcps1.3.4.2.4.1.2 "><p id="ddm_04_0009__p3726174417235">Indicates the name of a schema.</p>
</td>
<td class="cellrowborder" valign="top" width="29.160000000000004%" headers="mcps1.3.4.2.4.1.3 "><p id="ddm_04_0009__p20726144432315">Query the schema name on the <strong id="ddm_04_0009__b686232862514">Schemas</strong> page of the DDM instance details page.</p>
</td>
</tr>
<tr id="ddm_04_0009__row177272448232"><td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.4.2.4.1.1 "><p id="ddm_04_0009__p47279444235">loadBalanceAutoCommitStatementThreshold</p>
</td>
<td class="cellrowborder" valign="top" width="51.839999999999996%" headers="mcps1.3.4.2.4.1.2 "><p id="ddm_04_0009__p2727044182314">Indicates the number of statements executed before a reconnection.</p>
<ul id="ddm_04_0009__ul1499414223287"><li id="ddm_04_0009__li2099316225282">If the parameter value is set to <strong id="ddm_04_0009__b17486163982515">5</strong>, after five SQL statements (queries or updates) are executed, a reconnection is initiated.</li><li id="ddm_04_0009__li981912402296">A value of <strong id="ddm_04_0009__b1592611274261">0</strong> indicates a sticky connection, and no reconnection is required.</li></ul>
<p id="ddm_04_0009__p13640154320295">When automatic submission is disabled (<strong id="ddm_04_0009__b11957102932611">autocommit</strong> is set to <strong id="ddm_04_0009__b109570292263">false</strong>), the system waits for the transaction to complete and then determines whether to initiate a reconnection.</p>
</td>
<td class="cellrowborder" valign="top" width="29.160000000000004%" headers="mcps1.3.4.2.4.1.3 "><p id="ddm_04_0009__p1272711448238">5</p>
</td>
</tr>
<tr id="ddm_04_0009__row1945033917443"><td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.4.2.4.1.1 "><p id="ddm_04_0009__p1545018391442">loadBalanceHostRemovalGracePeriod</p>
</td>
<td class="cellrowborder" valign="top" width="51.839999999999996%" headers="mcps1.3.4.2.4.1.2 "><p id="ddm_04_0009__p8450139114417">Sets the grace period for removing a host from the load balancing connection.</p>
</td>
<td class="cellrowborder" valign="top" width="29.160000000000004%" headers="mcps1.3.4.2.4.1.3 "><p id="ddm_04_0009__p745083910442">15000</p>
</td>
</tr>
<tr id="ddm_04_0009__row440418468449"><td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.4.2.4.1.1 "><p id="ddm_04_0009__p64041846154417">loadBalanceBlacklistTimeout</p>
</td>
<td class="cellrowborder" valign="top" width="51.839999999999996%" headers="mcps1.3.4.2.4.1.2 "><p id="ddm_04_0009__p204042046174416">Sets the time for retaining a service in the global blacklist.</p>
</td>
<td class="cellrowborder" valign="top" width="29.160000000000004%" headers="mcps1.3.4.2.4.1.3 "><p id="ddm_04_0009__p940454613441">60000</p>
</td>
</tr>
<tr id="ddm_04_0009__row12890743184419"><td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.4.2.4.1.1 "><p id="ddm_04_0009__p4890134313445">loadBalancePingTimeout</p>
</td>
<td class="cellrowborder" valign="top" width="51.839999999999996%" headers="mcps1.3.4.2.4.1.2 "><p id="ddm_04_0009__p889344317445">Indicates the time (unit: ms) for waiting for the ping response of each load balancing connection.</p>
</td>
<td class="cellrowborder" valign="top" width="29.160000000000004%" headers="mcps1.3.4.2.4.1.3 "><p id="ddm_04_0009__p12893243114410">5000</p>
</td>
</tr>
<tr id="ddm_04_0009__row950412598289"><td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.4.2.4.1.1 "><p id="ddm_04_0009__p13505125952816">retriesAllDown</p>
</td>
<td class="cellrowborder" valign="top" width="51.839999999999996%" headers="mcps1.3.4.2.4.1.2 "><p id="ddm_04_0009__p5506125916286">Indicates the maximum number of polling retries when all connection addresses fail.</p>
<p id="ddm_04_0009__p163824613299">If the threshold for retries has been reached but no valid address can be obtained, "SQLException" will be displayed.</p>
</td>
<td class="cellrowborder" valign="top" width="29.160000000000004%" headers="mcps1.3.4.2.4.1.3 "><p id="ddm_04_0009__p1950635910289">10</p>
</td>
</tr>
<tr id="ddm_04_0009__row873834583916"><td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.4.2.4.1.1 "><p id="ddm_04_0009__p117381645193920">connectTimeout</p>
</td>
<td class="cellrowborder" valign="top" width="51.839999999999996%" headers="mcps1.3.4.2.4.1.2 "><p id="ddm_04_0009__p136132530405">Specifies the timeout interval for establishing a socket connection with a database server.</p>
<p id="ddm_04_0009__p673854533911">Unit: ms. A value of <strong id="ddm_04_0009__b54781053163413">0</strong> indicates that connection establishment never times out. This parameter setting is used for JDK 1.4 or later versions.</p>
</td>
<td class="cellrowborder" valign="top" width="29.160000000000004%" headers="mcps1.3.4.2.4.1.3 "><p id="ddm_04_0009__p16738745113918">10000</p>
</td>
</tr>
<tr id="ddm_04_0009__row16571546123914"><td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.4.2.4.1.1 "><p id="ddm_04_0009__p1657114653914">socketTimeout</p>
</td>
<td class="cellrowborder" valign="top" width="51.839999999999996%" headers="mcps1.3.4.2.4.1.2 "><p id="ddm_04_0009__p89705284411">Specifies the timeout interval for a socket operation (read and write).</p>
<p id="ddm_04_0009__p7571104613917">Unit: ms. A value of <strong id="ddm_04_0009__b15273524363">0</strong> indicates that a socket operation never times out.</p>
</td>
<td class="cellrowborder" valign="top" width="29.160000000000004%" headers="mcps1.3.4.2.4.1.3 "><p id="ddm_04_0009__p25711746183918">Set this parameter based on your service requirements.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="ddm_04_0004.html">DDM Usage</a></div>
</div>
</div>