File glb.spec of Package glb
# norootforbuild
Name: glb
Version: 0.7.4
Release: 0
Summary: TCP Connection Balancer
# http://www.codership.com/files/glb/glb-%{version}.tar.gz
Source: glb-%{version}.tar.bz2
Patch1: glb-doc_netcat.patch
URL: http://www.codership.com/products/galera-load-balancer
Group: Productivity/Networking/Routing
License: GNU General Public License version 2 or later (GPL v2 or later)
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: gcc-c++ libstdc++-devel make glibc-devel
BuildRequires: autoconf automake libtool
%description
glb is a simple user-space TCP connection balancer made with scalability and
performance in mind. It was inspired by pen, but unlike pen its functionality
is limited only to balancing generic TCP connections.
Features:
* list of backend servers is configurable in runtime.
* supports server "draining", i.e. does not allocate new connections to server,
but does not kill existing ones, waiting for them to end gracefully.
* on Linux 2.6 and higher glb uses epoll API for ultimate performance.
* glb is multithreaded, so it can utilize multiple CPU cores. In fact even on a
single core CPU using several threads can significantly improve performance
when using poll()-based IO.
* connections are distributed proportionally to weights assigned to backend
servers.
%prep
%setup -q
%patch1
%build
%configure
%__make %{?jobs:-j%{jobs}} \
AM_CFLAGS="%{optflags} -Wall"
%install
%makeinstall
%clean
%__rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING README
%{_sbindir}/glbd
%changelog
# vim: set sw=3 ts=3 noet:
# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End: