I want to try out a self-hosted docker instance of...
# help
m
I want to try out a self-hosted docker instance of Supabase. What I have noticed is that Kong takes 1GB RAM right off the start. Isn't that a bit too much for just an API gateway?
n
Hello @metala! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
b
I don't think Kong takes that much. Our default instances only have 1GB of RAM and they're running Kong, Postgrest, GoTrue, etc.
n
metala (2022-05-25)
m
I can screenshot
docker stats
. Are you running them with swap?
b
I know you can run kong, postgrest, gotrue, and other related services in a vm with 1GB comfortably. I don't think you'd want to go less than that, though.
I just checked one, and the basic kong service shows 669944K via pmap.
So I would say you probably need 1GB to run kong, but you can run a lot of other stuff on that same vm as well.
m
I will try that for development, if I like the system, the staging will be with a different API gateway.
I'll leave my
docker stats
for reference:
Copy code
CONTAINER ID   NAME                CPU %     MEM USAGE / LIMIT     MEM %     NET I/O           BLOCK I/O   PIDS
2f1f9f18c5cb   supabase-meta       0.00%     38.53MiB / 29.36GiB   0.13%     2.12kB / 0B       0B / 0B     6
545e509b0502   supabase-rest       0.16%     12.02MiB / 29.36GiB   0.04%     285kB / 82kB      0B / 0B     47
6bb807deb6f4   supabase-realtime   1.74%     102.2MiB / 29.36GiB   0.34%     15.1MB / 77.4MB   0B / 0B     53
8eeb87e2099e   supabase-kong       0.10%     1.006GiB / 29.36GiB   3.42%     2.52kB / 893B     0B / 0B     17
d6613ab4246e   supabase-studio     0.00%     50.14MiB / 29.36GiB   0.17%     2.16kB / 0B       0B / 0B     23
779dd4ece61c   supabase-db         4.90%     77.17MiB / 29.36GiB   0.26%     77.5MB / 15MB     0B / 0B     12
86f88aeb84dd   supabase-auth       0.00%     6.902MiB / 29.36GiB   0.02%     15.8kB / 16.9kB   0B / 0B     20
569c50497060   supabase-storage    0.38%     45.76MiB / 29.36GiB   0.15%     11.7kB / 13.9kB   0B / 0B     11
b
I think most of these services will use ram based on how much is in the host, so if there's more ram available it'll use more.