DEV Community

Michael
Michael

Posted on

Reading Rebalance Stage Timings from express.log in GBase 8a

Rebalance is how the China-domestically developed GBase 8a MPP database from GBASE handles expansion and shrink operations. The cluster layer records each run in express.log, including how long every stage took. The original post includes a screenshot of a sample log; the stage names and their meanings are listed below.

Rebalance stages

Time unit: seconds.

Stage Meaning
REB_MAKE_POLICY Time to generate the policy
REB_EXEC_POLIC Time to execute the policy
REB_CREATE_TABLE Time to create the intermediate table
REB_CREATE_SLICE Time to create table slices
REB_SIS Time to run select into server
REB_GC_SYNC Time to run gc_sync_client for data sync
REB_RENAME Time to rename the intermediate table to the target table
REB_CHANGE_DIST_ID Time to run change distribution id
REB_DELETE_SLICE Time to delete table slices
REB_GC_LOCK Time to acquire the cluster lock
REB_UPDATE_STATUE Time to update the process table
RER_SIS_COVMIT SIS commit time
REB_SIS_ROLLBACK SIS rollback time
REB_UPDATE_FAILOVER_INFO Update Failover information
REB_DATA_MOVE Data movement

Stage names are copied exactly as they appear in the log, including their original spellings.

Different table types and distribution strategies produce different stage sequences, so focus on the few longest stages: a large table usually spends most of its time on data movement (REB_DATA_MOVE), while a table with many columns and partitions but little data can spend longer on table creation. A table taking no more than 10 seconds can be ignored.

Going forward, logging those timings on a gbase cluster makes it much easier to tell a slow data migration from slow metadata work in the database, and a gbase operator can compare the numbers directly against a healthy run instead of guessing where the rebalance stalled.

Top comments (0)