Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Large TJ taggings consume all database space #19

Open
michael-gratton opened this issue Feb 15, 2022 · 0 comments
Open

Large TJ taggings consume all database space #19

michael-gratton opened this issue Feb 15, 2022 · 0 comments

Comments

@michael-gratton
Copy link
Contributor

We just had an instance of a TJ syncid tag being applied to ~700k members, and this caused the engine to go off and consume all database space.

Symptoms:

  • "WARN: ActiveRecord::StatementInvalid: PG::DiskFull: ERROR: could not write to file "base/pgsql_tmp/pgsql_tmp24022.1": No space left on device" in both Heroku logs and Id sync UI
  • Number of open Sidekiq connections to the database even after worker dyno shut down
  • Large number of tmp_16_RANDOM_CHARS tables in main identity schema, each being quite large

Stopping the worker dynos, killing Sidekiq db connections and deleting the tmp_... tables cleared up the DB space. The syncid tag had to be deleted so that the problem didn't re-occur.

Probably a few things to do here:

  • Look at what actually caused this in the tag sync code
  • Start batching tag imports (if not already occurring) as for member upserts
  • Use tmp schema for temp tables with more descriptive name (if still needed)
  • Other things?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant