Graylog2 / graylog2-server

Free and open log management
https://www.graylog.org
Other
7.38k stars 1.06k forks source link

MongoDB v5 minimum CPU requirements changed #14167

Closed asmodianx closed 1 year ago

asmodianx commented 1 year ago

https://www.mongodb.com/docs/manual/administration/production-notes/ x86_64

TL;DR - This requirement for mongodb v5 breaks a lot of existing installations.

MongoDB requires the following minimum x86_64 microarchitectures: [3]

For Intel x86_64, MongoDB requires one of:

    a Sandy Bridge or later Core processor, or

    a Tiger Lake or later Celeron or Pentium processor.

For AMD x86_64, MongoDB requires:

    a Bulldozer or later processor.

Starting in MongoDB 5.0, mongod, mongos, and the legacy mongo shell no longer support x86_64 platforms which do not meet this minimum microarchitecture requirement.

MongoDB only supports Oracle Linux running the Red Hat Compatible Kernel (RHCK). MongoDB does not support the Unbreakable Enterprise Kernel (UEK).

MongoDB 5.0 requires use of the AVX instruction set, available on [select Intel and AMD processors.](https://en.wikipedia.org/wiki/Advanced_Vector_Extensions#CPUs_with_AVX)

ARM64

MongoDB on arm64 requires the ARMv8.2-A or later microarchitecture.

Starting in MongoDB 5.0, mongod, mongos, and the legacy mongo shell no longer support arm64 platforms which do not meet this minimum microarchitecture requirement.

asmodianx commented 1 year ago

Steps to recreate - install mongodb v5 on a non-compliant x64 cpu and crashes immediately making upgrading beyond graylog v4 impossible.

loganmarchione commented 1 year ago

What is the issue here? This isn't something the Graylog team can control, it's because of Mongo requirements.

Most CPUs in the last 10 years have AVX support. The problem I've seen is that if you're running Mongo on top of a virtualized system, it's the hypervisor that isn't exposing AVX to the guests.

HungryHowies commented 1 year ago

@asmodianx S

Same issue but a lot more to do for us.

I closed my post because there not much I can do at this moment.

https://github.com/Graylog2/graylog-docker/issues/241

@loganmarchione

This isn't something the Graylog team can control, it's because of Mongo requirements.

I concur, one option were looking at is Building MongoDB.

https://github.com/mongodb/mongo/blob/master/docs/building.md

To see if we can go around this issue found here.

https://github.com/mongodb/docs/commit/7f1143f8356e2ee8d8efbdea292da5305896a4ad

asmodianx commented 1 year ago

Suggestion: update the requirements and install documentation if only to cut down on complaints?

loganmarchione commented 1 year ago

They just added this yesterday.

Warning: MongoDB 5.0 requires use of the AVX instruction set. For further details, see the MongoDB documentation.

asmodianx commented 1 year ago

That will have to do for now. Thanks.

On Sat, Dec 10, 2022 at 9:12 PM Logan Marchione @.***> wrote:

They just added this https://go2docs.graylog.org/5-0/planning_your_deployment/upgrading_to_mongodb_5.x_and_6.x.htm#standalone-mongodb yesterday.

Warning: MongoDB 5.0 requires use of the AVX instruction set. For further details, see the MongoDB documentation https://www.mongodb.com/docs/v5.0/administration/production-notes/.

— Reply to this email directly, view it on GitHub https://github.com/Graylog2/graylog2-server/issues/14167#issuecomment-1345444356, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZCU32MPRGQQFGZV2GIPZDWMVBA3ANCNFSM6AAAAAASYVS4XA . You are receiving this because you were mentioned.Message ID: @.***>

-- -=- Joel Kershner -=- @.***

bernd commented 1 year ago

We updated our documentation with a note about the AVX CPU instruction requirement for newer MongoDB versions. Thank you!