O'Reilly logo

CentOS High Performance by Gabriel Cánepa

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Configuring the web server as a cluster resource

You will recall from when we configured the virtual IP in Chapter 2, Installing Cluster Services and Configuring Network Components, and when we added replicated storage earlier during this chapter that we must indicate a way for PCS to check on a periodic basis whether the resource is available or not.

In this case, we will use the server status page (http://node0[1-2]/server-status), which is the preferred Apache web page as it provides information about how well the server will be performing PCS will query this page once per minute. This is accomplished by creating a file named status.conf inside /etc/httpd/conf.d on both nodes:

<Location /server-status> SetHandler server-status Order deny,allow ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required