Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page

Show all

Redistribution Parameters

Updated on 2023-10-23 GMT+08:00

The following functions are system functions used by gs_redis during redistribution. Do not call them unless absolutely necessary.

  • pg_get_redis_rel_end_ctid(text, name, int, int)
  • pg_get_redis_rel_start_ctid(text, name, int, int)
  • pg_enable_redis_proc_cancelable()
  • pg_disable_redis_proc_cancelable()
  • pg_tupleid_get_blocknum(tid)
  • pg_tupleid_get_offset(tid)
  • pg_tupleid_get_ctid_to_bigint (ctid)

The following functions and OIDs are all for time series tables.

  • redis_ts_table(oid)

Description: Moves data from the old table (for example, redis_old_cpu) to the new table (redis_new_cpu) from the last partition of the timeline, deletes the partition if the partition of redis_old_cpu is empty, deletes the old table when only one partition is left, and restores the table to the original CPU table. This function is called by the following job and does not need to be manually called.

Return type: void

Table 1 redis_ts_table parameter description

Parameter

Type

Description

Mandatory or Not

old_oid

oid

ID of redis_old_cpu.

Yes

  • cancel_unuse_redis()

Description: Cancels redistribution of a time series table.

Return value: void

  • submit_redis_task(oid, interval)

Description: Calls the redis_ts_table function. Only one job can be called for a table. For modification, stop the job and call it again.

Parameter: The CPU table is used as an example. For details, see Table 2.

Return type: void

Table 2 submit_redis_task parameter description

Parameter

Type

Description

Mandatory or Not

old_oid

oid

ID of redis_old_cpu.

Yes

schedule_interval

interval

This parameter is used to calculate the input value of interval_time in dbe_task.submit, indicating the interval for executing the job.

No

  • submit_all_redis_task(interval)

Description: Calls the submit_redis_task function for all tables that are not redistributed in the currently connected database.

Return type: void

Table 3 Parameter description

Parameter

Type

Description

Mandatory or Not

schedule_interval

interval

This parameter has the same meaning as the input parameter schedule_interval of submit_redis_task.

No

  • cancel_redis_task(oid)

Description: Stops the job for transferring a table after the table has been transferred.

Parameter: OID of redis_old_cpu (using the cpu table as an example).

Return type: void

  • cancel_all_redis_task()

Description: Stops all the jobs that are being transferred for all the time series tables connected to the database.

Return type: void

  • submit_cancel_redis_task(interval)

Description: Creates jobs for all time series tables connected to the database and calls the cancel_redis_task function.

Parameter: interval for calling the job. The default value is 1h.

Return type: void

  • flush_depend_rule(oid)

Description: Take the CPU table as an example. If a user directly executes some SQL statements on the redis_old_cpu and redis_new_cpu tables, the original rules cannot work properly. In this case, you can use this function to recreate related rules. The statements for creating rules are in the pg_rules system catalog, and you are advised to perform only allowed operations. If you directly run SQL statements on redis_new_cpu and redis_old_cpu, unknown errors may occur.

Parameter: OID of the CPU table.

Return type: void

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback