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

Email validation job cannot cope with production load #2364

Closed
vohmar opened this issue Apr 22, 2022 · 0 comments · Fixed by #2368
Closed

Email validation job cannot cope with production load #2364

vohmar opened this issue Apr 22, 2022 · 0 comments · Fixed by #2368
Labels
refactor Refactoring of existing feature

Comments

@vohmar
Copy link
Contributor

vohmar commented Apr 22, 2022

jobs in sidekiq que stay there for more than 20 minutes, CPU running at 100%, no load on DB
Makes millions of queries to database like this:

Apr 22 11:40:52 reg-l-epp adm.internet.ee[10710]: [ActiveJob] [VerifyEmailsJob] [65a992fd-9d1f-4f24-aa48-cfd2880560d8]   Domain Load (15.9ms)  SELECT "domains"."id", "domains"."name", "domains"."registrar_id", "domains"."valid_to", "domains"."registrant_id", "domains"."transfer_code", "domains"."created_at", "domains
"."updated_at", "domains"."name_dirty", "domains"."name_puny", "domains"."period", "domains"."period_unit", "domains"."creator_str", "domains"."updator_str", "domains"."outzone_at", "domains"."delete_date", "domains"."registrant_verification_asked_at", "domains"."registrant_verification_token", "domains"."pending_jso
n", "domains"."force_delete_date", "domains"."statuses", "domains"."status_notes", "domains"."statuses_before_force_delete", "domains"."upid", "domains"."up_date", "domains"."uuid", "domains"."locked_by_registrant_at", "domains"."force_delete_start", "domains"."force_delete_data", "domains"."json_statuses_history" FR
OM "domains" WHERE "domains"."id" = $1 LIMIT $2  [["id", 170193], ["LIMIT", 1]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Refactoring of existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant