cloudfoundry / pxc-release

BOSH release of Percona Xtradb Cluster
Apache License 2.0
30 stars 22 forks source link

packages: allow parallel compilation of server and xtrabackup packages #41

Closed abg closed 1 year ago

abg commented 1 year ago

Previously percona-xtradb-cluster-8.0 depended on the percona-xtrabackup-* packages explicitly forcing serial compilation of xtrabackup and percona-xtradb-cluster.

With this change, percona-xtradb-cluster-8.0 instead relies on a symlink to percona-xtrabackup-{2.4,8.0} and can compile in parallel to the xtrabackup packages.

The "pxc-mysql" job already depended directly on percona-xtrabackup-8.0 and 2.4 so this is only a small optimization to speed up compilation and reduce the compiled bosh release by ~45MiB. In practice we expect this to halve compilation time when > 3 bosh compilation workers are available.

Feature or Bug Description

This change helps speed up pxc-release compilation in common deployment scenarios.

Motivation

Tell us about the problem you are facing, with context, that this PR solves.

Compiling pxc-release from a new stemcell currently takes between 70 and 90 minutes on typically environments. In some cases much more. This change reduces that roughly by half by allowing Percona XtraDB Cluster to compilation in parallel to the Percona XtraBackup packages .