분류 전체보기(313)
-
21. Create and Manage AlloyDB Instances: Challenge Lab
Task 1. Create a cluster and instancegcloud beta alloydb clusters create lab-cluster \ --password=Change3Me \ --network=peering-network \ --region=us-central1 \ --project=qwiklabs-gcp-00-9180b9934581cluster 생성 된 것 확인 gcloud beta alloydb instances create lab-instance \ --instance-type=PRIMARY \ --cpu-count=2 \ --region=us-central1 \ --cluster=lab-cluster \ --project=..
2024.12.03 -
20. Accelerating Analytical Queries using the AlloyDB Columnar Engine
Task 1. Create Baseline Dataset for Testing the Columnar Engine export ALLOYDB=ALLOYDB_ADDRESSecho $ALLOYDB > alloydbip.txt pgbench -h $ALLOYDB -U postgres -i -s 500 -F 90 -n postgres psql -h $ALLOYDB -U postgresselect count (*) from pgbench_accounts; Task 2. Run a Baseline Test\timing on SELECT aid, bid, abalance FROM pgbench_accounts WHERE bid OR abalance > 100 LIMIT 20; EXPLAIN (ANALY..
2024.12.02 -
19. Administering an AlloyDB Database
Task 1. Examine a Database Flag데이터베이스 플래그 검사클릭 1.To add a database flag to your instance, expand Advanced Configuration Options and click on Add a Database Flag. 2.Browse the list of avaiable flags (inside Choose a flag) to get a sense of the supported options. You will not add an additional flag as part of this lab.3.Click Cancel twice to exit the Edit Primary instance screen. Task 2. Setup a D..
2024.11.27 -
18. Migrating to AlloyDB from PostgreSQL Using Database Migration Service
Task 1. Verify Data in the Source Instance for migration sudo -u postgres psql\dt select count (*) as countries_row_count from countries;select count (*) as departments_row_count from departments;select count (*) as employees_row_count from employees;select count (*) as jobs_row_count from jobs;select count (*) as locations_row_count from locations;select count (*) as regions_row_count from re..
2024.11.26 -
17. AlloyDB - Database Fundamentals
PostgreSQL 인스턴스와 데이터베이스용 AlloyDB 생성 및 관리 test Task 1. Create a cluster and instance Task 2. Create tables and insert data in your databaseexport ALLOYDB=ALLOYDB_ADDRESSecho $ALLOYDB > alloydbip.txtpsql -h $ALLOYDB -U postgres CREATE TABLE regions ( region_id bigint NOT NULL, region_name varchar(25)) ;ALTER TABLE regions ADD PRIMARY KEY (region_id); INSERT INTO regions VALUES ( 1, 'Europe'..
2024.11.25 -
16. Connect an App to a Cloud SQL for PostgreSQL Instance
Cloud SQL for PostgreSQL 인스턴스에 앱 연결(애플리케이션이 데이터베이스에 쓰고 읽을 수 있는지 확인) Task 1. Initialize APIs and create a Cloud IAM service account1.In Cloud Shell, run the following command to enable the Artifact Registry API:gcloud services enable artifactregistry.googleapis.com Create a Service Account for Cloud SQL1.In Cloud Shell, create a Service Account and bind it to the Cloud SQL admin role in the lab p..
2024.11.24