Z
Zerops2mo ago
nermal

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
Aleš
Aleš2mo ago
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
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Aleš
Aleš2mo ago
ok, and database / storage?
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Aleš
Aleš2mo ago
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
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Aleš
Aleš2mo ago
and those are currently saved to some object storage, or on disk? S3 etc
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Aleš
Aleš2mo ago
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
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Aleš
Aleš2mo ago
ok, last question 🙂 how much does it cost you currently and how much resources do those services use combined
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Aleš
Aleš2mo ago
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
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Aleš
Aleš2mo ago
the way I understand it they just simply run two instances and load balance the traffic between them
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Aleš
Aleš2mo ago
any idea how much traffic you are getting? or how many requests per second you handle
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Aleš
Aleš2mo ago
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)
No description
Aleš
Aleš2mo ago
some sort of caching layer using redis might be nice, would probably get the db cpu usage down a lot
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
nermal
nermalOP2mo ago
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
Aleš
Aleš2mo ago
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
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
nermal
nermalOP2mo ago
well you can try zerops out
Aleš
Aleš2mo ago
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
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server