Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Drupal Server Performance
Search
Eidolon Night
April 29, 2013
Programming
1
290
Drupal Server Performance
How to quickly boost your Drupal performance using simple infrastructure tweaks.
Eidolon Night
April 29, 2013
Tweet
Share
More Decks by Eidolon Night
See All by Eidolon Night
STEAM: Professional presentation for coding
eidolonnight
0
150
DrupalCamp 2014: Drupal Business
eidolonnight
0
250
Online Church
eidolonnight
0
250
Webifying Local Communities
eidolonnight
0
280
How to Choose a Web Developer
eidolonnight
0
250
BarCamp 2010: Automatic Content
eidolonnight
0
250
Why Drupal Rocks
eidolonnight
0
300
Computer Science Capstone Project
eidolonnight
0
240
Other Decks in Programming
See All in Programming
Deno に Web 標準 API を実装する / Implementing Web Standard API to Deno
petamoriken
0
350
ここ1~2年くらいで 使えるようになった(主要ブラウザーの最新版 がすべて対応した ) ウェブの新機能について ランダムに喋る!
myzkyy
9
6.4k
TCA魔法学入門🪄
dazy
0
280
20240301_cocone_EMゆるミートアップvol6_LT資料
cocone
0
310
DDD, necessary but insufficient: physical design principles for microservices
cer
PRO
0
2.1k
TDDと今まで
kanayannet
0
140
incrementalモデルの理解を深める
ikkimiyazaki
2
630
マイ隙間家具OSSたちのご紹介
karupanerura
2
150
ドメイン・ファーストで考える問題解決に役立つモデル設計 / Domain First Model Design
suzushin54
1
940
孤独のCTOグルメという やや奇抜な企画をやった目的と効果
shoheimitani
3
1k
まっちすいっち戦争 / match vs switch
takuyakatsusa
2
660
document.write再考
brn
5
2.5k
Featured
See All Featured
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
1
1.2k
How to name files
jennybc
62
92k
Why You Should Never Use an ORM
jnunemaker
PRO
50
8.6k
5 minutes of I Can Smell Your CMS
philhawksworth
199
19k
The Cost Of JavaScript in 2023
addyosmani
13
3.7k
VelocityConf: Rendering Performance Case Studies
addyosmani
319
23k
Optimising Largest Contentful Paint
csswizardry
7
2.3k
How to Ace a Technical Interview
jacobian
272
22k
Building a Scalable Design System with Sketch
lauravandoore
455
32k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
14
1.3k
Documentation Writing (for coders)
carmenintech
59
3.8k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
242
20k
Transcript
Drupal Server Performance with a focus on Drupal and other
database-intensive PHP applications
Who is this guy? irl: Nicholas Garofalo d.o: Eidolon Night
8 years of development experience CTO at WebOzy, Inc. in Batavia
[email protected]
A good host invest in a good host or it
will haunt you the entire project options: Pantheon Acquia DIY (VPS or dedicated) EVERYTHING else sucks (by our standards) • that includes: shared AND cloud
Managed Hosting use this if you: need someone to blame
have no time to maintain want tight integration and can sacrifice flexibility
Acquia the enterprise guys with a crappy sales department
Pantheon the new kids on the block
UN-Managed Hosting use this if you: kick ass have time,
but not much money need to run other stuff want a really custom environment
Beware xen vs vmware vs virtuozzo multi-server setups
Linode for the Do It Yourselfers
Deployment make it easy automate DeployButton.com github.com/WebOzy/auto-deployment
Linux minimal installs rule Adjust swappiness to keep things in
memory sysctl -w vm.swappiness=25 RTFM - man pages rock
max clients = available memory / average size of apache
process spare clients depends on traffic patterns keep alive
use the latest version or MariaDB innodb is now default
in D7 (use it if you’re not already) innodb_buffer_pool_size http:/ /drupal.org/project/dbtuner
max_execution_time memory_limit load the modules page with all your modules
and you’ll quickly discover if this is too low... or clear the cache and load a massive View
APC apc.stat just leave it enabled shared memory make it
big enough so as to not have fragmentation
Memcached high-performance, distributed memory object caching system let’s you quit
using the database (disk) for caching http:/ /drupal.org/project/memcache
Varnish config: https:/ /fourkitchens.atlassian.net/wiki/ display/TECH/Configure+Varnish+3+for+Drupal+7 module: http:/ /drupal.org/project/varnish (Pressflow needed
for Drupal 6) provides page and asset caching C-like syntax
makes sites friggan fast saves bandwidth added security costs nothing
None
settings.php $conf['reverse_proxy'] = TRUE; $conf['reverse_proxy_addresses'] = array('127.0.0.1'); // define cache
backends $conf['cache_backends'] = array('sites/all/modules/ memcache/memcache.inc', 'sites/all/modules/varnish/ varnish.cache.inc'); // memcache will be our default $conf['cache_default_class'] = 'MemCacheDrupal' $conf['memcache_key_prefix'] = 'livebatavia'; // Varnish can handle the page cache $conf['cache_class_cache_page'] = 'VarnishCache';
Scaling and High Availability take everything you learned here make
more load balance
QUESTIONS ?