# CPU 使用率が急上昇した時

### **TraceMempool**

**バージョン**:

Cardano-node 1.25.2

**事象**:

当該バージョンにした後からRelay NodeのCPUの使用率が極度に増加した。Peerからの重複したトランザクションがログされている。

**ワークアラウンド**:&#x20;

1: mainnet-config.jsonの`TraceMempool`を`true`から`false`に編集

```
"TraceMempool": false,
```

2: ノードのサービスを再起動

**結果**:

CPU使用率を抑える事ができました。（15:00以降）\
ただし、トランザクションのメトリックが取得できない状態になります。

![](/files/-MTF1TqyTmQuD3XJ0lnv)

**メリット**:&#x20;

CPUの使用率を抑える事ができる。

**デメリット**:

Grafanaなどで監視している場合トランザクションのメトリックが取得できなくなる。

**設定する時の考慮点**:&#x20;

トランザクションがNodeに入ってきていることは正常性確認でも大切な情報のため、変更前にプールの設定に問題無い事が確認できていること。

自身のプールのRelay Nodeしか繋がっていないBlock Producer Nodeでトランザクションがきている事を確認する。

将来の作業でファイルを上書きをした場合などは、設定が（規定値のtrueへ）戻る可能性がある。

**レファレンス**:

[\[Documentation\] - TraceMempool: practical usage for relays #2350](https://github.com/input-output-hk/cardano-node/issues/2350)

### 48時間問題

**バージョン:**

CardanoNode1.21.1 で改修されたが、1.23.0で再発。

**事象:**

報酬計算が走るため、エポック開始から48時間後にCPU使用率が上がった。（日本時間6:44分頃）

![](/files/-MTLJPad0_9cd3OwgQ46)

（SUGARプールの例では）Relay Nodeの接続ピアが10台ほど一時的に減少しました。

![](/files/-MTLIKE13bInc9NQ0njk)

**レファレンス**:

[\[BUG\] - The return of the epoch + 48 hour rewards calculation freeze](https://github.com/input-output-hk/cardano-node/issues/2205)\
→ Closedを確認

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sugar-stake-pool.gitbook.io/cardano-kb/cardano-node-operation/cpu-usage.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
