Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Phase 1, Lustre observation. Not released: pilots on real filesystems, the exter

### Added

- Parallel Filesystem Operator realm and Operations page with current observations and personal acknowledgments. Existing administrators inherit Operator access; operators inherit monitoring access without configuration rights.

- Plugin install, upgrade, and uninstall through Cacti's plugin API, with a refusal on PHP below 8.2 that leaves Cacti working (milestone 2).
- Registry of filesystems, nodes, and the networks each poller may reach; a background reader per poller that reads Lustre servers over SSH through a fixed forced-command script, `node/pfs-read.sh` (milestone 2).
- A cache of target inventory, condition, capacity, and counters with their freshness, and a health page (milestone 2).
Expand Down
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,35 @@
<!-- translations:start -->
[English](README.md) | [简体中文](docs/i18n/zh-CN/README.md) | [हिन्दी](docs/i18n/hi-IN/README.md) | [Español (España)](docs/i18n/es-ES/README.md) | [Español (Latinoamérica)](docs/i18n/es-419/README.md) | [العربية](docs/i18n/ar-SA/README.md)
<!-- translations:end -->

# plugin_pfs

A Cacti 1.2 plugin that brings parallel filesystem health and load into Cacti: capacity and fill imbalance across targets, per-target throughput, and metadata operation rates. Lustre is the first backend. GPFS (IBM Storage Scale) and BeeGFS follow behind a backend interface. The data lands in ordinary Cacti devices, data sources, and graphs, so Thold and Maint alert on and suppress it unchanged.

> **Status: milestone 4, code complete for phase 1, not released.** Milestones 2 (foundation), 3 (Lustre observation), and 4 (alerting and release preparation) are done on `main` or in review. The plugin installs, upgrades, and uninstalls through Cacti's plugin API and refuses PHP below 8.2. A background reader on each poller reads Lustre servers over SSH through a fixed forced-command script ([node/pfs-read.sh](node/pfs-read.sh)) and caches inventory, condition, capacity, and counters with their freshness. Each filesystem becomes a Cacti device with OST and MDT data queries, five overview graphs, per-target graphs on demand, and a summary data source for Thold. Thold v1.8.2 and Maint v1.3, unchanged, alert on and suppress the summary gauges in the end-to-end run; Thold thresholds on counters are not supported with Thold 1.8.2 ([docs/alerting.md](docs/alerting.md)). Every test so far runs on fixture node output in a disposable Cacti: the plugin has not run against a real Lustre node. Still open before a release: pilots on real filesystems ([pilot plan](docs/pilot-plan.md)), the external security review ([self-review](docs/security-review.md)), and scale measurements on documented hardware ([scale](docs/research/scale.md)). Version 0.1.0 is prepared in `INFO` and [CHANGELOG.md](CHANGELOG.md) but not tagged.

## Access roles

| Realm | Access |
| --- | --- |
| Parallel Filesystem View | Existing monitoring pages. |
| Parallel Filesystem Operator | Monitoring plus the Operations page and personal triage acknowledgments. |
| Parallel Filesystem Admin | Operator access plus the existing configuration and administrative actions. |

After copying upgrade files, open the Plugins page as an administrator to register
the new realm. Assign the Operator realm explicitly under **Configuration > Users** or user groups.
Upgrades retain the existing View and Admin realm IDs and grants. Admin access
inherits Operator access, and Operator access inherits View access on each request;
this does not add stored grants to users or groups. Plugin settings also require
Parallel Filesystem Admin access in addition to Cacti's Settings permission.

Cacti device permissions still limit the rows and actions available to each user; unmapped objects require an administrator.
Credentials, configuration, mapping, deletion and other administrative changes
remain in the administrative pages. Acknowledgments last only in the current
user's session, for at most one hour and only while the same observation remains
fresh. New or changed observations invalidate them. They never mark a failed
measurement healthy or suppress alerts.

## Why

When a shared filesystem is slow, the evidence is spread across servers. Lustre keeps its counters per node: `lctl get_param` reports values "on the local node", so each object storage server (OSS) and metadata server (MDS) holds only its own targets' numbers. An operator investigating a slow filesystem needs three answers from different places:
Expand Down
2 changes: 1 addition & 1 deletion docs/PLAN.md
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ Plugin code is object-oriented wherever Cacti's plugin contract allows it. No ma
- Classes live under the `Somethingwithproof\Pfs` namespace (provisional: issue #33 names `Cacti\Pfs`; milestone 2 matches plugin_cloud until the owner decides), one class per file, loaded by a small `spl_autoload_register()` loader registered only after the PHP version check. No Composer runtime dependency.
- Settings use the `config_settings` hook. Logging uses `cacti_log()` with a `PFS` tag. Forms rely on Cacti's csrf-magic.
- Strings use the `pfs` text domain, with a `locales/` directory and POT file.
- Realms: two, "Parallel Filesystem View" and "Parallel Filesystem Admin".
- Realms: three, "Parallel Filesystem View", "Parallel Filesystem Operator" and "Parallel Filesystem Admin".

**Planned classes.** Names are illustrative; milestone 2 settles the final set.

Expand Down
102 changes: 102 additions & 0 deletions docs/i18n/ar-SA/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
<!-- Source: README.md; SHA256: 40f2c5a5e9be97e4bd2b05a9ebab2a77de51de3af1b1c21dbeb5ee7f936cdd3b -->

<!-- translations:start -->
[English](../../../README.md) | [简体中文](../zh-CN/README.md) | [हिन्दी](../hi-IN/README.md) | [Español (España)](../es-ES/README.md) | [Español (Latinoamérica)](../es-419/README.md) | [العربية](README.md)
<!-- translations:end -->

<a id="plugin_pfs"></a>
# plugin_pfs

ملحق لـCacti 1.2 يجلب صحة أنظمة الملفات المتوازية وحملها: السعة وعدم توازن الامتلاء بين الأهداف، والإنتاجية لكل هدف، ومعدلات عمليات البيانات الوصفية. Lustre أول واجهة خلفية، ويتبعه GPFS (IBM Storage Scale) وBeeGFS عبر واجهة خلفية مشتركة. تدخل البيانات أجهزة Cacti ومصادره ورسومه العادية، فينبه Thold ويكبت Maint دون تعديل.

> **الحالة: المعلم 4، شيفرة المرحلة 1 مكتملة، لم يصدر بعد.** اكتملت المعالم 2 (الأساس) و3 (ملاحظة Lustre) و4 (التنبيه والتحضير للإصدار) على `main` أو هي قيد المراجعة. يُثبّت الملحق ويُرقّى ويُزال عبر API ملحقات Cacti ويرفض PHP أقل من 8.2. يقرأ قارئ خلفي على كل مستطلع خوادم Lustre عبر SSH بسكربت أمر مفروض ثابت ([node/pfs-read.sh](../../../node/pfs-read.sh)) ويخزّن الجرد والحالة والسعة والعدادات مع حداثتها. يصبح كل نظام ملفات جهاز Cacti باستعلامي OST وMDT وخمسة رسوم عامة ورسوم أهداف عند الطلب ومصدر ملخص لـThold. ينبه Thold v1.8.2 ويكبت Maint v1.3 دون تعديل قيم gauge الملخصة في التشغيل الشامل؛ ولا تُدعم عتبات العدادات مع Thold 1.8.2 ([docs/alerting.md](docs/alerting.md)). تعمل جميع الاختبارات حتى الآن على خرج عقد اختباري في Cacti مؤقت: لم يعمل الملحق ضد عقدة Lustre حقيقية. ما يزال قبل الإصدار: تجارب أنظمة حقيقية ([خطة التجربة](../../pilot-plan.md))، ومراجعة أمنية خارجية ([المراجعة الذاتية](../../security-review.md))، وقياسات حجم على عتاد موثّق ([الحجم](../../research/scale.md)). الإصدار 0.1.0 مُعد في `INFO` و[CHANGELOG.md](../../../CHANGELOG.md) لكن دون وسم إصدار.

<a id="access-roles"></a>
## أدوار الوصول

| المجال | الوصول |
| --- | --- |
| Parallel Filesystem View | صفحات المراقبة الحالية. |
| Parallel Filesystem Operator | المراقبة إضافةً إلى صفحة العمليات وإقرارات الفرز الشخصية. |
| Parallel Filesystem Admin | وصول Operator إضافةً إلى الإعداد والإجراءات الإدارية الحالية. |

بعد نسخ ملفات الترقية، افتح صفحة الملحقات كمسؤول لتسجيل المجال الجديد. عيّن مجال Operator صراحةً ضمن **الإعداد > المستخدمون** أو مجموعات المستخدمين. تحتفظ الترقيات بمعرّفات مجالي View وAdmin ومنحهما الحاليين. يرث Admin وصول Operator، ويرث Operator وصول View في كل طلب؛ ولا يضيف ذلك منحًا مخزنة للمستخدمين أو المجموعات. تتطلب إعدادات الملحق وصول Parallel Filesystem Admin إضافةً إلى صلاحية Settings في Cacti.

تظل صلاحيات أجهزة Cacti تحدّ الصفوف والإجراءات المتاحة لكل مستخدم؛ وتتطلب الكائنات غير المربوطة مسؤولًا. تبقى بيانات الاعتماد والإعداد والربط والحذف والتغييرات الإدارية الأخرى في الصفحات الإدارية. تستمر الإقرارات في جلسة المستخدم الحالي فقط، لمدة ساعة كحد أقصى وطالما بقيت الملاحظة نفسها حديثة. تبطلها الملاحظات الجديدة أو المتغيرة. لا تجعل القياس الفاشل سليمًا ولا تكبت التنبيهات مطلقًا.

<a id="why"></a>
## الدافع

عندما يبطؤ نظام ملفات مشترك تتوزع الأدلة بين الخوادم. يحتفظ Lustre بعداداته لكل عقدة: يبلّغ `lctl get_param` قيم «العقدة المحلية»، لذا لا يملك كل خادم تخزين كائنات (OSS) وخادم بيانات وصفية (MDS) إلا أرقام أهدافه. يحتاج المشغّل إلى ثلاثة أجوبة من مواضع مختلفة:

- **هل يمتلئ هدف بينما غيره فارغ؟** يغيّر عدم التوازن موضع الملفات الجديدة ووقت نفاد مساحة هدف واحد.
- **ما الأهداف أو العمليات المشغولة؟** تبيّن عدادات البايت لكل هدف وعمليات كل MDT هل يرتبط الحمل بالبيانات أو بالبيانات الوصفية.
- **هل المراقبة نفسها حديثة؟** لا يطمئن الرسم المسطح إلا إذا استطاع الملحق رؤية الخوادم.

يرسم Cacti المضيفين ويضع عتبات القيم بـThold، ولا تملك مؤسسة Cacti على GitHub مستودعًا لمراقبة Lustre أو GPFS أو BeeGFS (بحث بتاريخ 2026-11-14). يسد الملحق الفجوة بقراءة قيم مسموحة للقراءة فقط من عقد التخزين، وتمثيل كل نظام كجهاز Cacti تكون أهدافه فهارس استعلام بيانات. يعيد استخدام رسوم Cacti وصلاحياته ومجمّعاته البعيدة وThold وMaint بدل بناء نسخ موازية.

<a id="planned-scope"></a>
## النطاق المخطط

| المرحلة | النطاق | المعالم |
|---|---|---|
| 0، البحث | مصفوفة الإصدارات وقرار وصول العقد وتأكيد سلوك المشاريع الأصلية وسلوك العدادات وتجاوز الفشل وقياس الحجم | [M1](https://github.com/somethingwithproof/plugin_pfs/milestone/1) |
| 1، الملاحظة | جرد Lustre وسعته وامتلاؤه وإنتاجية OST ومعدلات MDT والرسوم وتنبيه Thold وكبت Maint وصفحة الصحة | [M2](https://github.com/somethingwithproof/plugin_pfs/milestone/2)، [M3](https://github.com/somethingwithproof/plugin_pfs/milestone/3)، [M4](https://github.com/somethingwithproof/plugin_pfs/milestone/4) |
| 2، التعمق | مجمّعات Cacti البعيدة وعروض على مستوى المهمة والعميل ضمن عدد كائنات محدود | [M5](https://github.com/somethingwithproof/plugin_pfs/milestone/5) |
| 3، الواجهات الخلفية | GPFS (IBM Storage Scale) وBeeGFS | [M6](https://github.com/somethingwithproof/plugin_pfs/milestone/6) |

خارج النطاق: أي كتابة أو مسح أو إعادة ضبط أو ضبط أداء لعقدة أو نظام ملفات؛ محرك تنبيه خاص؛ خدمة خلفية أو بروتوكول مخصص؛ مصادر بيانات لكل مهمة؛ تغييرات في نواة Cacti أو Thold أو Maint.

<a id="compatibility-targets"></a>
## أهداف التوافق

| المكوّن | الهدف |
|---|---|
| Cacti | 1.2.31 أو أحدث، دون ترقيعات للنواة |
| PHP | 8.2 أو أحدث؛ يبقى `setup.php` قابلًا للتحليل على 8.0 كي يُرفض وقت التشغيل غير المدعوم بدل تعطيل الواجهة |
| Lustre | تُحدد خطوط الإصدارات في المعلم 1؛ المصدر والأدلة المفحوصة حتى الآن عند 2.17.0 |
| GPFS وBeeGFS | المرحلة 3؛ الإصدارات يحددها البحث |
| Thold وMaint | لا تعديل مطلوب |

<a id="design"></a>
## التصميم

- [docs/PLAN.md](../../PLAN.md) الخطة الكاملة: المعمارية والحقائق المعتمدة من المشاريع الأصلية (بمصادرها وما لم يتحقق بعد) ودلالات العدادات ونموذج الحالة وحدود الأمان وحسابات الأداء والاختبار والمخاطر.
- يغطي [docs/operator-guide.md](docs/operator-guide.md) التثبيت والرسوم والقيم والترقية والنسخ والاستعادة والإزالة واستكشاف الأخطاء؛ ويغطي [docs/alerting.md](docs/alerting.md) Thold وMaint.
- يصف [docs/node-setup.md](docs/node-setup.md) إعداد خادم Lustre ومستطلع للقارئ.
- يحوي [docs/decisions/](../../decisions) سجلات القرارات المعمارية المتخذة.
- يربط [docs/REQUIREMENTS.md](../../REQUIREMENTS.md) كل معرّف متطلب بقضيته.

```mermaid
flowchart LR
N[Lustre servers: OSS, MDS] -->|fixed read-only request| S[Node source on the Cacti poller]
S --> R[Reader]
R --> C[(Observation cache)]
C --> SS[Script server input]
SS -->|poller_output| T[Thold and Maint]
SS --> RRD[(Cacti RRDs)]
RRD --> G[Cacti graphs and permissions]
```

<a id="how-work-is-tracked"></a>
## كيفية تتبع العمل

- تتبع **المعالم** معالم الخطة. لكل منها قضية ملحمية تسرد قضاياها الفرعية وأدلة الإكمال.
- تُصنّف **القضايا** بالوسوم: `type: requirement` و`type: research` و`type: decision` و`type: epic`. تذكر قضايا المتطلبات متطلبات مرقمة قابلة للاختبار (`REQ-AREA-NNN`) ومعايير قبول.
- تحمل **الوسوم** أيضًا `area:` و`phase:` و`priority:` و`status:`. راجع [CONTRIBUTING.md](../../../CONTRIBUTING.md#labels).
- تعرض [لوحة المشروع](https://github.com/users/somethingwithproof/projects/11) جميع القضايا عبر المعالم.

<a id="contributing"></a>
## المساهمة

اقرأ [CONTRIBUTING.md](../../../CONTRIBUTING.md). تتطلب الالتزامات توقيع DCO. نقاش التصميم في القضايا؛ تحمل القرارات المفتوحة الوسم `type: decision`.

<a id="security"></a>
## الأمان

أبلغ عن الثغرات بصورة خاصة؛ راجع [SECURITY.md](../../../SECURITY.md).

<a id="license"></a>
## الترخيص

رخصة GNU العمومية العامة v2.0، وهي رخصة Cacti وملحقاته نفسها. راجع [LICENSE](../../../LICENSE).
Loading
Loading