With self hosting `rudder-server`, what does the ...
# support
a
With self hosting
rudder-server
, what does the
jobsdb
do?
b
i always thought assumed that was sort of an internal-ephemeral-esque store
a
Which i'm hoping is the case - just want to double check if it's actually ephemeral. So I don't need to worry about any persistence.
g
jobsdb
is the postgres database for events that are being processed.
b
as in something internal to the transformer/server pipeline, like a work queue/staging queue
a
Thanks @glamorous-mouse-54282. So... from a resiliency perspective, if the db dies, you'd potentially lose events? When setting up a postgres destination, it talks about S3 as an intermediate store. Would that mean events go: client -> rudder-server -> jobsdb -> s3 -> postgres destination?
b
wouldnt it be [client -> rudder-server -> jobsdb | s3]
๐Ÿ‘ 1
postgres destination is just a normal destination, unrelated to rudder stack
๐Ÿ‘ 1
g
jobsdb is a queuing system. the events come into rudder server and get stored as gateway events, then processed as router events to their destinations.
In that first diagram jobsdb is the postgres db being showed
once processed, those tables are dropped, so they are not persisted long-term
b
the postgres warehouse destination does have s3 (or other) as staging area/buffer, but unrelated, just sound similar
g
Yep, so if you want a persisted postgres db you would need to warehouse destination. All of our warehouse destinations require staging buckets that events are dumped to and then uploaded to the warehouse on a set schedule so the warehouse doesnโ€™t get blasted with live evnets.
๐Ÿ‘ 1
b
ive been treating jsondb, mounted along side the stack as essentially hands off internals and wouldnt make sense getting fancy with it, minus the context of a horizontal scaling requirement
g
Itโ€™s mostly useful for debugging, as you can see transient failures, warehouse upload issues etc.
@ambitious-journalist-66344 does that help at all?
a
Yeah that helps. Thanks sir, much appreciated ๐Ÿ™‚
So the answer is: If
jobsdb
was ephemeral and went down, you might lose events. If I made
jobsdb
persistent (let's say an RDS). What would happen if the
rudder-server
restarted? Would the
processor
pick up where it was left off?
g
Yes, that is correct.
jobsdb is also used for keeping events for retrying, failure handling etc.
a
So would the processor pick up where it left off in the event of a container restart?
g
Yes, processor would pick up where it left off.
๐Ÿ‘ 1