Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docker-compose.yaml #343

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nicklhj
Copy link

@nicklhj nicklhj commented Nov 29, 2024

Set the mongo version to 4.4 to make it work on ubuntu20.04 and 18.04.

Set the mongo version to 4.4 to make it work on ubuntu20.04 and 18.04.
@nicklhj
Copy link
Author

nicklhj commented Nov 29, 2024

It works.

@ojpojao
Copy link

ojpojao commented Nov 29, 2024

@nicklhj
Even though it works... Why do you want such an old version of Mongo??? The compatibility of this has nothing to do with the operating system, but whether the processor supports avx instructions for mongo versions >= 5

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

@leandrofars
Copy link
Member

Well, I think the perfect solution would be to use different MongoDB versions depending on the processor support to avx instructions. Still though, I've made no research to find out if it's possible to do or how to implement it.

@leandrofars
Copy link
Member

Than you for the contribution @nicklhj, and @ojpojao for pointing the cpu issue with MongoDB. Found this link of people going through the same problem: https://stackoverflow.com/questions/70818543/mongo-db-deployment-not-working-in-kubernetes-because-processor-doesnt-have-avx . There could some kind of shell script at Oktopus to check cpu support to avx: https://stackoverflow.com/questions/37480071/how-to-tell-if-a-linux-machine-supports-avx-avx2-instructions and based on the return set the mongodb version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants