Knowledge for our questions, fun for everyone!
Knowledge for our questions, fun for everyone!

Poll plugins

Internal overview
Poll plugins
Internal overview

What is a íPoll pluginí ?

Poll plugins have the task of periodically poll the servers in the server farm, also, this plugins may (or may not) collect stats and rebuild the servers database (e.g. mark a server as unavailable if the server canít be reached, or bring back up a server if it can be reached by the poll tests). This plugins can be stacked, this means that you can catenate the tests together, using the previous result in the following plugin (note that all the results are stored in the Load Balancer server database).

We have the following poll plugins available in Load Balancer:
plugin name Description
poll_generic.so This is the generic poll plugin. This plugin trasverses all the servers in all the clusters, and issues a open/close connection, so it tests that the machine is alive, and we can connect and close to this port. Also knows when a server can be marked enable or disabled. At last, this plugin collects some information about the time spent between the connection and the close (this allows to stimate the serversí response time). configuration options

  • server_timeout: the number of seconds required to mark this server as unrecheable


poll_http.so This is a ísmartí plugin that understands the HTTP protocol. poll_http transverses all the servers in all the clusters, and issues a HTTP request to the server. Then it processes the result, and scan the return value to check if it is a hit (code 2xx or 3xx) or if its an error (4xx or above). Also knows when a server can be marked enable or disabled. At last, this plugin collects some information about the time spent between the connection and the close (this allows to stimate the serversí response time). This poll plugin is very useful to check a HTTP server, not only if it is recheable or not, it also test if the documents are accesible. configuration options

  • server_timeout: the number of seconds required to mark this server as unrecheable.
  • url: the url that the plugin will poll to check if the HTTP server is returning the data ok.


poll_generic.so

  <poll_generic 
       server_timeout="2"
  />

poll_http.so

  <poll_http 
       server_timeout="2" 
       url="/" 
  />

Published at 18/09/2003 21:49:20
Last Updated 08/12/2003 20:25:07
By Juan M. Casillas




Google



Poll plugins
Internal overview

Sections
Load Balancer

February's articles
S M T W T F S
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
      
More articles

Search


Other versions
XML version
Printable version

Download
Latest version is 0.5 (28.8 Kb, tar.gz file)

 » from JMCResearch
Quick links
Install HOW-TO
Local CVS Repository
Ask your questions