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

[Jupiter] Debug Garbage Collect Job #888

Closed
weiweishi opened this issue Oct 11, 2018 · 1 comment
Closed

[Jupiter] Debug Garbage Collect Job #888

weiweishi opened this issue Oct 11, 2018 · 1 comment

Comments

@weiweishi
Copy link
Contributor

weiweishi commented Oct 11, 2018

Describe the bug
We have seen error messages https://rollbar.com/ualbertalib/jupiter/items/369/ regarding the permissions to remove files from era-assets.

We have also experienced very high CPU usage on postgreSQL
https://helpdesk.library.ualberta.ca/otrs/index.pl?Action=AgentTicketZoom;TicketID=47896

that may or may not be related.

Additional things to consider:

  • maybe that job needs to watch the clock when it runs?
  • limit the number of entries processed?
  • self-throttle so as not to eat all the I/O on the DB server?
  • better use of config/scheduler.yml, as it runs on all three application servers, and really it only needs to be run once. (adding an env variable as the condition to load the schedule.yml in config/initializer/sidekiq.rb, and let the env variable to be controlled by ansible, to determine which app server is responsible for these scheduled jobs, some ideas: Jobs run 2x as often sidekiq-scheduler/sidekiq-scheduler#88)
  • performance test/tune the MySQL query
@weiweishi
Copy link
Contributor Author

The scheduled cron job will be temporarily stopped before this issue can be fixed - and we can run the manual rake task to remove the orphaned assets.

@weiweishi weiweishi changed the title Debug Garbage Collect Job [Jupiter] Debug Garbage Collect Job Oct 11, 2018
@murny murny closed this as completed in 59e5eef Oct 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant