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

> جدول النظام الذي يحتوي على معلومات حول العناقيد المتاحة في ملف الإعدادات والخوادم المعرّفة فيها.

# system.clusters

<div id="description">
  ## الوصف
</div>

يتضمن معلومات عن العناقيد المتاحة في ملف الإعدادات والخوادم التابعة لها.

<div id="Columns">
  ## الأعمدة
</div>

* `cluster` ([String](/ar/reference/data-types/index)) — اسم العنقود.
* `shard_num` ([UInt32](/ar/reference/data-types/index)) — رقم الجزء في العنقود، بدءًا من 1.
* `shard_name` ([String](/ar/reference/data-types/index)) — اسم الجزء في العنقود.
* `shard_weight` ([UInt32](/ar/reference/data-types/index)) — الوزن النسبي للجزء عند كتابة البيانات.
* `internal_replication` ([UInt8](/ar/reference/data-types/index)) — علامة تشير إلى ما إذا كان هذا المضيف جزءًا من مجموعة يمكنها إجراء النسخ المتماثل للبيانات ذاتيًا.
* `replica_num` ([UInt32](/ar/reference/data-types/index)) — رقم النسخة المتماثلة في الجزء، بدءًا من 1.
* `host_name` ([String](/ar/reference/data-types/index)) — اسم المضيف، كما هو محدد في ملف config.
* `host_address` ([String](/ar/reference/data-types/index)) — عنوان IP للمضيف المستمد من DNS.
* `port` ([UInt16](/ar/reference/data-types/index)) — المنفذ المستخدم للاتصال بالخادم.
* `is_local` ([UInt8](/ar/reference/data-types/index)) — علامة تشير إلى ما إذا كان المضيف محليًا.
* `user` ([String](/ar/reference/data-types/index)) — اسم المستخدم للاتصال بالخادم.
* `default_database` ([String](/ar/reference/data-types/index)) — اسم قاعدة البيانات الافتراضية.
* `errors_count` ([UInt32](/ar/reference/data-types/index)) — عدد المرات التي فشل فيها هذا المضيف في الوصول إلى النسخة المتماثلة.
* `slowdowns_count` ([UInt32](/ar/reference/data-types/index)) — عدد مرات التباطؤ التي أدت إلى تبديل النسخة المتماثلة عند إنشاء اتصال باستخدام الطلبات التحوطية.
* `estimated_recovery_time` ([UInt32](/ar/reference/data-types/index)) — عدد الثواني المتبقية حتى يُصفَّر عدد أخطاء النسخة المتماثلة وتُعتبر قد عادت إلى الوضع الطبيعي.
* `database_shard_name` ([String](/ar/reference/data-types/index)) — اسم جزء قاعدة البيانات `Replicated` (للعناقيد التي تنتمي إلى قاعدة بيانات `Replicated`).
* `database_replica_name` ([String](/ar/reference/data-types/index)) — اسم النسخة المتماثلة لقاعدة البيانات `Replicated` (للعناقيد التي تنتمي إلى قاعدة بيانات `Replicated`).
* `is_shared_catalog_cluster` ([UInt8](/ar/reference/data-types/index)) — قيمة Bool تشير إلى ما إذا كان العنقود ينتمي إلى Shared Catalog.
* `is_active` ([Nullable(UInt8)](/ar/reference/data-types/index)) — حالة النسخة المتماثلة لقاعدة بيانات Replicated (للعناقيد التي تنتمي إلى قاعدة بيانات Replicated): 1 تعني 'النسخة المتماثلة متصلة'، و0 تعني 'النسخة المتماثلة غير متصلة'، وNULL تعني 'غير معروف'.
* `unsynced_after_recovery` ([Nullable(UInt8)](/ar/reference/data-types/index)) — يشير إلى ما إذا كان تأخر النسخ المتماثل للنسخة المتماثلة لقاعدة بيانات Replicated أكبر من max\_replication\_lag\_to\_enqueue بعد إنشاء النسخة المتماثلة أو استعادتها.
* `replication_lag` ([Nullable(UInt32)](/ar/reference/data-types/index)) — تأخر النسخ المتماثل للنسخة المتماثلة لقاعدة البيانات `Replicated` (للعناقيد التي تنتمي إلى قاعدة بيانات Replicated).
* `recovery_time` ([Nullable(UInt64)](/ar/reference/data-types/index)) — وقت الاستعادة للنسخة المتماثلة لقاعدة البيانات `Replicated` (للعناقيد التي تنتمي إلى قاعدة بيانات Replicated)، بالمللي ثانية.

<div id="example">
  ## مثال
</div>

```sql title="Query" theme={null}
SELECT * FROM system.clusters LIMIT 2 FORMAT Vertical;
```

```text title="Response" theme={null}
Row 1:
──────
cluster:                 test_cluster_two_shards
shard_num:               1
shard_name:              shard_01
shard_weight:            1
replica_num:             1
host_name:               127.0.0.1
host_address:            127.0.0.1
port:                    9000
is_local:                1
user:                    default
default_database:
errors_count:            0
slowdowns_count:         0
estimated_recovery_time: 0
database_shard_name:
database_replica_name:
is_active:               NULL

Row 2:
──────
cluster:                 test_cluster_two_shards
shard_num:               2
shard_name:              shard_02
shard_weight:            1
replica_num:             1
host_name:               127.0.0.2
host_address:            127.0.0.2
port:                    9000
is_local:                0
user:                    default
default_database:
errors_count:            0
slowdowns_count:         0
estimated_recovery_time: 0
database_shard_name:
database_replica_name:
is_active:               NULL
```

<div id="see-also">
  ## راجع أيضًا
</div>

* [محرك الجدول Distributed](/ar/reference/engines/table-engines/special/distributed)
* [إعداد distributed\_replica\_error\_cap](/ar/reference/settings/session-settings#distributed_replica_error_cap)
* [إعداد distributed\_replica\_error\_half\_life](/ar/reference/settings/session-settings#distributed_replica_error_half_life)
