Pivotal Knowledge Base

Follow

Quota Enforcer Leaving Old Processes Running After Upgrade

Environment

Product Version
Pivotal Cloud Foundry® (PCF)  Any
Pivotal MySQL 1.7.11+

Symptoms

There is a known issue of old quota enforcer processes remaining after an upgrade to version 1.7.11 or higher. The issue is that after the upgrade, there can be leftover processes of the previous quota enforcer still running on the cf-mysql-broker instance.

Example (output of a `ps aux |grep quota-enforcer` on an affected broker):

root      4335  0.0  0.0 241512  7200 ?        S<l  Aug15   0:03 /var/vcap/packages/quota-enforcer/bin/cf-mysql-quota-enforcer -configPath=/var/vcap/jobs/cf-mysql-broker/bin/quota_enforcer_config.yml
root      4413  0.0  0.1 175976  9264 ?        S<l  Aug15   0:03 /var/vcap/packages/quota-enforcer/bin/cf-mysql-quota-enforcer -configPath=/var/vcap/jobs/cf-mysql-broker/bin/quota_enforcer_config.yml
root      4496  0.0  0.0 175976  7172 ?        S<l  Aug15   0:03 /var/vcap/packages/quota-enforcer/bin/cf-mysql-quota-enforcer -configPath=/var/vcap/jobs/cf-mysql-broker/bin/quota_enforcer_config.yml
root      4559  0.0  0.0 175976  7164 ?        S<l  Aug15   0:03 /var/vcap/packages/quota-enforcer/bin/cf-mysql-quota-enforcer -configPath=/var/vcap/jobs/cf-mysql-broker/bin/quota_enforcer_config.yml
root      4623  0.0  0.1 175976  9200 ?        S<l  Aug15   0:03 /var/vcap/packages/quota-enforcer/bin/cf-mysql-quota-enforcer -configPath=/var/vcap/jobs/cf-mysql-broker/bin/quota_enforcer_config.yml
root      4686  0.0  0.0 175976  7292 ?        S<l  Aug15   0:03 /var/vcap/packages/quota-enforcer/bin/cf-mysql-quota-enforcer -configPath=/var/vcap/jobs/cf-mysql-broker/bin/quota_enforcer_config.yml

Cause

The cause of these left-over processes is due to a bug in the way that the process id files are handled between versions of an upgrade.

Resolution

Recreate the broken VM.

bosh recreate cf-mysql-broker/0

This will kill all of the previous quota enforcer processes and only spawn the correct, current process.

Comments

Powered by Zendesk