惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

人人都是产品经理
人人都是产品经理
有赞技术团队
有赞技术团队
WordPress大学
WordPress大学
月光博客
月光博客
T
Tailwind CSS Blog
阮一峰的网络日志
阮一峰的网络日志
小众软件
小众软件
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Last Week in AI
Last Week in AI
大猫的无限游戏
大猫的无限游戏
S
SegmentFault 最新的问题
罗磊的独立博客
Jina AI
Jina AI
酷 壳 – CoolShell
酷 壳 – CoolShell
宝玉的分享
宝玉的分享
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 三生石上(FineUI控件)
量子位
雷峰网
雷峰网
Apple Machine Learning Research
Apple Machine Learning Research
美团技术团队
博客园 - 聂微东
V
V2EX

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Verifying That a GBase 8a Resource Plan Is Active and Enf...
Michael · 2026-05-15 · via DEV Community

Michael

After activating a resource plan on a virtual cluster, a few quick checks will confirm it's working as expected and restricting CPU, memory, and concurrency for the target users in a gbase database.

1. Confirm the Plan Is Active

SELECT * FROM gbase.resource_config;

Enter fullscreen mode Exit fullscreen mode

The activated_plan column for the target VC should show the plan name you just activated (e.g., plan_day).

2. Check User – Consumer Group Mapping

SELECT * FROM gbase.consumer_group_user;

Enter fullscreen mode Exit fullscreen mode

The target user (e.g., UserLoad) must belong to the expected consumer group (e.g., group_load).

3. Check Group – Resource Pool Binding

SELECT * FROM gbase.resource_plan_directive WHERE plan_name = 'plan_day';

Enter fullscreen mode Exit fullscreen mode

You should see a directive that maps the consumer group to the correct resource pool (e.g., low_pool).

4. Monitor Real‑Time Pool Usage (Core Validation)

SHOW RESOURCE POOL USAGE ON COORDINATORS 
WHERE resource_pool_name = 'low_pool' AND vc_name = 'vc1';

Enter fullscreen mode Exit fullscreen mode

Key metrics:

  • cpu_usage_percent – should not exceed the pool’s defined percentage (e.g., 20%).
  • mem_usage_mb – must stay below max_memory.
  • active_task – must not exceed max_activetask.

5. Verify That Tasks Land in the Right Pool

SELECT * FROM information_schema.processlist 
WHERE resource_pool_name = 'low_pool' AND vc = 'vc1';

Enter fullscreen mode Exit fullscreen mode

When the target user runs a query, the RESOURCE_POOL_NAME column should show low_pool.

6. Look for Enforcement Events

SHOW RESOURCE POOL EVENTS WHERE resource_pool_name = 'low_pool' AND vc_name='vc1';

Enter fullscreen mode Exit fullscreen mode

If resources are oversubscribed, you'll see WAITING or REJECTED events — clear evidence the plan is enforcing limits.

7. Proactive Testing

  • Concurrency limit test: Set max_activetask=2 and launch 3 queries simultaneously. Use SHOW RESOURCE POOL USAGE to confirm active_task never exceeds 2, and the extra task stays in a waiting state.
  • CPU weight test: Run heavy queries from two users assigned to different pools (e.g., 20% vs. 80%) and watch the CPU usage ratio approach the defined weights.

Verification Checklist

Dimension Command / Method Expected Outcome
Plan activation SELECT * FROM gbase.resource_config activated_plan shows the correct plan
User‑group mapping SELECT * FROM gbase.consumer_group_user User belongs to the intended group
Group‑pool binding SELECT * FROM gbase.resource_plan_directive Directive links group to target pool
Pool usage SHOW RESOURCE POOL USAGE ... CPU/memory/task counts within limits
Task routing SELECT * FROM processlist ... Task’s RESOURCE_POOL_NAME is correct
Enforcement events SHOW RESOURCE POOL EVENTS ... Waiting/rejected events appear when limits are hit

Once all checks pass, you can be confident that the resource plan is fully active and enforcing the desired fine‑grained control in your gbase database.