GithubHelp home page GithubHelp logo

Comments (22)

marxlnfcs avatar marxlnfcs commented on August 17, 2024

Hello!
I found a solution for this "bug".

If you're looking into the /var/log/rspamd/rspamd.log file you can see rspamd has to generate some TLDs but this takes way too long. So I updated the resource limits:

resources:
    limits:
      cpu: 600m
      memory: 500Mi
    requests:
      cpu: 500m
      memory: 500Mi

Now its working :)

from wildduck-k8s.

bramhoven avatar bramhoven commented on August 17, 2024

@marxlnfcs great to hear that! Do you know what the average rspamd usages are, or usages under high load?

from wildduck-k8s.

marxlnfcs avatar marxlnfcs commented on August 17, 2024

@bramhoven I haven't checked the current usage or the usage under high load yet because I'm unable to get Haraka to work. If Haraka is running, I'll stress test rspamd :)

from wildduck-k8s.

bramhoven avatar bramhoven commented on August 17, 2024

@marxlnfcs what is the issue with Haraka? I eventually got everything up and running after a lot of debugging and testing! Maybe I can help you out

from wildduck-k8s.

marxlnfcs avatar marxlnfcs commented on August 17, 2024

@bramhoven Haraka is unable to connect to wildduck...

Fri, Feb 3 2023 1:31:48 pm | [CRIT] [-] [server] Plugin wildduck timed out on hook init_master - make sure it calls the callback
Fri, Feb 3 2023 1:31:48 pm | [INFO] [-] [server] hook=init_master plugin=wildduck function=init_wildduck_shared params="" retval=DENYSOFT msg="plugin timeout"
Fri, Feb 3 2023 1:31:48 pm | [ERROR] [-] [server] init_master returned error: plugin timeout
Fri, Feb 3 2023 1:31:48 pm | [NOTICE] [-] [core] Shutting down

I edited your chart a bit and added resources like MongoDB, Redis and NGINX for load balancing. I probably forgot to put something somewhere

from wildduck-k8s.

bramhoven avatar bramhoven commented on August 17, 2024

@marxlnfcs Have you checked wildduck itself? Is it up and running? Else maybe the correct ports or urls

Btw if you think those changes should be in the base chart, feel free to create a PR :)

from wildduck-k8s.

marxlnfcs avatar marxlnfcs commented on August 17, 2024

@bramhoven I checked wildduck already but could not find any issue there. I've also created a ubuntu sidecar container for haraka to test the connection to wildduck. Everything is working :(

I will create a PR if everything is working correctly but I've changed alot... And i mean "alot" :D

from wildduck-k8s.

bramhoven avatar bramhoven commented on August 17, 2024

@marxlnfcs Did you check mongodb? I think Haraka just connects to mongo and redis

Haha would love to see what you have changed, hopefully I can learn a bit from those changes!

from wildduck-k8s.

marxlnfcs avatar marxlnfcs commented on August 17, 2024

@bramhoven Thats right. I've checked the haraka-plugin-wildduck thats implemented in the image but anything should work. MongoDB is up and running (Tested with mongo-express) and redis too... I've no clue :D

Did you create the databases in mongodb manually? Which did you create?

I'm messing around with helm because thats the first time i'm "manipulating" a chart haha :P

from wildduck-k8s.

bramhoven avatar bramhoven commented on August 17, 2024

@marxlnfcs I was struggling at first to get a normal "working" MongoDB instance using helm... I could not get that working after trying for weeks. Finally ended up just creating a new deployment myself with a mongodb image.

I have created a root user and logged in using that. I then created the wildduck, wildduck-webmail & zone-mta collections.

Then I added users to each of them so a wildduck user, a wildduck-webmail user and a zone-mta user. The wildduck user has access to the wildduck and the zone-mta collection, since haraka and wildduck use these two collections. And the zone-mta user can also access both collections.

from wildduck-k8s.

marxlnfcs avatar marxlnfcs commented on August 17, 2024

@bramhoven Thats almost the same as I did...

I tried to use the redis plugin by haraka and filled out all connection info... The plugin runs in a timeout either... So its probably an problem between the connection of haraka and redis...

from wildduck-k8s.

marxlnfcs avatar marxlnfcs commented on August 17, 2024

@bramhoven I found the problem but no solution yet ...
There is some DNS problem because if I'm using the hostname of the redis server (wildduck-redis.wildduck.svc.cluster.local) I'm running in a timeout. But If I use the ClusterIP of the redis-server it works...

Strange behavior :D

from wildduck-k8s.

bramhoven avatar bramhoven commented on August 17, 2024

@marxlnfcs glad to hear you managed to find the problem! That is a strange bug though... I'm not that familiar with kubernetes to know what causes that

from wildduck-k8s.

marxlnfcs avatar marxlnfcs commented on August 17, 2024

@bramhoven I fixed this error too but it seems to be the connection to mongodb... Which version of mongodb did you use?

from wildduck-k8s.

marxlnfcs avatar marxlnfcs commented on August 17, 2024

@bramhoven I'm going to cry...
I found the mistake. I named the wildduck config from Haraka "wildduck.yml" and not "wildduck.yaml" :')

from wildduck-k8s.

bramhoven avatar bramhoven commented on August 17, 2024

@marxlnfcs oh damn... Good find though! I made a lot of those mistakes setting this helm chart up, and it took me quite a while to get everything in working order.

Glad to hear it is working now!

from wildduck-k8s.

marxlnfcs avatar marxlnfcs commented on August 17, 2024

@bramhoven Yes.... I rebuilt the Haraka image and added some debug logs to the Haraka Wildduck plugin. Then I came up with it and now I'm ashamed :D

from wildduck-k8s.

bramhoven avatar bramhoven commented on August 17, 2024

@marxlnfcs Don't be! Could happen to anyone :D

Would love to hear the results if you get the chance to stress test it!

from wildduck-k8s.

marxlnfcs avatar marxlnfcs commented on August 17, 2024

@bramhoven Thats true :D

I created a repository with my revised chart. Feel free to take a look and if you want I can also do a PR when I'm completely done :)

marxlnfcs/wildduck-helm

from wildduck-k8s.

marxlnfcs avatar marxlnfcs commented on August 17, 2024

@bramhoven There are some features like ingress and additionalAccounts, that are not implemented yet :D

from wildduck-k8s.

bramhoven avatar bramhoven commented on August 17, 2024

@marxlnfcs yeah, im not that familiar with all this stuff yet. If you have other things that are not implemented yet, let me know. I want to create a helm chart that supports any feature wildduck supports

from wildduck-k8s.

marxlnfcs avatar marxlnfcs commented on August 17, 2024

@bramhoven Me neither but thats how I learn it. :)

I would like to have a full-featured helm chart for wildduck!

from wildduck-k8s.

Related Issues (16)

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.