Replies: 1 comment 5 replies
-
|
Hi @CyberT3C , couple of thoughts on the topic. The major advantage of Alpine over Debian is its size because of the use of musl libc. 3 MB vs. 50 MB for Debian. Since you're planning on running a game server that is linked against glibc you won't be able to use musl libc and will have to install glibc within Alpine which is going to reduce that size advantage to zero. Also the Valheim server itself is about 1 GB in size, so the few MB more or less for Alpine vs. Debian seem like a moot point.
To me this does not make much sense from a technical point of view but feel free to link some benchmarks. Going down the stack, the thing that processes connections first is the Linux kernel which runs on your host system, not within the container. Then the libc which does the syscalls to the kernel and provides the interface your software is calling to do things like open sockets, poll them, etc. and then your software i.e. Valheim server is processing the information it received on those sockets. No part of Alpine or Debian has anything to do with how connections are handled how they perform or what timeouts they have. Your approach of keeping each function in a separate Docker container sounds clean and makes a lot of sense. The approach I went for with this image was to make it as easy to use and low maintenance as possible esp. for NAS users, at the expense of some separation of constraints and functionality. Though thinking about it, having to pull multiple containers kind of counter acts the whole "Smaller footprint with alpine linux" idea. Still it's definitely cleaner. There is another really good Valheim Docker container at https://github.com/mbround18/valheim-docker |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Valheim Community,
as i am building my own server docker image right now with a different approach i was wondering if we can connect on the base needs and problems.
I am thinking about a build on the alpine linux base image to reduce the size of the image. I was also wondering if this could boost the performance just a little bit. I've read alot rumors about this. Some people have performace problems with alpine linux,
In my personal expereience alpine linux was always performing a little bit better than debian and had some less timeouts or a little bit better average response time over thousands of iterations. But this where basic Webapps with a standard DB backend (Clusters)
I have no clue about the unity server output. It might have different needs
have a nice day
niklas
offtopic
My different approach:
Make a Watch Docker Container for the Steamapp which will trigger a version update if needed,
Make Watch Docker Container for the Valheim Plus version ...
Provide backup process outside the gameserver container (copying the data from volumes should always be part of another unit / process)
Beta Was this translation helpful? Give feedback.
All reactions