-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent high server load by (i. e.) set a limit of how many files at once in queue? #17
Comments
Thanks for your feedback, good idea! |
Or that you could say only n images per hour or whatever. The thing is that the server's load ist too high over the time. The client that I talk about has as almost 260.000 images in fileadmin/processed/, so we if it were only 10 images, this problem would never appear. I hope you understand my problem. I also tried and set MAGICK_THREAD_LIMIT to 1, but it had no effect, see here: https://www.imagemagick.org/script/resources.php#environment I am not sure what the best way would be... But to clean the entire processed-directory is not a solution (in this case). This is a general problem and would prevent the usage of this extension in other projects too, so a solution for that would be great! |
I like that Idea, but I also think limiting sheduling to a time is very very bad. Things never should be timebased.. I think implementing a constat which will set 2 variables to reduce CPU usage would be enough:
should do the job. At Example: variable set to 75% and Server has 9 Cores. OR (if possible) gettingt he info how many cores the system has and letting the user decide how many to use @sgatonmpunktde : which IM version are you running? |
First of all, thanks for your support! I tried only using @M4rt1n17
UPDATE I tested now with the following env variables:
It works BUT has a big big weak in my opinion: This is a screenshot from htop. I had to disable the extension again. |
Is there a reason for not having "webp" in your delegates?
BTW this is my IM:
and I'm running Debian 9. (also possible at debian 8) If you want to have my code to install always the latest version (automated) pls use this: Hope this helps. |
@M4rt1n17 My server is an nginx with plesk on it. Upgrading IM to v7 is currently not an option because I don't want to "kill" the website while it is running. But I want to put this on my to-do-list for later. What I tried now
I am watching the load but it seems this solves my problem for now. Maybe it would be a good idea (for other users) to use this as default in the project. I guess I am not the only one with this issue. Just to prevent too much load. When I update IM to v7 maybe I can test this again and write something additionally... UPDATE
|
Nice to see a way to prevent high Server load, but I preffer it as for me having the job done faster is more important then Serverload as I'm on a Dedicated really big Server, But a option which can enable this option would be nice, thats true. |
Any news on this feature?
It's not just about having the conversion at night, you could also setup a scheduler task to convert new images every minute. IMHO it is more about having a process async to the page creation, so when a user edits a page and wants to preview it, he won't have to wait for a minute to get the page rendered due to multiple picture tags wit a lot of image sources and then the webp conversion additionally kicks in. |
Any update here for a scheduler tasks? This process has still a high server load. |
I think the idea with the scheduler task is great, is there any news on this yet? We generate about 25 more images per image (5 ViewPorts, 5 different resolutions). |
Hi @wazum, |
The server load is very high (6 cores, 32gb) and almost on 100% and gets slow. Maybe it could be added a scheduler (?) to let the extension execute the processing only at night?
The text was updated successfully, but these errors were encountered: