fluent-bit icon indicating copy to clipboard operation
fluent-bit copied to clipboard

dockerfile: Enable default SIMD support in Docker (#10215)

Open jinyongchoi opened this issue 9 months ago • 6 comments

According to the documentation, SIMD is supposed to be enabled by default in Fluent Bit container images.

This commit updates the Dockerfile to reflect that, enabling SIMD by default.

Closes #10215


Testing Before we can approve your change; please submit the following in a comment:

  • [N/A] Example configuration file for the change
  • [N/A] Debug log output from testing the change
  • [N/A] Attached Valgrind output that shows no leaks or memory corruption was found

If this is a change to packaging of containers or native binaries then please confirm it works for all targets.

  • [N/A] Run local packaging test showing all targets (including any new ones) build.
  • [N/A] Set ok-package-test label to test for all targets (requires maintainer to do).

Documentation

  • [N/A] Documentation required for this feature

Backporting

  • [N/A] Backport to latest stable release.

Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.

jinyongchoi avatar Apr 17 '25 08:04 jinyongchoi

I think it makes sense to wait until this ticket(#10178) is completed before proceeding. I’ll hold off for now.

jinyongchoi avatar Apr 18 '25 08:04 jinyongchoi

@jinyongchoi looks like those PR's were merged. Can we move forward here as we'd love to have a boost in json processing as well.

cdancy avatar Apr 29 '25 16:04 cdancy

@patrick-stephens @cdancy Hello, I've enabled the FLB_SIMD option by default in all Dockerfiles except for Dockerfile.centos7, which is used for internal testing. If the SIMD option should also be enabled there, please let me know and I’ll update it accordingly. Thank you!

jinyongchoi avatar Apr 30 '25 13:04 jinyongchoi

@patrick-stephens @cdancy Hello, I've enabled the FLB_SIMD option by default in all Dockerfiles except for Dockerfile.centos7, which is used for internal testing. If the SIMD option should also be enabled there, please let me know and I’ll update it accordingly. Thank you!

I would as it's intended to verify Centos 7 builds and you've enabled it for the actual builds themselves I think

patrick-stephens avatar Apr 30 '25 13:04 patrick-stephens

@patrick-stephens @cdancy Hello, I've enabled the FLB_SIMD option by default in all Dockerfiles except for Dockerfile.centos7, which is used for internal testing. If the SIMD option should also be enabled there, please let me know and I’ll update it accordingly. Thank you!

I would as it's intended to verify Centos 7 builds and you've enabled it for the actual builds themselves I think

I've updated Dockerfile.centos7 to include the SIMD option as suggested.
Please let me know if there's anything else you'd like me to adjust.
Thanks again!

jinyongchoi avatar Apr 30 '25 16:04 jinyongchoi

Hey @patrick-stephens, is anything missing in this PR?

sousa-miguel avatar Jun 06 '25 09:06 sousa-miguel

Hi all, any chance we could get this merged and released in the near future?

pawelrubin avatar Jun 24 '25 12:06 pawelrubin

@jinyongchoi can you update the new Alma and Rocky targets as well?

@edsiper we can merge this I think after that is done.

patrick-stephens avatar Jun 26 '25 09:06 patrick-stephens

@patrick-stephens Sure, I'll update the Alma and Rocky targets as well.

jinyongchoi avatar Jun 26 '25 10:06 jinyongchoi

OK thanks, I will merge after that if it looks good unless @edsiper disagrees.

patrick-stephens avatar Jun 26 '25 10:06 patrick-stephens

@patrick-stephens Added Alma and Rocky. Let me know if anything else is needed!

jinyongchoi avatar Jun 28 '25 16:06 jinyongchoi

Hi~ @edsiper, This should be ready for review now. Let me know if there's anything else you'd like me to change.

jinyongchoi avatar Jun 28 '25 17:06 jinyongchoi

Hi @patrick-stephens, Thank you for your work on this PR. We are looking forward to this change and were wondering if there's an estimated release date for it. Could you also let us know if it's being considered for inclusion in a future Fluent Bit 3.2.x release?

pawelrubin avatar Jul 02 '25 09:07 pawelrubin

It'll be in the next 4.x release, probably next week or so.

To get it in a 3.2 release it needs backporting to the 3.2 branch but I doubt it'll go into a release there unless someone pushes for it and makes the PR. 3.2 is really only getting critical fixes now.

patrick-stephens avatar Jul 02 '25 09:07 patrick-stephens