Fork me on GitHub
#datomic
<
2023-08-12
>
braai engineer11:08:56

What should d/connect retry logic look like, please? I set my Clojure SystemD unit file with After = network.target datomic.service but the service is "started" before Datomic is up and then connection fails and I have to restart my service manually after reboot..

jasonjckn03:08:59

we just defer to the container orchestration layer (k8s) to restart the whole process if d/connect fails.

braai engineer09:08:52

@U0J3J79FE do you have some k8s templates lying around for this? K8s is a whole thing and I would prefer not to get sucked into even more devops

jasonjckn05:08:26

i agree k8s is probably very heavy duty, you would need several reasons to want to use it .. not just for this , to restart a process

jasonjckn05:08:53

the default behavior is to restart a container

jasonjckn05:08:02

sorry, can’t share it’s all work stuff

jasonjckn05:08:42

adding retry logic on d/connect is a perfectly valid way to go