rhythmic-pizza-93292
01/17/2023, 9:27 PMcreated state? We just noticed some big data gap and turns out we have many syncs in the created state that were stuck there. Searching the slack we found that some folks found success by restarting the rudderstack server pods, which seems to be working for us as well. But I'd like to setup some alerting to bring awareness more quickly if possiblemillions-activity-52391
01/17/2023, 9:27 PMrhythmic-pizza-93292
01/17/2023, 11:22 PMrhythmic-pizza-93292
01/17/2023, 11:22 PMquiet-wolf-72320
01/18/2023, 11:08 AMrhythmic-pizza-93292
01/18/2023, 1:06 PMrhythmic-pizza-93292
01/18/2023, 3:48 PMrhythmic-pizza-93292
01/18/2023, 3:49 PMrhythmic-pizza-93292
01/19/2023, 1:54 PMhelpful-country-71305
01/19/2023, 3:42 PMwarehouse_successful_upload_exists which looks for any sync jobs that are in pending state for more than (~ 24 hours) and we are also in process of adding better ones around tracking this.
⢠Regarding what the potential reason for this is, it could be an old build with ill performing queries, the tables in postgres getting too big, or insufficient resources
⢠Regarding the third point, before picking up new jobs, we often delete jobs that are created temporarily to replace them with jobs that are batched better. Its an expected functionality for optimal loads.
I would check the following to debug this issue:
1. Which build of rudder server are you using? (Preferably move to the latest one)
2. Are you running it in embedded mode or are you running a separate process for warehouse (I am assuming its the former, but would like to confirm)
3. Have you enabled archiver which deletes old records from wh_staging_files and wh_load_files which infinitely grow if unattended to. Config to enable that -> Warehouse.archiveUploadRelatedRecords
a. Alternatively you could also just manually delete everything in wh_staging_files and wh_load_files tables that are older than lets say a week or a month
b. Once the archival is done, you should also run a vacuum to really benefit from this
4. What are the resources allocated to postgres and have you seen any stuck queries or high resources utilization on the db when you see this issue.rhythmic-pizza-93292
01/19/2023, 4:12 PM0.2.1 I think), we're definitely planning an upgrade soon, so I'll keep an eye out and tell you if anything goes wrong!
We're running embedded mode most likely, I don't remember setting anything up to run as a separate process. Is that the recommended approach?
I also noticed the wh_* tables you mentioned beeing particularly big when poking around, so we most likely don't have archiver enabled. Will look into that as well!
WRT to provisioning, we are quite over provisioned right now, so I doubt that's the issue. But our postgres pods have 3/6 cpu request/limit and 2/4 GB for ram. Looking at their CPU usage, they only spike up to 1 on occasionrhythmic-pizza-93292
01/19/2023, 4:12 PM