> ## 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_*

> إعدادات جلسة ClickHouse ضمن المجموعة المُنشأة s3_upload_*.

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](/ar/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": "إعداد جديد لاختيار خوارزمية الـ checksum لعمليات الرفع إلى S3."}]}]} />

خوارزمية الـ checksum المستخدمة عند رفع ClickHouse للبيانات إلى `S3`. تُرسل `CRC32` و`SHA256` في صورة headers مرنة من نوع `x-amz-checksum-*`، بينما تُرسل `MD5` في صورة header باسم `Content-MD5`.

القيمة فارغة افتراضيًا، ويترك ClickHouse لـ AWS SDK مهمة حساب `Content-MD5`. وفي وضع FIPS تكون `MD5` غير متاحة، فيتخطاها الـ SDK بصمت دون إشعار ولا تحمل عملية الرفع أي checksum على الإطلاق؛ لذا عيّن `CRC32` أو `SHA256` لإرفاق checksum مرن بدلًا من ذلك. وحيث ينطبق هذا الإعداد، تُرفض قيمة `MD5` الصريحة.

ويسري مفعوله عند إنشاء client الـ `S3`، لذا ينطبق على الاستخدامات المحدودة بنطاق الاستعلام مثل الـ table function `s3` و`BACKUP ... TO S3`؛ أما استخدام `SET` لاحقًا على مستوى الاستعلام فلا يعيد تهيئة client طويل العمر تم إنشاؤه مسبقًا مثل قرص `S3`.

وتتطلب الـ buckets من نوع `S3Express` وجود checksum مرن ولا تقبل `Content-MD5`: فتُعتمد قيمة `CRC32` أو `SHA256` الصريحة، وتؤدي القيمة الفارغة إلى استخدام `CRC32`، وتُرفض قيمة `MD5` الصريحة.

وتتجاهل endpoints الـ `GCS` (`storage.googleapis.com`) هذا الإعداد تمامًا وتحافظ على سلوك `Content-MD5` الخاص بالـ SDK، لأن `GCS` يرفض الطلبات الموقّعة بـ `SigV4` التي تحمل headers الـ `x-amz-checksum-*` الخاصة بـ AWS.

وتتجاهل عمليات النسخ على جانب الـ server هذا الإعداد.

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

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

اضرب s3\_min\_upload\_part\_size في هذا العامل في كل مرة يُرفع فيها عدد من الأجزاء يساوي s3\_multiply\_parts\_count\_threshold من عملية كتابة واحدة إلى S3.

## 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.
