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

# s3_upload_* 세션 설정

> s3_upload_* 그룹에 속하는 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)에서 자동 생성됩니다.

## s3\_upload\_checksum\_algorithm

<VersionHistory rows={[{"id": "row-1","items": [{"label": "26.9"},{"label": ""},{"label": "S3 업로드에 사용할 checksum 알고리즘을 선택하는 새로운 설정."}]}]} />

ClickHouse가 `S3`로 데이터를 업로드할 때 사용하는 checksum 알고리즘입니다. `CRC32`와 `SHA256`은 유연한(flexible) `x-amz-checksum-*` header로 전송되고, `MD5`는 `Content-MD5` header로 전송됩니다.

기본값은 비어 있으며, 이 경우 ClickHouse는 AWS SDK가 `Content-MD5`를 계산하도록 맡깁니다. FIPS 모드에서는 `MD5`를 사용할 수 없어 SDK가 이를 조용히 생략하며, 그 결과 업로드에 checksum이 전혀 포함되지 않습니다. 이런 경우에는 `CRC32` 또는 `SHA256`을 지정해 유연한 checksum을 붙이십시오. 이 설정이 적용되는 곳에서는 명시적인 `MD5`가 거부됩니다.

이 설정은 `S3` 클라이언트가 생성되는 시점에 적용되므로, `s3` 테이블 함수나 `BACKUP ... TO S3`처럼 쿼리 범위에서 사용되는 경우에 반영됩니다. 반면 이후에 쿼리 단위로 실행하는 `SET`은 `S3` 디스크처럼 이미 생성되어 장기간 유지되는 클라이언트를 다시 구성하지 않습니다.

`S3Express` 버킷은 유연한 checksum을 요구하며 `Content-MD5`를 허용하지 않습니다. 명시적인 `CRC32` 또는 `SHA256`은 그대로 사용되고, 값이 비어 있으면 `CRC32`가 사용되며, 명시적인 `MD5`는 거부됩니다.

`GCS` endpoint(`storage.googleapis.com`)는 이 설정을 완전히 무시하고 SDK의 `Content-MD5` 동작을 그대로 유지합니다. `GCS`가 AWS `x-amz-checksum-*` header를 포함한 `SigV4` 서명 요청을 거부하기 때문입니다.

서버 측 복사는 이 설정을 무시합니다.

## s3\_upload\_part\_size\_multiply\_factor

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

단일 쓰기로 S3에 업로드된 파트 수가 `s3_multiply_parts_count_threshold`개에 도달할 때마다 `s3_min_upload_part_size`에 이 계수를 곱합니다.

## s3\_upload\_part\_size\_multiply\_parts\_count\_threshold

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

이 개수의 파트가 S3에 업로드될 때마다 s3\_min\_upload\_part\_size에 s3\_upload\_part\_size\_multiply\_factor를 곱합니다.
