Vitalii Zinenko
AltexSoft | Custom Software Development Company
Vitalii Zinenko
AltexSoft | Custom Software Development Company
Vitalii Zinenko
AltexSoft | Custom Software Development Company
RackSpace
Server
...
site
site
site
Vitalii Zinenko
AltexSoft | Custom Software Development Company
Vitalii Zinenko
AltexSoft | Custom Software Development Company
nginx
php5-fpm
mysql
master/slave
Site
Front End
Vitalii Zinenko
AltexSoft | Custom Software Development Company
rsync -a --include-from '/root/bin/include-list.txt' --exclude '*' --prune-empty-dirs
root@10.132.175.231:/var/www/html/drupalcamplviv.net/ /var/www/html/drupalcamplviv.net
include-list.txt
*/
*.js
*.css
*.png
*.gif
*.ico
*.jpg
*.jpeg
*.eot
*.woff
*.ttf
*.svg
/sites/default/files/*
2. Получение ещё не синхронизированного контента
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_intercept_errors on;
fastcgi_pass 10.132.26.250:9000;
# fastcgi_pass unix:/var/run/php5-fpm.sock;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
try_files $uri @phpfpm;
expires max;
log_not_found off;
}
location @phpfpm {
proxy_pass http://159.203.109.211:9001/$uri;
}
3. Настройка Drupal для использования mysql master-slave
$databases['default']['default'] = array(
'driver' => 'mysql',
'database' => 'mysql-master-db',
'username' => 'mysql-master-username',
'password' => 'mysql-master-password',
'host' => 'mysql-master-IP',
);
$databases['default']['slave'][] = array(
'driver' => 'mysql',
'database' => 'mysql-slave1-db',
'username' => 'mysql-slave1-user',
'password' => 'mysql-slave1-password',
'host' => 'mysql-slave1-IP',
);
4. Редактирование существующего кода для работы с master/slave базами данных
Contrib module AutoSlave
$query = db_select('node', 'n', array('target' => 'slave'));
Новые возможности для мультисайтинга
nginx
php-fpm
php-fpm
php-fpm
php-fpm
1. Security issues
2. Continuous integration
3. Drupal + mysql replication
4. Integration system analytic tools
5. Server side improvements
Vitalii Zinenko
AltexSoft | Custom Software Development Company