High performance

This group is dedicated to solutions and approaches for high traffic, high performing Drupal sites. As such, it will deal with a lot of information around the rest of a typical Drupal "stack" -- the operating system, web server, database, and PHP tweaks that combine to support the Drupal application.

This is not a support channel or a place to post bug reports.

If you think you have found a bug, use the issue queue for the appropriate project.

If you need support, see http://drupal.org/support for options.

markekramer's picture

Principal Drupal Developer | Pac-12

Employment type: 
Full time
Not allowed

Join the Pac-12 and help build Pac-12.com, our TV Everywhere live video streaming experiences, and mobile products. As a Principal Drupal Developer you will have the opportunity to develop on our cutting-edge Drupal implementation. Our developers are full stack engineers comfortable defining an object model, refining a mysql query, designing the next version of our APIs, or optimizing css selectors. Pac-12’s goal is to be a force in the Drupal community, contributing as much as possible. At the Pac-12, you will have the ability to participate in forging the future of several outstanding open source initiatives.

Read more

Running Drupal as daemon service


PHP Frameworks are becoming more and more complex, specially now that almost all of them are fully object oriented. In serious applications huge amount of code needs to be interpreted and loaded into the memory for every request, it's a needles waste of huge amount of resources.
But what if we could serve requests not by using traditional request/response method but by using sockets and asynchronous calls?

Read more
trainingcity's picture

Installing Drupal with PHP-FPM

Running into all sort of problems after trying to configure Drupal 7 to run on PHP-FPM on CentOS 6.2 Apache 2.2 this week.

I was reviewing @kbahey 2bits.com excellent article on configuring Drupal to run with fcgid and I was wondering if we could use that as a starting point to explore a PHP-FPM deployment.


I am getting a series of timeout/server 500 errors in my httpd/logs/error_log such as these after install:

Read more
AverilL's picture

Not caching a block

I am currently working on a site that is recieving over 200K visitors per month. We are using some refererer tracking code to replace the site logo depending on where the client has arrived from. The logo is contained in a block. This is implemented on almost every page.

What would the best approach to setting up some kind of cache under these circumstances?

Currently we are using some client side JS to do the logo swapping but it is proving problematic/unreliable on some browsers. IE8 in particular but we have to support IE8.

Read more
trainingcity's picture

Tuning Worker MPM settings

I am thinking of configuring my Centos 6 server to use Worker MPM. I am pretty sure I know how to complete the install thanks to posts here in the group and elsewhere.

I have a Centos 6 LAMP server running multisite drupal. 2GB RAM. APC & memcached running, planning to install varnish, although most visitors are registered members.

My question is what should the settings look like in httpd.conf?

This is what I have at the moment. Will this even work as worker.c settings if I make the transition from prefork?

StartServers 3
MaxClients 50

Read more
nublaii's picture

Backend caching forms?

We have a fairly normal multi-server setup: haproxy -> varnish -> drupal

We have drupal using a single memcache instance for all the caches except cache_form (we had 2 for redundancy, but since we're trying to debug this problem we're running it on a single instance).

All the urls that contain '/admin' are excluded from varnish (even though the cookie does that too, we just wanted to make sure this was not the problem).

So what happens is: a lot of the backend forms get cached.

Read more
mikeytown2's picture

Fixes for MySQL Deadlocks in D7

I've been working on eliminating deadlocks and speeding up the database layer of Drupal. This is what I've come up with after helping out here: http://drupal.stackexchange.com/questions/104880/drupal-7-database-selec... Not everyone can use an alternative cache backend; thus getting the best performance out of MySQL is desired. Noted that converting some cache tables to memory would only be useful for tables that don't get written to very often & low concurrently due to table level locking.

Read more
tvdijck's picture

Queue Mail

Does anyone have any experience with Queue Mails to handle higher loads on registration?
We are running a site that has high peaks of logins and registrations (due to call to actions on television).
Logins and registration happen on both API's and the site itself and for each registration and lost password a mail is send.
Would we benefit from offloading the mails to a queue or will the benefit be marginal?

agiradam's picture

Getting started a project what should i do for future?

In summary: Getting started with a very large project you need to pay attention what? and should i start a base theme or from scratch?

i am starting a very big project with drupal 7. It will be a social media website and contain a lot of data like users info, pages, groups, live feed etc. I will do the design and css myself from scratch.

Getting started this kind of website for good performance in the future what kinds of things I need to pay attention to?

Read more
mherchel's picture

Drupal php.ini optimizations

Hey High Performance Drupal,

I ran into this reddit thread on a php.ini optimization and figured I'd investigate this a bit more. I found a couple articles referencing this and figured I'd update Drupal.org's "Tuning PHP" documentation.

Looking at that page, it hasn't been updated since July 2009. So, my question to this group is what other tweaks, optimizations do you apply besides memory_limit, and the others listed.

Read more
tloudon's picture

feedback on varnish mini-book (free): overview, tips, challenges, setup checklist, resources


I created a mini-book (ie PDF) about Drupal and Varnish based on my experiences/lessons learned working on some pretty big sites.

I'm looking for feedback on it--I didn't really make it for me :) I made it in the hopes that it would be useful to the community at large; so please let me know what you think.



ghankstef's picture

Good query execution time but page execution time too high

We have a fairly high traffic site 1.5 million page views a month. The site uses a fairly standard Panels node override for displaying individual nodes. Left side gets node content such as title, content body and node comments. Right sidebar gets a latest stories block, an ad, and related stories block. Actually panels panes in most cases not blocks. We do run memcache and Varnish but we find that the traffic pattern always includes a number of uncached requests and scaling the site up mean delivering a single page as fast as possible.

Devel outputs this.

Read more
Train's picture

Advice needed for performance on a VPS...

I work for a web design company and part of our service is hosting for our clients. We buy hosting in the form of VPS accounts and put a certain number of clients on each account depending on their usage and the 'size' of the VPS.

For example, I have one VPS that has 1G of RAM and 32 cores and I run 12 sites each in their own cPanel, each with bandwidth anywhere from nothing to (at peak) 130G/month. I have another VPS with 5G of RAM, 16 cores and almost 50 sites with usage from nothing to 65G for a couple of them.

Read more
cbccharlie's picture

Memcached distributed problem


I have a drupal installation with two frontend servers, which have a memcached server in each. If I'm surfing the frontend 1 and the frontend 2 memcached goes down, the page stops loading correctly. Has anyone ever had this problem?

Thank you very much.

Marko B's picture

Optimizing admin UI for speed

I wrote a post here about this also but want to get some tips from this group if possible. https://drupal.org/node/2200175

What I want to know is how do you optimize drupal admin UI, or to be more exact how to make views admin UI react quicker or instantly.

I am looking for
-hacks(exclude something just for dev enviroment)
-raw power suggestions (use SSD (I do locally) use more ram, put DB in RAM somehow, use other type of DB)
-modules (memcache or some other, I use memcache for now)
-server setups (switch to prefork/worker apache, move to some other server nginx)

Read more
cbccharlie's picture

Most users logged - Slow load time


I have a Drupal with the majority of users logged

Approximately 25,000 pageviews per day.
Two front and two backend servers.
APC and Memcached installed.
Authcache for authenticated users.
Some 5,000 nodes and 20,000 reviews, about 20 types of content.
Approximately 100 modules.

The loading time of the web for a single user is about 3-5 seconds, but for 100 concurrent users are more than one minute.

What could be done?

Thank you very much.

stevenator's picture

Developers Wanted | Crifkin Amalgamated

Employment type: 

Who are we?

Crifkin is a small team of engineers working on several interesting projects; NOT just Drupal. Our current projects are using: nodejs, chef, angularjs, custom php APIs, and yes, Drupal. As a team we are interested in solving business problems with the best technology we can deliver. We are constantly pushing our boundaries to stay current as to what is going on out in the world and to avoid the dreaded "dinosaur complex" we all face working in the world of technology.

Read more
vegantriathlete's picture

Best Practice use of Nagios and Munin

I've got Nagios and Munin up and running for my infrastructure. Now I've got to figure out how to best utilize those tools so that I'm not wasting system resources in the process of monitoring the system!

I searched on "nagios" and "munin" to see if there were any posts that already addressed this question. I didn't find any that answered my specific questions. But, for the sake of starting out by adding some value with this post, here is the list of things that are at least relevant:

Read more
eorr's picture

How to optimize a Drupal 6.x site with 100,000+ nodes and 100+ content types

I currently work on a Drupal 6.x site that has over 100,000 nodes and over 100 content types. Some content types have 45 or 50 fields. The developers who built the site originally wrote a custom module to display taxonomy pages for each content type. It's a directory listing site and the owner frequently adds new content types for different kinds of businesses, so the list keeps growing. Eventually, the developers started creating a new module for each new content type when the original module started getting big.

Read more
PlayfulWolf's picture

High performance mail sending out of Drupal site

Hi there,

Building classified ads project which will use some heavy emailing: reminders, subscriptions, order confirmations and so on. Expect to be tens or hundreds thousand of emails per day. It may seem not huge quantity and standard Drupal email sending just works, but server and Drupal itself has more important tasks to do as sending batches of emails.
Which alternate and faster email sending modules would you recommend? Reliability and "set and forget" modules are also a priority.

Thank you!

Subscribe with RSS Syndicate content

High performance

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week