> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-8c05c8a2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> `config.xml` で指定された、 サーバーのグローバル設定に関する情報を含むシステムテーブル。

# system.server_settings

<Info>
  **ClickHouse Cloud でのクエリ**

  このシステムテーブルのデータは、ClickHouse Cloud の各ノードにローカルに保持されています。したがって、すべてのデータを完全に把握するには、`clusterAllReplicas` 関数を使用する必要があります。詳細については、[こちら](/ja/reference/system-tables/overview#system-tables-in-clickhouse-cloud)を参照してください。
</Info>

<div id="description">
  ## 説明
</div>

`config.xml` で指定されるサーバーのグローバル設定に関する情報です。
現在、このテーブルには `config.xml` の第1階層の設定のみが表示されており、ネストされた設定 (例: [logger](/ja/reference/settings/server-settings/settings#logger)) には対応していません。

<div id="columns">
  ## カラム
</div>

* `name` ([String](/ja/reference/data-types/index)) — サーバー設定名。
* `value` ([String](/ja/reference/data-types/index)) — サーバー設定の値。
* `default` ([String](/ja/reference/data-types/index)) — サーバー設定のデフォルト値。
* `changed` ([UInt8](/ja/reference/data-types/index)) — 設定が config.xml で指定されているかどうかを示します。
* `description` ([String](/ja/reference/data-types/index)) — サーバー設定の簡単な説明。
* `type` ([String](/ja/reference/data-types/index)) — サーバー設定の値の型。
* `changeable_without_restart` ([Enum8('No' = 0, 'IncreaseOnly' = 1, 'DecreaseOnly' = 2, 'Yes' = 3)](/ja/reference/data-types/index)) — 設定を実行時に変更できるかどうかを示します。
* `is_obsolete` ([UInt8](/ja/reference/data-types/index)) — 設定が廃止されたものかどうかを示します。

<div id="example">
  ## 例
</div>

次の例では、名前に `thread_pool` を含むサーバー設定の情報を取得する方法を示します。

```sql theme={null}
SELECT *
FROM system.server_settings
WHERE name LIKE '%thread_pool%'
```

```text theme={null}
┌─name──────────────────────────────────────────┬─value─┬─default─┬─changed─┬─description─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┬─type───┬─changeable_without_restart─┬─is_obsolete─┐
│ max_thread_pool_size                          │ 10000 │ 10000   │       0 │ The maximum number of threads that could be allocated from the OS and used for query execution and background operations.                           │ UInt64 │                         No │           0 │
│ max_thread_pool_free_size                     │ 1000  │ 1000    │       0 │ The maximum number of threads that will always stay in a global thread pool once allocated and remain idle in case of insufficient number of tasks. │ UInt64 │                         No │           0 │
│ thread_pool_queue_size                        │ 10000 │ 10000   │       0 │ The maximum number of tasks that will be placed in a queue and wait for execution.                                                                  │ UInt64 │                         No │           0 │
│ max_io_thread_pool_size                       │ 100   │ 100     │       0 │ The maximum number of threads that would be used for IO operations                                                                                  │ UInt64 │                         No │           0 │
│ max_io_thread_pool_free_size                  │ 0     │ 0       │       0 │ Max free size for IO thread pool.                                                                                                                   │ UInt64 │                         No │           0 │
│ io_thread_pool_queue_size                     │ 10000 │ 10000   │       0 │ Queue size for IO thread pool.                                                                                                                      │ UInt64 │                         No │           0 │
│ max_active_parts_loading_thread_pool_size     │ 64    │ 64      │       0 │ The number of threads to load active set of data parts (Active ones) at startup.                                                                    │ UInt64 │                         No │           0 │
│ max_outdated_parts_loading_thread_pool_size   │ 32    │ 32      │       0 │ The number of threads to load inactive set of data parts (Outdated ones) at startup.                                                                │ UInt64 │                         No │           0 │
│ max_unexpected_parts_loading_thread_pool_size │ 32    │ 32      │       0 │ The number of threads to load inactive set of data parts (Unexpected ones) at startup.                                                              │ UInt64 │                         No │           0 │
│ max_parts_cleaning_thread_pool_size           │ 128   │ 128     │       0 │ The number of threads for concurrent removal of inactive data parts.                                                                                │ UInt64 │                         No │           0 │
│ max_backups_io_thread_pool_size               │ 1000  │ 1000    │       0 │ The maximum number of threads that would be used for IO operations for BACKUP queries                                                               │ UInt64 │                         No │           0 │
│ max_backups_io_thread_pool_free_size          │ 0     │ 0       │       0 │ Max free size for backups IO thread pool.                                                                                                           │ UInt64 │                         No │           0 │
│ backups_io_thread_pool_queue_size             │ 0     │ 0       │       0 │ Queue size for backups IO thread pool.                                                                                                              │ UInt64 │                         No │           0 │
└───────────────────────────────────────────────┴───────┴─────────┴─────────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴────────┴────────────────────────────┴─────────────┘

```

`WHERE changed` は、たとえば設定ファイル内の設定が正しく読み込まれ、実際に使われているかどうかを確認したい場合に便利です。

```sql theme={null}
SELECT * FROM system.server_settings WHERE changed AND name='max_thread_pool_size'
```

<div id="see-also">
  ## 関連項目
</div>

* [設定](/ja/reference/system-tables/settings)
* [設定ファイル](/ja/concepts/features/configuration/server-config/configuration-files)
* [サーバー設定](/ja/reference/settings/server-settings/settings)
