Hi Justine, Thanks for the feedback. I have added the above comparison results to the KIP.
Given the widespread use of Alpine, the likelihood of encountering issues is minimal. Ubuntu, being a more comprehensive image, is expected to be lesser prone to such challenges. Considering that we are initially releasing a GraalVM-based Docker image for local usage, I am inclined to prioritise minimising its size, which can be achieved by using the Alpine image. Should future instances suggest the need for a different Docker base image for optimisation, we can explore alternatives at that time. Regards, Krishna On Thu, Feb 1, 2024 at 12:32 AM Justine Olshan <jols...@confluent.io.invalid> wrote: > Hey Krishna, > > Can we include the perf results between the distroless/alpine/ubuntu images > in the KIP? > > I also noticed > > - Alpine employs the apk package manager, which, being relatively less > popular, may pose challenges in the future. There's a potential risk > that > certain libraries we might need could lack support from apk > > > Is this a concern we would have with the other images? > > Thanks, > Justine > > On Tue, Dec 12, 2023 at 9:34 AM Krishna Agarwal < > krishna0608agar...@gmail.com> wrote: > > > Hi Ismael, > > Would you happen to have any remaining concerns regarding the selection > of > > the base Docker image? > > Alternatively, do you have any additional suggestions or insights? > > > > Regards, > > Krishna > > > > > > On Fri, Nov 24, 2023 at 1:16 AM Krishna Agarwal < > > krishna0608agar...@gmail.com> wrote: > > > > > Hi Ismael, > > > > > > In my pursuit of a lightweight base image, I initially considered > Alpine > > > and Distroless > > > > > > 1. The next best option I explored is the Ubuntu Docker image( > > > https://hub.docker.com/_/ubuntu/tags) which is a more complete > image. > > > It has a size of 70MB compared to the 15MB of the Alpine image > > > (post-installation of glibc and bash), resulting in a difference of > > 55MB. > > > 2. To assess performance, I executed produce/consume performance > > > scripts on the Kafka native Docker image using both Alpine and > > Ubuntu, and > > > the results indicated comparable performance between the two. > > > > > > I wanted to check if there's any other image you'd like me to assess > for > > > consideration. Your input would be greatly appreciated. > > > > > > Regards, > > > Krishna > > > > > > On Thu, Nov 23, 2023 at 2:31 AM Ismael Juma <m...@ismaeljuma.com> wrote: > > > > > >> Hi Krishna, > > >> > > >> I am still finding it difficult to evaluate this choice. A couple of > > >> things > > >> would help: > > >> > > >> 1. How much smaller is the alpine image compared to the best > > alternative? > > >> 2. Is there any performance impact of going with Alpine? > > >> > > >> Ismael > > >> > > >> > > >> On Wed, Nov 22, 2023, 8:42 AM Krishna Agarwal < > > >> krishna0608agar...@gmail.com> > > >> wrote: > > >> > > >> > Hi Ismael, > > >> > Thanks for the feedback. > > >> > > > >> > The alpine image does present a few drawbacks, such as the use of > musl > > >> libc > > >> > instead of glibc, the absence of bash, and reliance on the less > > popular > > >> > package manager "apk". Considering the advantage of a smaller image > > size > > >> > and installing the missing packages(glibc and bash), I have proposed > > the > > >> > alpine image as the base image. Let me know if you have any > > suggestions. > > >> > I have added a detailed section for the same in the KIP. > > >> > > > >> > Regards, > > >> > Krishna > > >> > > > >> > On Wed, Nov 22, 2023 at 8:08 PM Ismael Juma <m...@ismaeljuma.com> > > wrote: > > >> > > > >> > > Hi, > > >> > > > > >> > > One question I have is regarding the choice to use alpine - it > would > > >> be > > >> > > good to clarify if there are downsides (the upside was explained - > > >> images > > >> > > are smaller). > > >> > > > > >> > > Ismael > > >> > > > > >> > > On Fri, Sep 8, 2023, 12:17 AM Krishna Agarwal < > > >> > > krishna0608agar...@gmail.com> > > >> > > wrote: > > >> > > > > >> > > > Hi, > > >> > > > I want to submit a KIP to deliver an experimental Apache Kafka > > >> docker > > >> > > > image. > > >> > > > The proposed docker image can launch brokers with sub-second > > startup > > >> > time > > >> > > > and minimal memory footprint by leveraging a GraalVM based > native > > >> Kafka > > >> > > > binary. > > >> > > > > > >> > > > KIP-974: Docker Image for GraalVM based Native Kafka Broker > > >> > > > < > > >> > > > > > >> > > > > >> > > > >> > > > https://cwiki.apache.org/confluence/display/KAFKA/KIP-974%3A+Docker+Image+for+GraalVM+based+Native+Kafka+Broker > > >> > > > > > > >> > > > > > >> > > > Regards, > > >> > > > Krishna > > >> > > > > > >> > > > > >> > > > >> > > > > > >