Skip to content

New index backfill schema change causes a spike in latency #34744

@awoods187

Description

@awoods187

Describe the problem

New index backfill schema change causes a spike in latency when running on TPC-C 1K.

image

image

To Reproduce

To Reproduce
Setup TPC-C 1K like normal.

Set flag for new schema change implementation:
Roachprod sql $CLUSTER:1
SET CLUSTER SETTING schemachanger.bulk_index_backfill.enabled = true

Run for 6 hours.
roachprod run $CLUSTER:4 "./workload run tpcc --ramp=5m --warehouses=2000 --duration=6h --split --scatter {pgurl:1-3}"

After five minutes, in another shell, change the zone config ttl to 10 minutes
Roachprod sql $CLUSTER:1
ALTER RANGE default CONFIGURE ZONE USING gc.ttlseconds = 600;

Then create an index or non-unique on any column:
Roachprod sql $CLUSTER:1
use tpcc
CREATE INDEX ON district (d_name, d_w_id, d_zip)

Expected behavior
Index < 10 minutes
Look at the front page on admin ui metrics SQL QPS and make sure it never went to less than 80% pre index

Environment:
v2.2.0-alpha.20181217-1144-ge3e4f96

Jira issue: CRDB-4631

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions