Hi all --
Anyone have any experience with Sidekiq needing to be restarted periodically in order to retain environment variables?
I have an Elastic Beanstalk app (AWS) with Sidekiq v. 5.2.7 that has a background job that fails after a few months running as it loses the configuration/environment variables needed to call out to an external API. [In this case, Shopify and the Shopify api key, password, and shop name]. The app used to be on an EC2 instance but had severe memory leaks.
Is this just "something with Sidekiq" and I need to regularly (every couple of days/weeks) restart Sidekiq as it just loses its ability to read environment variables from the application.yml file? I am running Rails 5.1.7 btw.
I did notice on the EC2 instance that Sidekiq would balloon in memory used, and no easy malloc trick seemed to fix it. Only rebooting seemed to fix the issue. Stopping and restarting Sidekiq did not seem to garbage collect.
Is the answer just "reboot your server every week, Sidekiq can't run longer than that" ??
If that's the answer that's OK, I just need some real world guidance on this one. Mostly I've run Resque for back end jobs (this one was handed to me by a vendor).
Thanks.