Jump to content

Posting messages often very slow (>5<16 seconds)


Go to solution Solved by Michel_72,

Recommended Posts

Hi,

I am having issues since ugrading to 4.6.12.1. When posting new messages sometimes it's instant, sometimes it takes somewhere from 5 to 16 seconds.

Since I also upgraded the OS (Debian 11 bullseye, as I do every month) I can not be 100% sure it's the Invision community upgrade.

I have checked all /var/log/* for errors, enabled the mysql slow query log, but nothing suspicious.

Anobody having similar issues, or maybe someone has some pointers on what to check next?

Cheers,

Michel

image.png.23151f75cf7c05238bb0aa97e952e878.png

Edited by Michel_72
Link to comment
Share on other sites

Yes, there could be a lot of followers. But why does to e-mail connection hold up (new) posts? Ar the e-mail notifications not being handled by a cron job?

When editing the newly posted message that is instant.

I'm trying to understand why this happens all of a sudden. The mailserver is unchanged.

Edited by Michel_72
Link to comment
Share on other sites

In this specific topic I was testing there are 6 followers. But I have also been testing in a topic that only has 1 follower and in there I am getting the same irregular delays.

Wat mis je op sat4all? (graag reageren) - Pagina 7 - Off topic - Sat4all - Alles over Satelliet TV, Ziggo en Telenet!

As far as I can see there are no significant delays there:

Apr 20 20:00:02 ####### postfix/local[2155]: 8D75F807A2: to=<##########>, orig_to=<#####>, relay=local, delay=0.05, delays=0.03/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")

Apr 20 2

Edited by Michel_72
Link to comment
Share on other sites

The follow notification are sent instantaneous so would not be handled by a background task. If the smaller follower count topic is faster than this would not be related.

You would need to continue to investigate your server for an issue, I'm afraid. 

Link to comment
Share on other sites

I am starting to think you may have a point. 😉

I used a 13 follower topic now which was slow most of the time. 

Then switched the email setting back from smtp to php and posting was then fast every time I tested.

smtp is an external (TLS) mailserver, within the same network which is quit fast.

There are 2 things I can wrap my head around. The mailserver is fast when trying it from the command line on the server running IPS. So why does this hold up posting. This mailserver was in use before the update as well without any issues.

Why is IPS sending the email instant and does posting a message rely on a blazing fast smtp server? I would rather have this done by the cron running every minute so It will be a background proces.

Edited by Michel_72
Link to comment
Share on other sites

We send notifications instantly only when there are a small amount. Once there are a large number, it will send them as a background task. Please feel free to suggest this if you want to see them always pushed to a background task, however it has to be noted that all you would be doing there is moving the issue.

I understand it would then mean at least the post goes through, so it could mean you end up with a backlog of tasks, and things are not running behind those items, leading to other issues on the software. So the answer to the question really isnt moving the problem to run elsewhere. Its resolving the problem itself, which in this case is on the email server side of things

Link to comment
Share on other sites

  • Solution

Hi, I now 'fixed' the problem by configuring the local postfix server to relay via my external mailserver, so the mail will be delivered instantly to the local mailqueue and then relayed 'slowly' to the external smtp server.

This will not speedup delivery, but does 'fix' this issue. 

Edited by Michel_72
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...