Question about maintaining stable deployment

21 views
Skip to first unread message

Alexander Kale

unread,
Jun 15, 2023, 5:20:30 PM6/15/23
to ope...@googlegroups.com
Hello,

I've been using OpenCPU for a few years now, and I really appreciate the ability to call R functions from client-side web applications using POST requests (my primary use case). It's clear that a lot of careful thought and energy has gone into the design of this tool, and for that I am grateful!

My question today is about how I can ensure the stability of my deployment. In recent months, I've had my OpenCPU deployments fail a few times without me pushing any new code. As far as I can tell, each time some dependency I'm relying on disappears from OpenCPU's system of Docker containers. On previous occasions, I've been able to rewrite my codebase to remove the missing dependencies. However, this time what's missing is a dependency of a dependency (the R package 'ellipsis', which I am unfamiliar with). I'm not really sure how to proceed from here. It's not just that I need to recover from this particular issue, but the frequent need to rewrite old code just to keep it running is becoming somewhat of a burden. I figure there must be some other way to ensure the stability of my deployment that I'm just unaware of. Any help or guidance would be much appreciated!

Thanks,
Alex


Jeroen Ooms

unread,
Jun 16, 2023, 5:52:49 AM6/16/23
to ope...@googlegroups.com
It depends on your setup. You can use a tagged version version of the
docker container to make sure it does not change.

I think the issue is that the cloud server images include the latest
versions of the dependencies of the opencpu R package. And even though
opencpu itself does not change much, some of its dependencies do
change, which causes some packages to get added/removed from the
stack.
> --
> You received this message because you are subscribed to the Google Groups "opencpu" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to opencpu+u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/opencpu/CAM9dTQv9%3D556UHcomsXewRrkUFGgxM8EvOhm2nBXm-Ut%3DxnG5A%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages