[PR #239] [MERGED] Add CPU limit to node #651

Closed
opened 2026-02-04 18:40:11 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/pelican-dev/panel/pull/239
Author: @Boy132
Created: 5/16/2024
Status: Merged
Merged: 5/22/2024
Merged by: @lancepioch

Base: mainHead: feature/node-cpu


📝 Commits (10+)

📊 Changes

18 files changed (+190 additions, -23 deletions)

View changed files

📝 app/Console/Commands/Node/MakeNodeCommand.php (+4 -0)
📝 app/Filament/Resources/NodeResource/Pages/CreateNode.php (+39 -0)
📝 app/Filament/Resources/NodeResource/Pages/EditNode.php (+41 -0)
📝 app/Filament/Resources/NodeResource/Pages/ListNodes.php (+6 -0)
📝 app/Http/Controllers/Api/Application/Nodes/NodeController.php (+1 -1)
📝 app/Http/Controllers/Api/Application/Nodes/NodeDeploymentController.php (+1 -0)
📝 app/Http/Requests/Api/Application/Nodes/GetDeployableNodesRequest.php (+1 -0)
📝 app/Http/Requests/Api/Application/Nodes/StoreNodeRequest.php (+2 -0)
📝 app/Models/Node.php (+13 -3)
📝 app/Services/Deployment/FindViableNodesService.php (+25 -9)
📝 app/Services/Servers/ServerCreationService.php (+2 -1)
📝 app/Services/Servers/TransferServerService.php (+3 -3)
📝 app/Transformers/Api/Application/NodeTransformer.php (+2 -1)
📝 database/Factories/NodeFactory.php (+2 -0)
database/migrations/2024_05_16_091207_add_cpu_columns_to_nodes_table.php (+30 -0)
📝 database/schema/mysql-schema.sql (+3 -0)
📝 lang/en/commands.php (+3 -1)
📝 tests/Integration/Services/Deployment/FindViableNodesServiceTest.php (+12 -4)

📄 Description

Closes #233


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/pelican-dev/panel/pull/239 **Author:** [@Boy132](https://github.com/Boy132) **Created:** 5/16/2024 **Status:** ✅ Merged **Merged:** 5/22/2024 **Merged by:** [@lancepioch](https://github.com/lancepioch) **Base:** `main` ← **Head:** `feature/node-cpu` --- ### 📝 Commits (10+) - [`463d543`](https://github.com/pelican-dev/panel/commit/463d543e27babc33eee2208e0c4004e20ec45ab1) add node cpu limit to backend - [`88c92e3`](https://github.com/pelican-dev/panel/commit/88c92e330aba304eaa51ad600361d0186b4e6db6) update makenodecommand - [`715613a`](https://github.com/pelican-dev/panel/commit/715613ad9423dc65e5f9be3ce6a602dbc2def2d9) add node cpu limit to frontend - [`93485ab`](https://github.com/pelican-dev/panel/commit/93485abe569770f0d68fee7fe4322aec255a9a28) add migration and update mysql schema - [`a077c6e`](https://github.com/pelican-dev/panel/commit/a077c6e2aca68a8db55d684cc09a4aa063a13c43) run pint - [`5cc6643`](https://github.com/pelican-dev/panel/commit/5cc6643a1fed6de430c5ad64a966b1e5866c81ad) fix typo in mysql schema - [`c2e3c8b`](https://github.com/pelican-dev/panel/commit/c2e3c8b73d0d2bc131e654903921e9d5b3bbe765) forgot this assert - [`1cc7124`](https://github.com/pelican-dev/panel/commit/1cc71249ad9be7a3941d2d7ce8b1e92c930bba6e) forgot to setCpu here - [`975dbd2`](https://github.com/pelican-dev/panel/commit/975dbd229d0eb19616d855765faac1ce0b14fae7) run pint - [`30ca981`](https://github.com/pelican-dev/panel/commit/30ca98175a920340cb9f1d7c14b76769f2db566d) adjust migration ### 📊 Changes **18 files changed** (+190 additions, -23 deletions) <details> <summary>View changed files</summary> 📝 `app/Console/Commands/Node/MakeNodeCommand.php` (+4 -0) 📝 `app/Filament/Resources/NodeResource/Pages/CreateNode.php` (+39 -0) 📝 `app/Filament/Resources/NodeResource/Pages/EditNode.php` (+41 -0) 📝 `app/Filament/Resources/NodeResource/Pages/ListNodes.php` (+6 -0) 📝 `app/Http/Controllers/Api/Application/Nodes/NodeController.php` (+1 -1) 📝 `app/Http/Controllers/Api/Application/Nodes/NodeDeploymentController.php` (+1 -0) 📝 `app/Http/Requests/Api/Application/Nodes/GetDeployableNodesRequest.php` (+1 -0) 📝 `app/Http/Requests/Api/Application/Nodes/StoreNodeRequest.php` (+2 -0) 📝 `app/Models/Node.php` (+13 -3) 📝 `app/Services/Deployment/FindViableNodesService.php` (+25 -9) 📝 `app/Services/Servers/ServerCreationService.php` (+2 -1) 📝 `app/Services/Servers/TransferServerService.php` (+3 -3) 📝 `app/Transformers/Api/Application/NodeTransformer.php` (+2 -1) 📝 `database/Factories/NodeFactory.php` (+2 -0) ➕ `database/migrations/2024_05_16_091207_add_cpu_columns_to_nodes_table.php` (+30 -0) 📝 `database/schema/mysql-schema.sql` (+3 -0) 📝 `lang/en/commands.php` (+3 -1) 📝 `tests/Integration/Services/Deployment/FindViableNodesServiceTest.php` (+12 -4) </details> ### 📄 Description Closes #233 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-04 18:40:11 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel#651