Coder Social home page Coder Social logo

Comments (5)

micw avatar micw commented on May 5, 2024

It should. There was a discussion about it in mailu chat a few weeks ago and an (already closed) issue at Mailu/Mailu#1483. Please post to that issue if it's reproducible for you.

from helm-charts.

micw avatar micw commented on May 5, 2024

(closing it here, we will track this in Mailu/Mailu#1483)

from helm-charts.

micw avatar micw commented on May 5, 2024

Solution can be easily done. If postfix is running on the PID file, the file is locked. So on startup we can simply test if that pidfile exists. If so, we do

flock -n master.pid rm master.pid

This command removes the pid file if it's not locked (meaning no other postfix instance running on it), otherwise it fails.

from helm-charts.

justinasjaronis avatar justinasjaronis commented on May 5, 2024

Great to hear. I believe this should be added in [postfix]/start.py right before os.system("postfix start-fg"). Or should we run this command somehow with kubernetes?

However I see another very related issue is with concurrent postfix instances as mentioned in #53 , if we'd decide to scale number of postfix workers, current partition layout with shared /queue wouldn't allow to do that. shouldn't whole /queue directory be regular volume for the pod, not a shared one, mounted from main PVC ? I believe this change would allow to start unlimited number of postfix workers.

I also understand that if we go this route before termination of a pod, postfix queue should be emptied, otherwise we would have data loss of received-but-not-yet-processed emails.

from helm-charts.

justinasjaronis avatar justinasjaronis commented on May 5, 2024

Apart Your proposed cleanup command, IMHO that from kubernetes perspective /queue/pid folder should be not mounted from any volume. When Kubernetes restarts pod, it expects clean state of the container. Moving folder with PID files to any persistency is opposite to the best practices of Kubernetes and I don't see any reason why /queue/pid would be useful outside the container.

from helm-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.