alloydb-basics
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAlloyDB Basics
AlloyDB 基础
AlloyDB for PostgreSQL is a managed, PostgreSQL-compatible database service
designed for enterprise-grade performance and availability. It utilizes a
disaggregated compute and storage architecture to scale resources independently.
It also provides AlloyDB AI, a collection of features that includes AI-powered
search (vector, hybrid search, and AI functions), natural language capabilities,
conversational analytics, and inference features like forecasting and model
endpoint management to help developers build AI apps faster.
AlloyDB for PostgreSQL 是一款托管式、兼容PostgreSQL的数据库服务,专为企业级性能和可用性设计。它采用解耦的计算与存储架构,可独立扩展资源。同时,它还提供AlloyDB AI功能集,包括AI驱动的搜索(向量搜索、混合搜索及AI函数)、自然语言处理能力、对话式分析,以及预测、模型端点管理等推理功能,帮助开发者更快构建AI应用。
Quick Start
快速入门
-
Enable the AlloyDB API:bash
gcloud services enable alloydb.googleapis.com -
Create a Cluster:bash
gcloud alloydb clusters create my-cluster --region=us-central1 \ --password=my-password --network=my-vpcNote: For production, we recommend using IAM database authentication instead of passwords. If passwords must be used, use secure secret management (e.g., Secret Manager) instead of passing passwords in cleartext. -
Create a Primary Instance:bash
gcloud alloydb instances create my-primary --cluster=my-cluster \ --region=us-central1 --instance-type=PRIMARY --cpu-count=2
-
启用AlloyDB API:bash
gcloud services enable alloydb.googleapis.com -
创建集群:bash
gcloud alloydb clusters create my-cluster --region=us-central1 \ --password=my-password --network=my-vpc注意:生产环境中,我们建议使用IAM数据库认证而非密码。如果必须使用密码,请使用安全的密钥管理服务(如Secret Manager),而非明文传递密码。 -
创建主实例:bash
gcloud alloydb instances create my-primary --cluster=my-cluster \ --region=us-central1 --instance-type=PRIMARY --cpu-count=2
Reference Directory
参考目录
-
Core Concepts: Architecture, disaggregated storage, and performance features.
-
CLI Usage: Essentialcommands for cluster and instance management.
gcloud alloydb -
Client Libraries & Connectors: Connecting to AlloyDB using Python, Java, Node.js, and Go.
-
MCP Usage: Using the AlloyDB remote MCP server and Gemini CLI extension.
-
Infrastructure as Code: Terraform configuration and deployment examples.
-
IAM & Security: Predefined roles, service agents, and database authentication.
If you need product information not found in these references, use the
Developer Knowledge MCP server tool.
search_documents-
核心概念:架构、解耦存储及性能特性。
-
CLI 使用:用于集群和实例管理的核心命令。
gcloud alloydb -
客户端库与连接器:使用Python、Java、Node.js和Go连接AlloyDB。
-
MCP 使用:使用AlloyDB远程MCP服务器和Gemini CLI扩展。
-
基础设施即代码:Terraform配置和部署示例。
-
IAM 与安全:预定义角色、服务代理及数据库认证。
如果在这些参考文档中找不到所需的产品信息,请使用开发者知识MCP服务器的工具。
search_documents