Giter VIP home page Giter VIP logo

Comments (9)

ishioni avatar ishioni commented on August 20, 2024 1

I've had the capability in my own chart for this. However, I'd discourage it for two reasons
#1 The bitnami chart is not that great to work with, it leaks memory all the time, and no, setting wiredtigercachesizegb doesn't seem to help
#2 The official mongo image doesn't work on armv7, while unifi does. This creates a problem where people on older SBCs (Pi3B) might not be able to use the chart. I understand that might not be a big userbase, but i'd still be wary. Even armv8 is kinda spotty on anything different than pi4 (fails miserably on odroid c4/n2) - I was specifically in contact with jacobalberty about this issue when he started doing multiarch builds

However, if there is a technical need for this, I'm willing to port my work

from charts.

onedr0p avatar onedr0p commented on August 20, 2024

@tingvarsson there any documentation you can link to in the README on how to set this up? You could add mongo as a dependency in the Chart.yaml

from charts.

tingvarsson avatar tingvarsson commented on August 20, 2024

Ok, so I looked some more at it this morning and it seems quite simple to actualize. We already expose the DB configuration parameters in the chart, and we can disable the internal DB. So what would be nice as an alternative to run it completely seperate is to be able to spin it up as a pod within this chart. Similar to how nextcloud does it with their DB. I.e. It can be setup as internal, external but as a chart dependency, or completely external/deployed seperately.

Here's the small note in upstream README
And here's a docker-compose example running with a separate mongo DB.

from charts.

Ornias1993 avatar Ornias1993 commented on August 20, 2024

@tingvarsson might I suggest the worse docker container available, might not be the best example to give?
When it comes to updating and data storage it totaly fucks up ALL docker best-practices.
I think those people are not the example you want to give :')

That being said, seperating MongoDB for Unifi does make it more docker-friendly to keep track of the versioning between unificontroller and MongoDB for "normal" docker/k8s devops.

from charts.

stale avatar stale commented on August 20, 2024

This Issue has been automatically marked as "stale" because it has not had recent activity (for 45 days). It will be closed if no further activity occurs. Thanks for the feedback.

from charts.

Ornias1993 avatar Ornias1993 commented on August 20, 2024

Definately still a relevant and not stale.

from charts.

onedr0p avatar onedr0p commented on August 20, 2024

@Ornias1993 I've heard doing this outside kubernetes is a pain in the ass, and very fragile. I can't see deploying it in kubernetes will make it any easier / stable. Not sure we want to keep this issue open if OP or no-one chooses to work on it. Having it be unstable will cause lots of support issues coming our way which honestly, we don't want to support.

Edit: The community forum post on this doesn't seem very helpful with a lot of people reporting issues
https://community.ui.com/questions/External-MongoDB-Server/d311a8f8-43b6-4aeb-859d-eefec9dc1bbc

from charts.

Ornias1993 avatar Ornias1993 commented on August 20, 2024

@ishioni I think thats a pretty solid foundation why it shouldn't be done. Thank!
Doing things just "because we can", only leads to future issues along the road and I don't see many people interested in this feature stepping up to fix them (as they also didn't send in a PR)

from charts.

bjw-s avatar bjw-s commented on August 20, 2024

Looks like the consensus is that this is not something we should pursue any further right now.
If a need for this does rise in the future, feel free to leave a comment or open a new issue 👍

from charts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.