Quantcast
Channel: Hardware and performance
Viewing all 10185 articles
Browse latest View live

Re: Moodle Storage Management

$
0
0

by Rick Jerz.  

Limit uploads to something small, like 16MB.

Are videos being uploaded?  If so, move videos to a separate video server and link to them from within Moodle.


Re: Moodle Storage Management

$
0
0

by Ken Task.  

This sorta falls under 'one solution *does not* fit all'!   Much depends ...

Nothing internal like a plugin of which I am aware.
However, this is a tool (command line only) that will help called moosh

https://moosh-online.com/

and for specific commands related to files
https://moosh-online.com/commands/

Examples of some of the commands:

file-datacheck

Go through all files in Moodle data and check them for corruption. The check is to compare file's SHA to their file names.

file-dbcheck

Check that all files recorder in the DB do exist in Moodle data directory.

Are you doing autobackups?

Another Moosh example:

Example 4: Remove all automated backups and reclaim the space

moosh file-list -i 'component="backup" AND filearea="automated"' | moosh file-delete -s
moosh file-delete --flush

Are your teachers running backups of their own?  Are they cleaning up OLD backups they really no longer need?

One could attempt to use repos for things like videos/audios .. etc.

'spirit of sharing', Ken


Re: /usr/local/mysql-5.6.24-osx10.8-x86_64/data/moodle/mdl_logstore_standard_log.ibd

$
0
0

by Liz Johnson.  

Thank you so much for your help!

I wasn’t able to resolve the issue - in fact it has worsened! I am going to post another (different) plea for help! smile


Thx again

Re: Moodle Storage Management

Re: How does using the Mobile App affect server performance?

$
0
0

by ranjith tk.  

There is a fairly efficient Mac memory management tool that provides quick load of applications and good performance. MAC also cache things in free RAM of the system in order to quick load them from memory than hard disk for fast response.

There are times that when your Mac can slow down as more stuff is running in your system and your RAM is cluttering up. When you find Mac RAM is filling up due to increased workload on the OS X then the time for a Mac memory clean tool. By using MAC Memory Clean Apps, you can get free up inactive memory for other tasks.

link:https://mashtips.com/mac-memory-clean-apps/

Re: Moodle Installation in Rural Area

$
0
0

by James Steerpike.  

The original post wanted " correct installation of Moodle platform (to be powerful and well established) on a server that I am currently working with.". That server already has 2GB of Ram - twice that of a Pi - and probably a faster CPU. I am assuming rural does not mean a place without electricity.

My solution (assuming the Win machine is not used for other purposes) would be to install a basic Linux distro and Moodle.  Add a router ( approx the cost of a Pi) connected by a cable and you have a system which could handle many connections.

Maybe you could use a Pi but why buy a new computer when you already have one that can handle the job? Portability was not specified by the original poster. And powerful and well established does not sound like a classroom of students connecting to the wireless output of a battery driven under-powered computer using a SD card for storage.

Two additional drawbacks of the mobile Pi. There is no shutdown switch on a Pi and if you are short of time or careless and you simply cut the power, you may really screw up your databases and Moodle.  You can use a Mobile phone to shutdown but more complexity.  And my own Pi died in a thunder storm - the only electrical thing that died in the house and probably my fault for using a phone charger rather than an approved power supply. 


Re: Moodle Installation in Rural Area

$
0
0

by Visvanath Ratnaweera.  

The original poster has left the forum end of August the latest. No, the second round of discussion is about the possibilities with the new class of micro-computers, especially Raspberry Pi.

About shutting down the MoodleBox, check https://moodle.org/plugins/tool_moodlebox.

Running cron from multiple webservers

$
0
0

by Christos Savva.  

Hello Moodlers smile,

I know this was asked before, but since there was no answer I though I will give it another try

Other Posts about this:

https://moodle.org/mod/forum/discuss.php?d=358434

https://moodle.org/mod/forum/discuss.php?d=344181


Based on the latest Moodle Docs, we can now run the cron on multiple webservers (link).

Today I tried to do just that, while the cron was running on node1 I tried to run the cron on node 2.

Node 1 finished the cron ok, node 2 gave an error (below) and stopped processing the cron and exited


The error

Scheduled task complete: Forum mailings and maintenance jobs (mod_forum\task\cron_task)

Execute adhoc task: core\task\refresh_mod_calendar_events_task

... started 14:11:23. Current memory use 27.3MB.

Refreshing events for assign

Default exception handler: Coding error detected, it must be fixed by a programmer: A lock was created but not released at:

[dirroot]/lib/classes/task/manager.php on line 448

 Code should look like:

 $factory = \core\lock\lock_config::get_lock_factory('type');

 $lock = $factory->get_lock(Resource id #854);

 $lock->release();  // Locks must ALWAYS be released like this.


 Debug:

Error code: codingerror

* line 117 of /lib/classes/lock/lock.php: coding_exception thrown

* line 91 of /lib/cronlib.php: call to core\lock\lock->__destruct()

* line 61 of /admin/cli/cron.php: call to cron_run()


!!! Coding error detected, it must be fixed by a programmer: A lock was created but not released at:

[dirroot]/lib/classes/task/manager.php on line 448

 Code should look like:


 $factory = \core\lock\lock_config::get_lock_factory('type');

 $lock = $factory->get_lock(Resource id #854);

 $lock->release();  // Locks must ALWAYS be released like this.

!!!



So is it possible to run the cron on different webservers for the same Moodle instance or not?

Since cron found that there was a lock already in place for that task, why the cron didnt continue with the next task and it exited?


Kind regards

Christos


Re: Moodle Installation in Rural Area

Re: Running cron from multiple webservers

$
0
0

by Matteo Scaramuccia.  

Hi Christos,
that's a good question: AFAIK everyone running a cluster is used to have a node not serving web requests but running Moodle cron.

That being said, the lock is there to preserve multiple nodes to perform the same operation with unpredictable results when overlapping on the same operation: I never thought that it was been designed to allow skipping a locked task and passing over the next.

What is your Moodle version?

HTH,
Matteo

Re: Running cron from multiple webservers

$
0
0

by Andrew Nicols.  

Hi Matteo,

It is now possible to run cron on multiple nodes simultaneously.

The locking system is designed to lock individual tasks and if a task is locked, it will fail to obtain the lock and move on to the next task.

Andrew

Re: Running cron from multiple webservers

$
0
0

by Andrew Nicols.  

Hi Christos,

It is possible to run Cron on multiple servers simultaneously.

This lock messages is unlikely related to running on multiple servers, and more likely due to a bug somewhere in one of the cron tasks which has meant that the task failed (maybe is threw an Exception, or experienced a Fatal error). As a result, the thread was ended and the lock was not released via the normal processes. There is a shutdown handler which runs during the PHP exit which is still called. One of the tasks it performs is to release locks. If it finds any locks to release, it warns because they have not been closed properly for some reason.

It looks like there is a bug of some kind in mod_assign which prevents the refreshing of the calendar events there.

We have made improvements to the way in which this works, including better diagnostics in more recent Moodle versions.

Which version of Moodle are you using? Have you ensured that you have the same version of PHP installed on all nodes?

Andrew

Re: Running cron from multiple webservers

$
0
0

by Christos Savva.  

Hi Andrew and thanks for your reply

My Moodle version is 3.3.2+ (Build: 20170915)

And yes the 2 nodes (web servers) are exactly the same (created the second instance from Image of the first).

Could you please let me know how I will identify the error and maybe fix it?

Kind regards

Christos

Re: Running cron from multiple webservers

$
0
0

by Andrew Nicols.  

I'd recommend enabling the debugging and debugdisplay. You can also run a specific scheduled task (admin/tool/task/cli/schedule_task.php --execute="\core\task\refresh_mod_calendar_events_task").

Hopefully this should give a stacktrace and some more debugging information.

Re: Running cron from multiple webservers

$
0
0

by Christos Savva.  

I executed


sudo -uapache /usr/bin/php task/cli/schedule_task.php --execute="\core\task\refresh_mod_calendar_events_task"

And I got this

Task '\core\task\refresh_mod_calendar_events_task' not found

I then checked /admin/tool/task/scheduledtasks.php

and indeed there is no such task :/



Re: Running cron from multiple webservers

Re: Running cron from multiple webservers

$
0
0

by Christos Savva.  

I just tried again to run the cron on both nodes. This time both competed.


Node 1 gave this output

Scheduled task complete: Background processing for question engine (core\task\question_cron_task)

Execute adhoc task: core\task\refresh_mod_calendar_events_task

... started 10:10:48. Current memory use 44.5MB.

Refreshing events for assign

Refreshing events for assignment

Refreshing events for book

Refreshing events for bootstrapelements

Refreshing events for chat

Refreshing events for choice

Refreshing events for choicegroup

Refreshing events for data

Refreshing events for feedback

Refreshing events for folder

Refreshing events for forum

Refreshing events for glossary

Refreshing events for imscp

Refreshing events for label

Refreshing events for lesson

Refreshing events for lti

Refreshing events for page

Refreshing events for quiz

Refreshing events for resource

Refreshing events for scorm

Refreshing events for survey

Refreshing events for thesisproposition

Refreshing events for turnitintooltwo

Refreshing events for url

Refreshing events for wiki

Refreshing events for workshop


Node 2 didn't execute: core\task\refresh_mod_calendar_events_task at all

Re: Running cron from multiple webservers

$
0
0

by Christos Savva.  

Thank Matteo for your time and help smile

Is Manchester City striker Sergio Aguero underrated in the Premier League?

$
0
0

by chan oudom.  

http://img.bleacherreport.net/img/images/photos/002/638/972/hi-res-452795187-sergio-aguero-of-manchester-city-in-action-during-the_crop_north.jpg?h=533&w=800&q=70&crop_x=center&crop_y=top


sb0bet Is Sergio Aguero underrated in the Premier League? Thierry Henry and Jamie Carragher discussed on Monday Night Football.


The Manchester City striker netted four goals in a 5-1 win against Leicester on Saturday evening, surging him into the race for this season's Premier League Golden Boot award.


But former striker Henry believes Aguero remains underrated despite his achievements since arriving in England, which include two Premier League titles and two League Cup victories.


"No [he doesn't get the credit he deserves]. You have journalists voting for the best player, players voting and if you ask an individual player 'who has been one of the most consistent or the best striker in the league recently' - Harry Kane is coming along - but they would all say Aguero," the Sky Sports pundit said. sb0bet


"But if you asked them who has been the best player recently or in a certain season and they had to vote, they don't put Aguero.


"Usually the striker gets a little edge on the votes, but somehow he doesn't when all the numbers are showing us that the guy is a winner, a great goalscorer and he put a stamp on it, he won the league with those goals. They were very important."


Aguero currently has the best goals-to-minute ratio in the Premier League, ahead of Kane, Henry and Ruud Van Nistelrooy, and Carragher also questioned why he is not considered among the same company.


"Why do we not talk about Sergio Aguero as the greatest striker in the Premier League or certainly one of them when there is a big distance between some of the absolute greats in that list," he added.


"I think the surprising thing is that he has only won the Golden Boot once. Sometimes he has picked up knocks and Gabriel Jesus has been playing recently, so he is never the top scorer that often.


"Kane has been the top scorer for the last two or three years and probably will be again this year, he stands out more, but that's the only thing I can think of off the top of my head. He is one of the all-time Premier League greats." https://www.sbobetkhao.com/m88bet/



Re: Moodle Installation in Rural Area

Viewing all 10185 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>