Leveraging glibc when possible

If your Linux uses glibc, Vector will too.

As a result of some recent profiling and benchmarking, we determined that builds of Vector targeting x86_64-unknown-linux-gnu outperformed builds targeting x86_64-unknown-linux-musl under most usage scenarios on supported operating systems.

Glibc builds may see performance improve by up to 20% over musl. For more information see the original issue. We’re investigating ways to improve our MUSL performance, too! Stay tuned to future releases.

After some deliberation, we’ve opted to package and ship glibc builds where it’s safe. While this change means Vector is no longer fully static on operating systems which use glibc, it should provide a better user experience.

For the vast majority of users no special action needs to be taken.

Measures we’ve take to safeguard your deployments

  • This change only affects x86 platforms.
  • This change affects .deb and .rpm packages and Vectors installed via https://sh.vector.dev.
  • This change does not affect any archives you may already be using. We now publish archives with the gnu prefix that contain glibc builds. Musl builds are untouched as musl still.
  • This change does not affect non-Linux platforms.

If you’ve fought with glibc before, you’ve probably got a burning question:

Which version do we support? 🕵️‍♀️

Don’t worry. We have your back. 🤜🤛 We’re using a base of CentOS 7, which means new Vector glibc builds will support all the way back to glibc 2.17 (released 2012-12-25). If that’s still too new for your machines, please keep using the Musl builds. (Also, Let us know!)

Upgrade Guide

You should not need to do anything. If you are using a normal, recommended method of installing Vector, you should not experience issues.

If you do. That’s a bug. 🐞 We squash bugs. Report it.

If you’re provisioning Vector, the best way to make sure you get the most up to date stable version is to run this:

curl --proto '=https' --tlsv1.2 -sSfL https://sh.vector.dev | bash -s -- -y

If you don’t need the latest and greatest, check your official distribution repository. Some distributions, such as NixOS, have official Vector packages. You can also find Vector packages in the official FreeBSD repositories.

Interested in packaging Vector for your OS? We are too. Why don’t you let us know it’s important to you?