CMS Made Simple Forums
https://forum.cmsmadesimple.org/

CMSMS outbound connections to itself vs webhosting rules
https://forum.cmsmadesimple.org/viewtopic.php?f=8&t=78359
Page 1 of 1

Author:  cyrcle [ Mon May 07, 2018 6:20 pm ]
Post subject:  CMSMS outbound connections to itself vs webhosting rules

Hello,
I am currently experiencing a problem with 2 websites hosted on OVH shared hosting located in the Gravelines data center.
At times, I can have up to one query on 20 which returns me an incomplete loaded page, a blank page or a "502 Gateway Time-out" or "504 Gateway Time-out" error.

HTTP requests, SQL requests and CPU usage are very low for those websites.
The support tells me that the problem could come from the outgoing connections used by CMSMS.
It's true that CMSMS (since version 2.2) creates outbound connections to itself to trigger the asynchronous processing.
But the support tells me it's a typical attack behavior and their systems could slow down these calls when they are too many.
They ask me if CMSMadeSimple has no other way to trigger asynchronous processing? And they find very strange to make a synchronous call to start asynchronous tasks.

I can not believe these outgoing connections are a problem.
In the logs, I once found 2 simultaneous outgoing connections, but in principle it is maximum 1 outgoing connection every 3 minutes with an average of 380 connections per day. Is it really too much?

Has anyone ever encountered a similar problem?
Would it be possible to trigger the asynchronous processing without outbound connections?

Thanks.

Author:  DIGI3 [ Tue May 08, 2018 2:51 pm ]
Post subject:  Re: CMSMS outbound connections to itself vs webhosting rules

I don't know the answers to most of your questions, but you can change the frequency with a config setting:

https://docs.cmsmadesimple.org/configur ... _asyncfreq

I think Calguy would need to answer the rest.

Author:  cyrcle [ Tue May 08, 2018 4:23 pm ]
Post subject:  Re: CMSMS outbound connections to itself vs webhosting rules

Thank you DIGI3 for this first answer. I will test. I didn't think it was possible to change the asynchronous process jobs frequency.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/