In-campus access thru intranet site and outside internet access

In-campus access thru intranet site and outside internet access

by shiva k -
Number of replies: 15
I am an Educator and have a Moodle installed in intranet and currently students access through local network within the campus. As expected everyone wants to access the site from home through internet. Unfortunately the internet speed in the campus is very slow but students may have better speed at home. What are the ways available to mirror the local moodle site on the net and sametime within the campus the local intranet site is accessible? Thanks in Advance
Average of ratings: -
In reply to shiva k

Re: In-campus access thru intranet site and outside internet access

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hi

The short answer is, No. Moodle is not designed to be set of distributed servers. The reason is simple: Moodle is highly interactive. There is no way of keeping the servers synchronized.

There were different approaches by different people. They were mostly discussed in the Hardware and performance forum. Try the Advanced search https://moodle.org/mod/forum/search.php?id=5.

One thing I've noticed. You said, "Moodle installed in intranet and currently students access through local network within the campus. As expected everyone wants to access the site from home through internet. Unfortunately the internet speed in the campus is very slow but students may have better speed at home." My question, if the connection intranet to Internet is slow, how could the students have a high speed from the Internet?
In reply to Visvanath Ratnaweera

Re: In-campus access thru intranet site and outside internet access

by shiva k -

Thanks for your input.

Yes...students have good internet speed at their homes. But internet speed in the college is not sufficient to cater the number of students. Thats why I have installed Moodle on intranet.  

Moving my Moodle site from intranet to internet will cater the need of students in accessing site from home.

But access from within college would be very limited because of internet speed. Therefore removing moodle from intranet and installing on internet will make difficult for incampus access.


In reply to shiva k

Re: In-campus access thru intranet site and outside internet access

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
But it is obvious: If the LAN-to-Internet connection is slow, by placing the Moodle server in the LAN the students will have a fast connection within the school, but not at home. By moving the server to a good hosting provider, they'll have good speed at home but will be slow in the school.

How do you plan to change that?
In reply to shiva k

Re: In-campus access thru intranet site and outside internet access

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

So I wonder if you could keep the database internal and then have a second apps server outside the intranet.  While it would not be a perfect situation because you would still need to use the campus internet connection to access the database, it might help a little bit.  Any other solution would require continual syncing somehow between the two servers which would not help much.

Another option is to encourage students to use the app because you can download all the course content to be available offline with the app so they could still interact with the moodle courses and then just upload their assignments etc when they get back to campus.

Average of ratings: Useful (1)
In reply to Emma Richardson

Re: In-campus access thru intranet site and outside internet access

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hi Emma
= Database server and the web server separated by a "slow" connection =
I think the idea is about a compromise. From neither side Moodle will have its maximum speed, but still the average performance is better than having one fast side and one slow side. It depends on how the users are divided. 99% work is on campus, 1% at home will give a different result than 50% to 50%. (Everybody wants to work from home, does not mean they do. ;)

I wonder how a slow network connection to the database affects a Moodle web server, especially during an on-line exam. To complicate the matters, a "slow" connection could mean it is specified at a low rate/latency but behaves as specified. Or, it is a supposedly fast connection which feels slow because the connection is unstable. Just the other day I watched the ping times of a public Wi-Fi connection. They fluctuated from 30 ms to 5 seconds within minutes. There was even packet loss!

And the other thing, for visitors coming from the database side of the connection, the result of database queries cross the slow connection twice, right?

= Switch to Moodle mobile =
That is a neat side-effect of the Moodle for mobile! The idea is people switch to either the https://docs.moodle.org/en/Moodle_Mobile app (Andriod and iOS) or the https://docs.moodle.org/en/Moodle_Desktop (Windows, Mac and even Linux!) Yes, they not only store static content (files) but also allow off-line interactions like submitting assignments and even taking on-line tests!
In reply to Visvanath Ratnaweera

Re: In-campus access thru intranet site and outside internet access

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

The idea was to have two web servers - one inside and one outside and then the database inside.  The inside connection would work as it does now.  The outside connection would just use the internet connection for the database connection - but whether that is a good solution or not, I do not know.  Might be something worth trying though.

In reply to Emma Richardson

Re: In-campus access thru intranet site and outside internet access

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
I didn't think of the possibility of duplicating Moodle code. Then what about our old friend, the $moodledata? It has to be tightly connected to the web server, which means duplication. But to my knowledge nobody has synchronized two $moodledata even in a LAN segment. Finally, I tend to believe Howard's 'No' story.
In reply to shiva k

Re: In-campus access thru intranet site and outside internet access

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

You can't do this. Moodle's architecture was never intended to work in this mode. 

Various people have tried to do this and it's never been successful. 

In reply to Howard Miller

[OT] (was: In-campus access thru intranet site and outside internet access)

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
It was the weekend of No! Nein! Nada! Niente! Nahi!
(Also https://moodle.org/mod/forum/discuss.php?d=365847)
Still, h i l a r i o u s!
In reply to Visvanath Ratnaweera

Re: [OT] (was: In-campus access thru intranet site and outside internet access)

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I'm not sure that was "no".  More like, "I'm sorry you are clearly on a different planet to me". 

I don't understand this cloud stuff. Well, I understand it enough to be reasonably sure it's not much use for me. 

In reply to Howard Miller

Re: [OT] (was: In-campus access thru intranet site and outside internet access)

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
In reply to Visvanath Ratnaweera

Re: [OT] (was: In-campus access thru intranet site and outside internet access)

by shiva k -

huh...

so many discussions....hope some alien will help me one day...or i will look at completely different server level solution. Because heard about very similar approach for Office 365.


In reply to shiva k

Re: In-campus access thru intranet site and outside internet access

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Back to the topic:

You said:
> ...or i will look at completely different server level solution. Because heard about very similar approach for Office 365.

So your requirements are satisfied by Office365?

You've only "heard" about a similar approach or you know for certain? Similar approach to what?
In reply to shiva k

Re: In-campus access thru intranet site and outside internet access

by Ken Task -
Picture of Particularly helpful Moodlers

Assuming your Moodle server is configured and optimized, me thinks this is a networking issue.

Concept: networking comes before application (application being the moodle server).

Define: Campus ... does that mean ... multiple building each of which is connected to the wide area network of the college?  or does that mean a single building with Departments etc. on certain floors?

When students connect to the Moodle while on campus, are they using wired workstations?  or are they using personal devices connected to a segment of the campus wireless network?   Many entities do have wireless available but that entire wireless network is on a different segment of IP addresses and could be filtered or firewalled differently from wired workstations.

What is the circuit (data pipe) that connects the entire 'campus' to the internet.   Is it a single T1, a T3, or ? etc.   Yes, that's a technical question and the only way you can answer is to talk to the IT staff on your 'campus' ... the networking folks.

Breaking apart DB from Moodle web server might not be best ... actually  it could make things worse.

On your Moodle server, how many 'hops' is the server from the 'gateway' to the internet?   That gateway ip address is, for all practical purposes, the data pipe leading to the internet from your 'campus'.  Speed/Access might improve (to both inside and outside traffic) *IF* the moodle server is moved physically to the switch that's closest to the gateway.

Bottom line *** Talk to the networking people on your 'campus'!

'spirit of sharing', Ken


Average of ratings: Useful (2)
In reply to Ken Task

Re: In-campus access thru intranet site and outside internet access

by shiva k -
Thank you very much for your thoughtful reply. This is very useful.

You indeed prove to enjoy the 'spirit of sharing'.

I will take a look in your point of view and get back here if I find out any ways and means.

Regards