

如需與 Amazon Timestream for LiveAnalytics 類似的功能，請考慮使用 Amazon Timestream for InfluxDB。它提供簡化的資料擷取和單一位數毫秒查詢回應時間，以進行即時分析。[在這裡](https://docs.aws.amazon.com//timestream/latest/developerguide/timestream-for-influxdb.html)進一步了解。

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 更新資料庫執行個體
<a name="timestream-for-influx-managing-modifying-db"></a>

 您可以更新 Timestream for InfluxDB 執行個體的下列組態參數：
+ 執行個體類別
+ 儲存體類型
+ 配置的儲存體 （僅增加）
+ 部署類型
+ 參數群組
+ 日誌交付組態

**重要**  
我們建議您在修改生產執行個體之前測試測試執行個體上的所有變更，以了解其影響，尤其是在升級資料庫版本時。更新設定之前，請先檢閱對資料庫和應用程式的影響。有些修改需要重新啟動資料庫執行個體，導致停機時間。

**使用 AWS 管理主控台**

1. 登入 AWS 管理主控台 並開啟 [Amazon Timestream for InfluxDB 主控台](https://console.aws.amazon.com/timestream/)。

1. 在導覽窗格中，選擇 **InfluxDB 資料庫**，然後選擇您要修改的資料庫執行個體。

1. 選擇 **Modify** (修改)。

1. 在**修改資料庫執行個體**頁面上，進行所需的變更。

1. 選擇 **Continue (繼續)**，並檢查修改的摘要。

1. 選擇**下一步**。

1. 檢閱您的變更。

1. 選擇**修改執行個體**以套用您的變更。

**注意**  
這些修改需要重新啟動 Influx 資料庫執行個體，在某些情況下可能會導致中斷。

**使用 AWS Command Line Interface**

若要使用 更新資料庫執行個體 AWS Command Line Interface，請呼叫 `update-db-instance`命令。指定資料庫執行個體識別符，以及您要修改選項的值。如需每個選項的詳細資訊，請參閱[資料庫執行個體的設定](timestream-for-influx-configuring.md#timestream-for-influx-configuring-create-db-settings)。

**Example 範例**  
 下列程式碼透過設定不同的 來修改 *my-db-instance*`db-parameter-group-name`。將每個*使用者輸入預留位置*替換為自己的資訊。變更會立即套用。  
針對 Linux、macOS 或 Unix：  

```
aws timestream-influxdb update-db-instance \
    --identifier my-db-instance \
    --db-storage-type desired-storage-type \
    --allocated-storage desired-allocated-storage \
    --db-instance-type desired-instance-type \
    --deployment-type desired-deployment-type \
    --db-parameter-group-name new-param-group \
    --port 8086
```
針對 Windows：  

```
aws timestream-influxdb update-db-instance ^
    --identifier my-db-instance ^
    --db-storage-type desired-storage-type ^
    --allocated-storage desired-allocated-storage ^
    --db-instance-type desired-instance-type ^
    --deployment-type desired-deployment-type ^
    --db-parameter-group-name new-param-group
    --port 8086
```