Apache Bench (ab)

General documentation about ab can be found at Apache Bench (ab)

Begin by performing a

git pull

in order to ensure your source tree is up-to-date.

Then, execute the following from the command line before applying your new patch. This will establish a baseline from which to judge performance improvements or decreases.

ab -c1 -n500 http://head.localhost/

The -c command specifies the number of concurrent requests and -n specifies the total number of page requests. In 99 out of 100 cases it is not necessary to specify a higher value than 1 for the concurrency. Increasing c will only put more stress on your server. This is useful if you want a general stress test, but it will falsify your results if you only want to test the impact of a particular patch on a particular Drupal page.

This will produce output similar to:


This is ApacheBench, Version 2.0.41-dev <$Revision: 1.121.2.12 $> apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient).....done

Server Software: Apache/2.0.55
Server Hostname: localhost

Step 10 of 10 Securing Solr administrative console

We're now going to setup security on the first server hosting the Solr engine. This is optional but recommended.

By default the Solr engine administrative console on the first server does not ship with any kind of port protection. This means that anyone who knows the Solr engine administrative console URL can search the database without authenticating. For this reason it is recommended to secure your first server ports by using iptables or a dedicated firewall.

Installing Solr on CentOS

Read article by Janak Singh http://janaksingh.com/blog/apachesolr-search-drupal-centos-107

This is a quick and rough writeup on how it was implemented on his personal website.

An updated version of this article is available on the personal website of ryanissamson. http://ryanissamson.drupalgardens.com/blog/installing-solr-drupal-6

Tips and tricks

This page will be a dumping ground for small tips on improving your profiles with Advanced Profile Kit.

#470004: User avatar via CCK imagefield - Not complete but some good ideas there.
http://drupal.org/node/578900#comment-2174250 - Setting some parts of the profile private.

Installing Auto Admin

This handbook page is part of the documentation for the Auto Admin module.

With drush

Simply do:

Drupal 6 - Migrate from Nodewords 6.x-1.6 to 6.x-1.7

Hey,
I recently experienced problems from updating to a new version of nodewords and removing the nodewords_by_path module. Looks like the format in the DB for nodewords table has changed to the serialized format. The old meta information was still in the database, but it was not recognizable since the format was plain.

So I made a quick script to port the meta tags (abstract, copyright, keywords and description) from one format to another:

Create a page with PHP content and write the following: (it's recommended to backup the database first)

Pages

Subscribe with RSS Subscribe to RSS - Programmers