News for hackers. Stuff that matters.
Re:FreeBSD has serious problems with focus, longevity and li... by throw0101a on Monday January 24, 2022 @07:22PM (#30066144)
> ... which means that if 12.1-RELEASE came out at the end of 2019 and 13.0-RELEASE came out in April of 2021, you had all of 16 months to make investments in the 12 branch before it was hopelessly passe and all queries regarding it would be answered with:

So basically the same as Debian and Ubuntu LTS? Debian releases every ~2 years with 5 years of Security+LTS support, which is the same as Ubuntu (LTS):

* https://en.wikipedia.org/wiki/Debian_version_history#Release...

* https://en.wikipedia.org/wiki/Ubuntu#Releases

From "Changes to the FreeBSD Support Model":

    - Resolving our arbitrary (and unofficial) 5-year branch lifetime
      guarantee.  The support policy is that the stable/X branch will be
      supported for 5 years (minimum) from the point X.0-RELEASE is released.
      We now guarantee a 5-year lifetime on the branch, regardless of how many
      releases are built from the branch. Additionally, a "last minute"
      release from the stable/X branch does not constitute expanding the support
      lifetime for the branch as a whole for an additional two years.
[…]

    - A new stable/ branch release will not occur before two years after the
      X.0-RELEASE from the prior branch.  This limits the number of
      simultaneous supported branches, which will greatly reduce the overall
      number of branches that must be maintained and build-tested for
      Security Advisories and Errata Notices, reducing turnaround time.
* https://lists.freebsd.org/pipermail/freebsd-announce/2015-Fe...

* https://www.freebsd.org/security/

Re:FreeBSD has serious problems with focus, longevity and li... by ianai on Monday January 24, 2022 @07:27PM (#30066213)
Two thoughts:

1. GP makes me wonder whether the FreeBSD definition of LTS is less than people expect.

2. Maybe to properly admin a modern FreeBSD box the admin is supposed to be making the underlying system version easily replaceable. i.e. Make the actual OS files changing have no effect upon hosted system/application stability.

Re:FreeBSD has serious problems with focus, longevity and li... by toast0 on Monday January 24, 2022 @08:26PM (#30066678)
> Maybe to properly admin a modern FreeBSD box the admin is supposed to be making the underlying system version easily replaceable.

This is how things worked at Yahoo and WhatsApp.

For the most part, a server kept whatever version of FreeBSD it was installed with, and the application logic lived in /usr/local/ or /home/y/ or /home/whatsapp/

Keep your 'build' machine to compile production executables on the oldest OS release of your fleet, and everything should run everywhere. (You'll need to use the compat-X stuff so your FreeBSD X+1 machines can run FreeBSD X binaries, but that's easy)

You can use stuff from the base system, but not if you expect recent changes.

I don't remember ever doing an OS upgrade at Yahoo, although it must have happened. In my group, we only got updates with new hardware; which was fine, hardware was changing rapidly.

At WhatsApp, I drove the OS updates towards the end of WhatsApp's use of FreeBSD. A fair amount was just not wanting to have 4 different major versions out there, but there were also forced updates to get important network bugfixes or performance improvements. Sometimes it was easier to find the handful of boxes that were too old to use something nice in a script and update them, rather than fixing the script to not use the nice feature.

When we ran into bugs on older versions, upgrading to a version that already had it fixed was sometimes an option, but sometimes it'd need to be backported, and sometimes the bug was still in -current. We didn't run into too many of those though, our local patch set was never more than about 10 patches.

Re:FreeBSD has serious problems with focus, longevity and li... by darkhelmet on Monday January 24, 2022 @09:41PM (#30067230)
At Yahoo, there was a tool that did in-place OS upgrades for FreeBSD, but you're right - in most cases, people installed whatever was current of the day and then relied on yinst to make it work. ybsdupgrade did work and was mostly a non-event. I don't recall whether we had it work across major version upgrades though.
Re:FreeBSD has serious problems with focus, longevity and li... by toast0 on Monday January 24, 2022 @09:50PM (#30067290)
Not surprised there was a tool, but I don't remember it. :) most of my time at Yahoo was on 4.x, so minor upgrades only would have been fine. (Some 6 and 7 towards the end, but also a little bit of RHEL, which I was happy to get away from)
Re:FreeBSD has serious problems with focus, longevity and li... by ianai on Monday January 24, 2022 @10:12PM (#30067442)
I wonder if FreeBSD would benefit from some documentation or packaging to make this more of a covered area?

Personally, the times I upgraded a FreeBSD box the process felt very smooth. To the point that I’m trying to understand @rsyncs point and seem to be missing something critical.

Re:FreeBSD has serious problems with focus, longevity and li... by toast0 on Monday January 24, 2022 @10:49PM (#30067728)
FreeBSD has a tool for binary upgrades now, and has had a process for source based upgrades forever. This is all documented in the FreeBSD Handbook, and I'd be surprised if the source based upgrade wasn't in there since the beginning of the Handbook, which I think came out with FreeBSD-3.

But, darkhelmet and I were discussing updating FreeBSD at Yahoo; doing the update from the Handbook wouldn't be the right way to do it, because you would miss out on Yahoo specific patches, which were likely required for some key Yahoo software. I don't think it was common knowledge how to do it, so some documentation might have been nice, but mostly teams at Yahoo just didn't do it at that time for better or worse.

Re:FreeBSD has serious problems with focus, longevity and li... by ianai on Tuesday January 25, 2022 @01:18PM (#30075655)
The tooling at Y! sounded quite good from the descriptions. Kind of confirmed my thoughts that the proper way to run a FreeBSD system is to make hopping versions not affect hosted applications through specific tooling and/or infrastructure. Especially the bit about building on older versions and such. Not really sure what more would address the version complaints from @rsync.
Re:FreeBSD has serious problems with focus, longevity and li... by throw0101a on Thursday January 27, 2022 @09:42AM (#30101115)
> I wonder if FreeBSD would benefit from some documentation or packaging to make this more of a covered area?

FreBSD also supports in-place upgrades for major version numbers:

* https://docs.freebsd.org/en/books/handbook/cutting-edge/

* https://www.cyberciti.biz/open-source/freebsd-13-released-ho...

There could be policy reasons why someone may decent not to do it: if you have a large fleet of cattle machines it may be easier to just redeploy from scratch. Home(lab) users and pet machines at companies may do otherwise.

Re:FreeBSD has serious problems with focus, longevity and li... by oblio on Tuesday January 25, 2022 @04:04AM (#30069793)
> At WhatsApp, I drove the OS updates towards the end of WhatsApp's use of FreeBSD.

What did they move to? And do you know why they switched?

Re:FreeBSD has serious problems with focus, longevity and li... by iv42 on Tuesday January 25, 2022 @06:22AM (#30070606)
Linux, as part of integration with Facebook's infrastructure: https://news.ycombinator.com/item?id=22028689