1b.app
Link copied -

lay down minute Cron

https://vmk.crm-onebox.com/admin/shop/statistic/
at 14:08 approximately stopped working
I overloaded the hetzner.cloud server, but after a while it worked, delaying orders from sites and payments, and again silence. Overloaded a couple more times On / Off the server and nothing.
CRM does not update data on cron triggering
Original question is available on version: ru

Answers:

Good afternoon.
Now cron is working.
Kron did not have enough resources to finalize.
What exactly led to the shortage of resources is not clear now (perhaps an unload that did not have enough memory).
The logic of the system is such that in situations where there was an abnormal termination of the script, the next start attempt will be in 90 minutes.
Restarting the server will not affect the operation logic in any way.
If the cron worked during the reboot, then the operating system will force it to end, and this will also create a situation,
that the next launch will be in 90 minutes.
08.12.2020, 17:35
Original comment available on version: ru


Tasun Sergey Vladimirovich
Employee wrote:
Good afternoon.
Now cron is working.
Kron did not have enough resources to finalize.
What exactly led to the shortage of resources is not clear now (perhaps an unload that did not have enough memory).
The logic of the system is such that in situations where there was an abnormal termination of the script, the next start attempt will be in 90 minutes.
Restarting the server will not affect the operation logic in any way.
If the cron worked during the reboot, then the operating system will force it to end, and this will also create a situation,
that the next launch will be in 90 minutes.

Is it possible to reduce the period to 10-30 minutes this. 1.5 hours without a working CPM is another problem at the end of the day
08.12.2020, 17:39
Original comment available on version: ru


Tarovik Dmitry Nikolaevich
Client wrote:
Is it possible to reduce the period to 10-30 minutes this

Not so simple.
In certain situations (uploads, sending a large number of emails, etc.), crons can run for quite a long time.
And changing the time can lead to crown doubling, which is also not very good.
08.12.2020, 17:48
Original comment available on version: ru

does the server iron affect the speed of work here? for example, 2 or 4 cores?
08.12.2020, 18:23
Original comment available on version: ru

Here you need to look at what exactly the script is doing, if these are computational operations or data processing from the database, then yes - 4 threads should give an increase. But keep in mind that working with the database is disk operations, and disk operations are one of the slowest operations in the operating system.
If this is work with external services, then it depends more on the speed and quality of the Internet channel.
With significant volumes of exchange, changing the echo in the network from 1 ms to 30 ms increases the cron time from 12 minutes to 3 hours.
Generally speaking, 4 threads are faster than 2 threads. several services are running in parallel on the server, scripts are running in parallel, etc., then the command queue will be distributed between 4 computing units.
How significant the performance gain will be, I'm not ready to answer.
09.12.2020, 00:35
Original comment available on version: ru

Well, the point is clear.
if you take the Ukrainian server and the https://www.hetzner.com/ server, then the fact that the CRM is on a server in another country greatly affects the work of the crown?
09.12.2020, 11:23
Original comment available on version: ru

As stated above, this only affects cron runtime when external integrations are present.
If a small number of requests (200) to an external resource are made, then this will not affect the execution time.
When executing 40,000 requests, an increase in network echo time can result in a significant increase in execution time.

Tarovik Dmitry Nikolaevich
Client wrote:
if you take the Ukrainian server and the https://www.hetzner.com/ server, then the fact that the CRM is on a server in another country greatly affects the work of the crown?

The ping time between a server hosted in Ukraine and a server hosted by Hetzner will depend on
the number of transitions and the quality of communication channels of providers that provide a route between Ukraine and Germany.
This time is about 30 ms to 45 ms.
You also need to take into account that Hetzner has 3 data centers and they are located geographically in different places
Nuremberg, Falkenstein and Helsinki.
09.12.2020, 12:57
Original comment available on version: ru

the essence of all questions is how to understand that the system has enough / not enough resources for stable operation, so as not to have force majeure and hang-ups. It hurts work.
09.12.2020, 13:35
Original comment available on version: ru

View logs /admin/shop/report/logs/
and monitor the server.
09.12.2020, 13:48
Original comment available on version: ru


Tasun Sergey Vladimirovich
Employee wrote:
View logs /admin/shop/report/logs/
and monitor the server.

Cool, there would be a basic instruction for dummies on how to recognize something from the logs. I am not strong in this direction.
09.12.2020, 14:16
Original comment available on version: ru

By the way, I have not seen such a section in the menu
https://prnt.sc/vyz4pg
09.12.2020, 14:18
Original comment available on version: ru


Tarovik Dmitry Nikolaevich
Client wrote:
By the way, I have not seen such a section in the menu

In the "Reports" menu
and here is the section
09.12.2020, 15:58
Original comment available on version: ru


and again the same problem. at 2 a.m. the last operation
https://prnt.sc/vzkf8e
10.12.2020, 10:16
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment