We have an issue with Sidekiq running on multi pod.
Scenario 1:
On development, we have a single replicas which means single pod running. We don’t have any issue here.
FYI,
Checked: forum_url/sidekiq/busy( 1 Processes running)
Scenario 2:
On preprod and prod we have more then one replicas (more than one pod running). We’re facing Sidekiq concurrency issue (The job is running but skipping the code execution).
FYI,
Checked: forum_url/sidekiq/busy (More than 1 processes running). For each pod one Sidekiq processes running
Correct me, Is that okay to run more than one sidekiq processes? If It’s not okay how to fix the job concurrency issue?
What do you mean by exactly by “concurrency” issue? Can you please elaborate? What is happening out of order exactly?
A sidekiq job being added to a queue does not guarantee overall order of execution as there are different queues with different priority so some jobs can get ahead of others.
Also “skipping code execution”. Can you elaborate? What code? When a job runs the code will not be skipped. Have you checked your /logs that nothing is breaking?
And be aware you might be running an unsupported install which might be at the root of your issues …
I’m not sure! The job might confuse when it tiger which process it should take because of the multi worker process.
Also “skipping code execution”. Can you elaborate? What code? When a job runs the code will not be skipped. Have you checked your /logs that nothing is breaking?
We’re running some custom sidekiq jobs which are export some custom sats on CSV file. The job is running periodically. Sometimes the file export does not happening. The job runs without any error message.
For the testing purpose, If I click this trigger button the job is running but the file export does not happening sometimes.
FYI, on Dev env same code running but it’s only one sidekiq worker process.Here working fine. I’m wondering the issue is because of more than one sidekiq process running on the prod/preprod.
Have you checked your /logs that nothing is breaking?
Yes, We didn’t get any error related to the job
And be aware you might be running an unsupported install