hey! :wave: does ruddestack exposes any metrics to...
# support
r
hey! šŸ‘‹ does ruddestack exposes any metrics to keep track of the number of syncs in the
created
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 possible
m
Hey There! šŸ‘‹ Your message has been received by the RudderStack team. We will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
r
Ok so it looks like this didn't do the trick completely. It processed syncs normally for an hour or two and then stopped. I had to restart the pods once again for it to start processing.
any idea on what's going on here?
q
@rhythmic-pizza-93292 Did it work after the second restart or got stuck again?
r
got stuck again, got a little further though
this morning we had 600 pending syncs or so, I had to restart the pods once again. Up until then it looked like the servers were processing the syncs quite slowly, at a rate of 2 per minute or so, but this time all 600 were gone almost immediatelly
and we're still seeing potential data gaps in the warehouse. Any idea what is going on?
@quiet-wolf-72320 any thoughts on this? After many restarts we were able to process everything, but I'm worried we didn't address the bottom of the problem. Would appreciate your thoughts on these questions: • does ruddestack exposes any prometheus metricts to keep track of pending warehouse syncs? • what could be causing the syncs to just stop being processed like this? Looks like a bug • The cloud dashboard sometimes is also bugging out. Sometimes I see many pending syncs, restart the pods to see if they get picked up and they just disappear from the dashboard completely. They continue to be processed apparently, as we saw number of page views continue to grow for other days in spite of the dashboard not showing any pending syncs thanks!
h
Hi @rhythmic-pizza-93292 • Regarding the metrics, we have a metric
warehouse_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.
r
We're running a ~6 month old version (
0.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 occasion
thanks for the thorough reply! šŸ™‚
āœ… 1