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

# insert_keeper_* 세션 설정

> insert_keeper_*로 생성된 그룹의 ClickHouse 세션 설정입니다.

export const VersionHistory = ({rows = []}) => {
  if (rows.length === 0) {
    return null;
  }
  const headers = ["버전", "기본값", "설명"];
  const border = "1px solid rgba(128, 128, 128, 0.3)";
  const cell = {
    border,
    padding: "0.25rem 0.5rem",
    textAlign: "start",
    verticalAlign: "top"
  };
  return <details className="not-prose" style={{
    border,
    borderRadius: "0.5rem",
    margin: "0.5rem 0",
    padding: "0.5rem 0.75rem",
    fontSize: "0.8125rem",
    lineHeight: "1.125rem"
  }}>
      <summary style={{
    cursor: "pointer",
    fontWeight: 600,
    opacity: 0.72
  }}>
        버전 이력
      </summary>
      <table style={{
    borderCollapse: "collapse",
    width: "100%",
    margin: "0.5rem 0 0"
  }}>
        <thead>
          <tr>
            {headers.map(header => <th key={header} style={{
    ...cell,
    fontWeight: 600,
    opacity: 0.72
  }}>
                {header}
              </th>)}
          </tr>
        </thead>
        <tbody>
          {rows.map((row, row_index) => <tr key={row.id ?? row_index}>
              {(row.items ?? []).map((item, item_index) => <td key={item_index} style={{
    ...cell,
    overflowWrap: "anywhere"
  }}>
                  {item?.label}
                </td>)}
            </tr>)}
        </tbody>
      </table>
    </details>;
};

export const SettingsInfoBlock = ({type, default_value, changeable_without_restart}) => {
  return <div className="not-prose" style={{
    display: "flex",
    flexWrap: "wrap",
    alignItems: "baseline",
    columnGap: "0.5rem",
    rowGap: "0.125rem",
    margin: "0.375rem 0",
    fontSize: "0.8125rem",
    lineHeight: "1.125rem"
  }}>
      <div style={{
    fontWeight: 600,
    opacity: 0.72
  }}>유형</div>
      <div style={{
    overflowWrap: "anywhere"
  }}>{type}</div>
      <div style={{
    fontWeight: 600,
    opacity: 0.72,
    marginInlineStart: "0.5rem"
  }}>기본값</div>
      <div style={{
    overflowWrap: "anywhere"
  }}>{default_value}</div>
      {changeable_without_restart && <div style={{
    fontWeight: 600,
    opacity: 0.72,
    marginInlineStart: "0.5rem"
  }}>
          재시작 없이 변경 가능
        </div>}
      {changeable_without_restart && <div style={{
    overflowWrap: "anywhere"
  }}>
          {changeable_without_restart}
        </div>}
    </div>;
};

이 설정은 [system.settings](/ko/reference/system-tables/settings)에서 확인할 수 있으며, [소스 코드](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/Settings.cpp)를 기반으로 자동 생성됩니다.

<div id="insert_keeper_fault_injection_probability">
  ## insert\_keeper\_fault\_injection\_probability
</div>

<SettingsInfoBlock type="Float" default_value="0" />

삽입 중 Keeper request가 실패할 대략적인 확률입니다. 유효한 값의 범위는 \[0.0f, 1.0f]입니다.

<div id="insert_keeper_fault_injection_seed">
  ## insert\_keeper\_fault\_injection\_seed
</div>

<SettingsInfoBlock type="UInt64" default_value="0" />

0 - 랜덤 시드, 그 외에는 이 설정값

<div id="insert_keeper_max_retries">
  ## insert\_keeper\_max\_retries
</div>

<SettingsInfoBlock type="UInt64" default_value="20" />

이 설정은 복제된 MergeTree에 데이터를 삽입하는 동안 ClickHouse Keeper(또는 ZooKeeper) request에 대한 최대 재시도 횟수를 설정합니다. 네트워크 오류, Keeper session 타임아웃 또는 request 타임아웃으로 실패한 Keeper request만 재시도 대상이 됩니다.

가능한 값:

* 양의 정수
* 0 — 재시도가 비활성화됩니다

Keeper request 재시도는 일정 시간 후에 수행됩니다. 이 시간은 다음 설정으로 제어됩니다: `insert_keeper_retry_initial_backoff_ms`, `insert_keeper_retry_max_backoff_ms`.
첫 번째 재시도는 `insert_keeper_retry_initial_backoff_ms` 시간이 지난 후 수행됩니다. 그다음 시간은 다음과 같이 계산됩니다:

```
timeout = min(insert_keeper_retry_max_backoff_ms, latest_timeout * 2)
```

예를 들어, `insert_keeper_retry_initial_backoff_ms=100`, `insert_keeper_retry_max_backoff_ms=10000`, `insert_keeper_max_retries=8`이면 타임아웃은 `100, 200, 400, 800, 1600, 3200, 6400, 10000`이 됩니다.

장애 허용 외에도 재시도는 더 나은 사용자 경험을 제공하는 데 목적이 있습니다. 예를 들어 upgrade로 인해 Keeper가 재시작되더라도 INSERT 실행 중 오류를 반환하지 않게 해 줍니다.

<div id="insert_keeper_retry_initial_backoff_ms">
  ## insert\_keeper\_retry\_initial\_backoff\_ms
</div>

<SettingsInfoBlock type="UInt64" default_value="100" />

INSERT 쿼리 실행 중 실패한 Keeper 요청을 재시도할 때 적용되는 초기 타임아웃(밀리초)입니다.

Possible values:

* 양의 정수입니다.
* 0 — 타임아웃 없음

<div id="insert_keeper_retry_max_backoff_ms">
  ## insert\_keeper\_retry\_max\_backoff\_ms
</div>

<SettingsInfoBlock type="UInt64" default_value="10000" />

INSERT 쿼리 실행 중 실패한 Keeper 요청을 재시도할 때 적용되는 최대 타임아웃(밀리초)

가능한 값:

* 양의 정수
* 0 — 최대 타임아웃이 없습니다.
