friendica / friendica

Friendica Communications Platform
https://friendi.ca
GNU Affero General Public License v3.0
1.4k stars 333 forks source link

"Inspect deferred workers" has counter 999, in database all entries have a retry value greater than 10 #13842

Open Mannshoch opened 5 months ago

Mannshoch commented 5 months ago

after solveing the spam with blacklist and cleaning the database acording to https://github.com/friendica/friendica/issues/12291#issuecomment-1722654267

I could watch rising the "Inspect deferred workers" counter until 999. If I look into the database every entry has a retry value greater than 10.

grafik

Anything I have to do?

annando commented 5 months ago

The system normally tries 15 times to reach other systems. In the "worker" section of the admin settings you can decrease that limit to a value of - for example - 10.

Mannshoch commented 5 months ago

What does that value mean? What could cause a failure? Shouldn't I reduce that value to around two or three.

tobiasd commented 5 months ago

It is the number of retries. The time interval between retries grows (though I don't remember the formula behind the increments ATM).

annando commented 5 months ago

A value of 2 or 3 would mean that messages wouldn't be delivered any more to a remote system that was offline just for a few minutes. This value here does not only impact the server check but also the message delivery. And there it is crucial that the system tries for at least some hours.

Mannshoch commented 5 months ago

Why should a message not be delivered if only 3 retries are allowed. I have a cheap shared webhoster with only PHP support and even here I never met a time when the server was not reachable. Friendica does a good job and wait for enough times a server could react. I think server that do not react for three time should not fill my worker queue.

annando commented 5 months ago

For example yesterday I had to perform some database maintenance at one of my servers and went into maintenance mode for about an hour. Also I'm planning to perform a server update on one of my servers soon, which will mean that the system will be offline for about half a day. Then there are Friendica updates, that can last for several hours on larger systems.

Mannshoch commented 4 months ago

For the record, my problem was solved after switch back to php7.4

annando commented 4 months ago

If switching the PHP version helped, then there is a configuration issue in your system. I assume that most systems work with PHP 8.x, including mine. But possibly this coincided with a bugfix that I made in the GServer part that lead to fatal errors.

annando commented 3 months ago

As far as I remember now, we had a GServer problem some time ago, so this PHP version thing was some coincidence, I'm convinced. Also I guess that it is solved now anyway.