spanner-provisioning

Provision Spanner instances with edition and capacity rules per environment.

129|43|Updated Nov 17, 2023
One-click install
npx skills add https://github.com/GoogleCloudPlatform/cloud-solutions --skill spanner-provisioning
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spanner-provisioning
Source: https://github.com/GoogleCloudPlatform/cloud-solutions/tree/main/projects/agentic-coding-with-data-agent-kit-demo/support/.gemini/skills/spanner-provisioning
Command: npx skills add https://github.com/GoogleCloudPlatform/cloud-solutions --skill spanner-provisioning

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provision Spanner instances with correct edition and capacity based on workload and environment.

Core Features & Use Cases

  • Edition selection rules: Enterprise vs Standard based on schema features such as graph or vector index usage.
  • Compute capacity rules: dev/test require a minimum of 100 processing units; prod starts at 1000 processing units, with autoscaling guidance as needed.
  • Idempotency and schema application: verify if key objects exist (e.g., via INFORMATION_SCHEMA.TABLES) before applying DDL to avoid duplicates; use ALTER for updates; full reset requires drop and recreate.

Quick Start

Choose the Spanner edition and compute capacity for your environment, and verify existing schema before applying DDL.

Frequently Asked Questions about spanner-provisioning

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose the right Spanner edition and compute capacity for my workload?

Spanner edition selection depends on schema features like graph or vector index usage, requiring Enterprise. Compute capacity requires 100 processing units minimum for dev/test, while production starts at 1000 processing units with autoscaling guidance.

How do I apply Spanner DDL idempotently to avoid duplicate schema objects?

To apply Spanner DDL idempotently, verify if key objects exist by querying INFORMATION_SCHEMA.TABLES before applying DDL. Use ALTER statements for updates to existing schema objects, and drop and recreate objects only for a full schema reset.

What is the minimum Spanner compute capacity required for a development environment?

The minimum Spanner compute capacity for development and testing environments is 100 processing units. Production environments require a higher starting capacity of 1000 processing units, with additional autoscaling guidance available as needed.

When should I select Spanner Enterprise edition instead of Standard?

Select Spanner Enterprise edition instead of Standard when your database schema requires advanced features such as graph or vector index usage. Standard edition is suitable for workloads that do not depend on these specific schema capabilities.

Does Spanner provisioning support updating existing database schemas without downtime?

Spanner provisioning supports schema updates by using ALTER statements to modify existing objects. Before applying any DDL, the process verifies existing schema objects through INFORMATION_SCHEMA queries to ensure safe, idempotent updates without duplicates.