Plan Compute Cap Exceeded
plan-compute-cap-exceeded · 402
التغيير كان سيجعل RAM أو vCPUs مستيقظة في الوقت نفسه أكثر مما تسمح به خطة الحساب، فلم تغير الـ API شيئا.
كل الصفحات
الـ unit إما ram-gb وإما vcpu، و capValue حد الخطة، و currentTotal ما هو مستيقظ الآن، و projectedTotal ما يحتاجه التغيير. والحد لا يعد إلا ما هو مستيقظ، ولا يوقف إلا الزيادة: ما يعمل يبقى يعمل.
إضافة إلى الحقول التي في كل خطأ، يضيف هذا النوع planKey، unit، capValue، currentTotal و projectedTotal.
- أول deploy، أو تشغيل، أو إيقاظ، أو خدمة جديدة، كان سيشغل موارد فوق الحد.
- حجم أكبر أو نسخ أكثر كانت ستزيد ما هو مستيقظ فوق الحد.
- أفرغ مساحة أولا: اجعل خدمة تنام، أو أوقف واحدة، أو اختر حجما أصغر. كل واحد منها يفرغ حصته فورا.
- أو انتقل إلى خطة حدها أعلى:
ghaym cloud billing set-plan --plan <key>. وتغيير الخطة قرار المستخدم. - أخبر المستخدم بالأرقام، من
capValueوcurrentTotalوprojectedTotal.
json
{
"type": "plan-compute-cap-exceeded",
"title": "Plan Compute Cap Exceeded",
"detail": "The solo plan allows 8 GB of RAM across everything awake at once; this change would need 9, and 7 is awake already. Put a service to sleep, stop one, choose a smaller size, or move to a plan with more headroom with PUT /v1/billing/account/plan.",
"planKey": "solo",
"unit": "ram-gb",
"capValue": 8,
"currentTotal": 7,
"projectedTotal": 9,
"requestId": "req-1785231000000-4f7b2c9ae",
"timestamp": "2026-07-28T09:30:00.000Z",
"path": "/v1/services/0199e0a3-6f21-7c4a-9d18-2b7c5f3ad401/deployments",
"method": "POST",
"instance": "POST /v1/services/0199e0a3-6f21-7c4a-9d18-2b7c5f3ad401/deployments",
"status": 402,
"docs": "https://ghaym.me/docs/errors/plan-compute-cap-exceeded"
}