Running a Drupal application on webfarm (scalability), HOW?

We created the website using Drupal, but the problem (a good problem) is that we get WAAAAYY too many hits on the server to such an extent that the traffic connects the server to the knees.

now we want to run the application from 3 servers behind the load balancer, one of which simply serves as mysql, and the other 2 for serving the web application. I did this with Symofony before for another project, and it was relatively simple,

However, it seems that I cannot go far from Drupal, the main problem at this stage is to save all session variables in mysql, so no matter what server the load balancer sends the request to, the application has one reference point regarding the sessions.

Any help would be greatly appreciated, I am looking for a good tutorial or documentation, since I inherited this project from a guy who no longer works here: /

thank

+5
source share
4 answers

Note: in response to the answer. I assume you are using Apache. My answer will be correct even if you use some other server like nginx etc.

You write:

However, I seem to be unable to get far from Drupal, the main problem at this point should be able to save all the session variables in mysql, so no matter what server the load balancer loads on, the application has one link point to the session. Regarding sessions.

- , PHP Drupal + MySQL. , , PHP cookie PHPSESSID. cookie .

[ , PHPSESSID, PHP , , drupal, .. $_SESSION PHP. PHP . , MySQL . MySQL , PHPSESSID, .. Drupal]

, PHP , cookie PHPSESSID. , Apache Webserver 1 mod_php (PHP apache module) PHPSESSID, , "563" ( ). , , , cookie PHPSESSID 563. :

  • ( ) Apache 1, cookie PHPSESSID. 567, .
  • Apache 2. PHPSESSID - 567, Apache 2 mod_php. PHPSESSID. .

. , , . , , -, - . , , . cookie , , . , , , PHPSESSID.

cookie. . .

. , , cookie, . files . . , , , . NFS (Networked File System) SAN.

Drupal. , . , memcache, MySQL, , . , cookie, .

, ? , , . ? , Varnish, Drupal , boost , .

http://sf2010.drupal.org/conference/sessions/24-million-page-views-day-60-m-month-one-server. , 1 . . ! - .

+6

Drupal.org Drupal.

+1

. .

memecached , .

varnish Drupal .

, , . , .

, . .

0
source

All Articles