Migration of Gluo to Zerops
hey @kipteam we can continue our convo here whenever you're free @Aleš and other team is ready to help you out as your hosting contract with the other company is ending soon
27 Replies
we could/should probably try deploying it on a test environment, what stack do you have?
test as in making it run on Zerops, but not pointing domains to it yet
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
ok, and database / storage?
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
alright, we've been thinking about how to properly deal with sqlite on containers recently, but of course this would be a great chance to migrate to posgres
and storage? any user-uploaded files?
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
and those are currently saved to some object storage, or on disk?
S3 etc
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
is either the frontend or backend prepared to scale horizontally or vertically? and do you currently?
horizontally probably don't right, having all the files on disk makes this impossible
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
ok, last question 🙂 how much does it cost you currently and how much resources do those services use combined
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
that's so cryptic.. but I suppose those two web apps (those are the front and backend django apps?) and those 2 web workers (which are what exactly?) all share those 3000 seconds of CPU time? and they don't even mention RAM anywhere, but say it's up to 3 GB per process on some docs page
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
the way I understand it they just simply run two instances and load balance the traffic between them
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
any idea how much traffic you are getting?
or how many requests per second you handle
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
alright, ran a little experiment, been sending constantly 25r/s traffic to two services which both run a basic django app (which reads from postgres db).. this kind of traffic can easily be handled with one container / 1 core setups
including postgres db and object storage with 50 GB of space it would cost around the same as pythonanywhere (especially after we add the "lightweight" core which will cost around $2/m compared to the full core which costs $5)
some sort of caching layer using redis might be nice, would probably get the db cpu usage down a lot
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
well firstly create an account then just setup zerops cli for now then you'll have to setup zerops.yml in root of your frontend and backend codebases.
well the team can help you setup the zerops.yml considering you're new to zerops.
http://app.zerops.io/registeration
https://docs.zerops.io/references/cli
https://app.zerops.io/recipe/django you can start with this
https://github.com/zeropsio/recipe-django/blob/main/zerops.yml this is the app and configuration it deploys
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
well you can try zerops out
I think it would be a good idea to develop the new version of Gluo/API on Zerops, locally utilize the CLI VPN ability to connect to postgres / redis so you don't have to have them locally etc.. if you have the ability to keep the old version running on python anywhere until the new version is ready
otherwise we can run both on Zerops
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View