top | item 23461184

(no title)

avita1 | 5 years ago

I agree with most of this, but was surprised by your comment:

> Oh, also, the implementation of Kubernetes cron jobs is also complete garbage (spawning a new pod every job is insanely wasteful).

How often/how many cron jobs are you running that spawning a new pod per job is a problem ?

discuss

order

dvt|5 years ago

The first iteration (I actually wasn't around for that) was trying to run a cron for every "data ingestion job" -- at some points, we were doing about 50k+ API requests daily (FB/Instagram/Twitter/etc.) and that was absolutely not tenable using k8s cronjobs.

snuxoll|5 years ago

Why use cronjobs at all for this? This is a classic work queue problem.

dilyevsky|5 years ago

50k/day is less than 1 qps. This is nothing. This is either not the full story or your cluster was setup completely wrong