BOSH operations such as BOSH upload-release, BOSH ssh, and other commands that touch the database run slowly.
BOSH director.stdout.log shows slow database queries such as:
[2019-04-17T18:14:29.452419 #27] [] DEBUG -- Director: (699.990473s) (conn: 47092766912780) SELECT * FROM `tasks` WHERE (state NOT IN ('processing', 'queued') and type='delete_deployment') ORDER BY `id` DESC LIMIT 2 OFFSET 2000
The BOSH database contains many tasks as indicated by the number outputted when running bosh tasks
. Typically this becomes a problem after reaching several million tasks.