Resource plans in GBase 8a (e.g., plan_day , plan_night ) are not directly bound to time and do not support cron expressions . Their automated switching relies entirely on external schedulers — such as Linux crontab — that execute ACTIVE / DEACTIVE commands at the right moment.
Core Mechanism: External Trigger, Internal Execution
A resource plan is just a "policy container" — it takes effect only when activated ( ACTIVE ). GBase 8a has no built‑in timer, so the full automation chain is:
External scheduler (crontab, etc.) fires at the scheduled time.
A script connects to the database and runs the ACTIVE / DEACTIVE RESOURCE PLAN command.
The plan swap takes effect.
Manual Switching Commands
-- Activate the daytime plan ACTIVE RESOURCE PLAN plan_day ON VC vc1 ;
-- Deactivate the current plan DEACTIVE RESOURCE PLAN ON VC vc1 ;
-- Activate the nighttime plan ACTIVE RESOURCE PLAN plan_night ON VC vc1 ;
Enter fullscreen mode
Exit fullscreen mode
Automating with Crontab
Create a switching script (e.g.,…